Re: [foreman-users] provisioning a system with two NIC

2017-05-23 Thread Lukas Zapletal
Hello, in this case you want to leave default kickstart template "network" configuration as is and only change post configuration for network: https://github.com/theforeman/community-templates/blob/develop/provisioning_templates/snippet/kickstart_networking_setup.erb This is a snippet that is in

[foreman-users] facts not being imported by foreman 1.15 & ansible 2.3 - Reports & host creation work fine.

2017-05-23 Thread David LeVene
Hey All, I've just installed foreman & ansible freshly on Cent OS7. Foreman works fine, I wrote a basic playbook that gathers the facts and copies a file in place. --- - name: test the ansible hosts: - foreman.levene.local gather_facts: yes tasks: - name: test the file

Re: [foreman-users] Re: Occasional ERF50-7522 on facts_refresh

2017-05-23 Thread Lukas Zapletal
I am sorry I cannot reproduce on my environment. Greg, any idea what is wrong? What is the backtrace now for the undefined method `+' for nil:NilClass error? LZ On Mon, May 22, 2017 at 10:09 PM, Konstantin Orekhov wrote: > > >> You forgot the question mark, did you? Or maybe I did in the previo

[foreman-users] Impossible to add a new Provisionning on an other network

2017-05-23 Thread Quentin lenglet
Hi everybody I created a new subnet because I need to install some host on it. But, when I try to set up the provisionning, I have this error: Failed to save: Host has already been taken I have no idea why Foreman do this error because I don't have any duplicate MAC Adress or IP Can you help

Re: [foreman-users] Impossible to add a new Provisionning on an other network

2017-05-23 Thread Lukas Zapletal
Not without more context, check production.log and find what exactly is wrong. This might be name clash, make sure you name your host with an unique name or DNS name as well. LZ On Tue, May 23, 2017 at 12:07 PM, Quentin lenglet wrote: > Hi everybody > > I created a new subnet because I need to i

Re: [foreman-users] Re: Auto-Provisioning Discovered Bare-metal Host via PXE Issue

2017-05-23 Thread Lukas Zapletal
Hey Jacek, the patch has been tested and merged, what exactly does not work for you? Do not use whole file that will unlikely work with the older version, just comment out the one line in the 1.15 version of the file: #host.clear_association_cache https://github.com/theforeman/foreman_discovery

Re: [foreman-users] Katello 3.4 RC2 Available for Testing

2017-05-23 Thread Eric D Helms
Howdy, Please check out this thread for information regarding why we are holding the GA release: https://groups.google.com/forum/#!topic/foreman-users/z4nlpi96GrM Eric On Sun, May 21, 2017 at 11:05 PM, Lachlan Musicman wrote: > Did Katello 3.4 get released yet - did I miss an announcement? >

Re: [foreman-users] Impossible to add a new Provisionning on an other network

2017-05-23 Thread Quentin lenglet
Hi and thx for your answer The big problem is that i have this only message. I check all the mac address and i don't have any who are equals. In fact, I have already a provionning which works perfectly. Now i want to add a new one to an other subnet. I have a second interface into this network a

Re: [foreman-users] Foreman and Infrastructure as Code

2017-05-23 Thread Dominic Cleal
On 22/05/17 20:55, Peter Bittner wrote: > That still sounds a bit like a half-baked solution. > > 1. Why is the Foreman host being set up and configured using a Puppet > recipe, and then I should be throwing it away instead of > maintaining, modifying, extending it? Sure, by all means. T

[foreman-users] foreman_hooks: different json output on create and destroy

2017-05-23 Thread AdamW
Running 1.15 with foreman_hooks, and the json output to my hooks is different between a 'create' and 'destroy' event. In the 'destroy' event I am missing host parameters from the json output, but I can't find the reason for this in the code. Anybody here know why this is? (I want to force us

Re: [foreman-users] foreman_hooks: different json output on create and destroy

2017-05-23 Thread Dominic Cleal
On 23/05/17 14:35, AdamW wrote: > Running 1.15 with foreman_hooks, and the json output to my hooks is > different between a 'create' and 'destroy' event. In the 'destroy' event > I am missing host parameters from the json output, but I can't find the > reason for this in the code. > > Anybody here

Re: [foreman-users] foreman_hooks: different json output on create and destroy

2017-05-23 Thread Adam Winberg
good point! I tried using the 'before_destroy' event but the 'parameters' array was still empty. I get other output though, such as 'all_puppetclasses' and 'all_parameters'. On Tue, May 23, 2017 at 3:38 PM, Dominic Cleal wrote: > On 23/05/17 14:35, AdamW wrote: > > Running 1.15 with foreman_hook

Re: [foreman-users] Re: Auto-Provisioning Discovered Bare-metal Host via PXE Issue

2017-05-23 Thread Jacek Mierzwa
It's working! Thank you Lukas! :) In case anyone wondering - at this moment it's enough to install 1.15.0 + *comment out line 8* in file: */usr/share/foreman/vendor/ruby/2.3.0/gems/foreman_discovery-9.0.0/app/services/foreman_discovery/host_converter.rb* (that's for Debian, not sure about other O

Re: [foreman-users] Katello 3.4 RC2 Available for Testing

2017-05-23 Thread Bernhard Suttner
Hi, Another question for me is, when is Katello 3.3.2 ready and gets released? I saw in redmine that all issues are marked as done but it's not released right now. Best regards Bernhard -- ATIX - The Linux & Open Source Company http://www.atix.de - Ursprüngliche Mail - Von:

Re: [foreman-users] provisioning a system with two NIC

2017-05-23 Thread Edward Clay
Lukas, Thanks for this information. I gues what I need to do is figure out how to create my own snippet since most of this info isn't clear to me. Where would be the best place to start learning how to do this? On Tue, 2017-05-23 at 09:05 +0200, Lukas Zapletal wrote: > Hello, > > in this case y

[foreman-users] Katello 3.3.2 released!

2017-05-23 Thread Justin Sherrill
Hello All We are happy to announce the release of Katello 3.3.2 with fixes for: * Memory usage when performing a hosts search * Display issues around subscriptions and more! Note that there is no installer update for this release. A list of the changes in Katello 3.3.2 is in our change log: h

[foreman-users] adding existing hosts manually

2017-05-23 Thread Ben De Luca
Hi, I have imported about a hundred machines on one of my clients networks into foreman and am slowly moving from the concept of every thing is managed to every thing is actually managed. We use salt here and I have a few more difficult hosts, where I cant run the salt-minion to aut

Re: [foreman-users] provisioning a system with two NIC

2017-05-23 Thread Lukas Zapletal
So the output artifact is rhcfg network configuration file, that's clear. You probably struggle with our ERB templating engine, it's actually ERB (google that) bug in SafeMode which means only selected variables and functions are available. In Foreman 1.14+ there is a Help tab in the Template edito

Re: [foreman-users] Re: Auto-Provisioning Discovered Bare-metal Host via PXE Issue

2017-05-23 Thread Lukas Zapletal
Thanks, Disovery 9.1 will go out soon to fix this, we have few more bugs we want to fix before doing the release. LZ On Tue, May 23, 2017 at 5:20 PM, Jacek Mierzwa wrote: > It's working! Thank you Lukas! :) > > In case anyone wondering - at this moment it's enough to install 1.15.0 + > *commen