Yaniv, I was asking if you happen to have an environment defined on your agent in puppet.conf. Anyhow, we can handle this over on foreman-users :)
-Sam On Thu, Aug 16, 2012 at 1:01 PM, Yaniv Fine <yanivf...@gmail.com> wrote: > Why do i have to define environment in puppet.conf on the agent . Isnt > defining the host in a group on foreman good enugh ? .in general there > could be a conflict . Btw when i configure env in puppet.conf it does work > like expected but it ignored the setting related to env .in foreman > On Aug 16, 2012 7:19 PM, "Sam Kottler" <s...@kottlerdevelopment.com> wrote: > >> Hi Yaniv, >> >> Do you have the environment defined in puppet.conf on the agent and use >> Foreman as an ENC? If so, you're probably seeing >> http://projects.puppetlabs.com/issues/3910. >> >> Some users are getting around this bug by adding functionality to the ENC >> script that validates the environment defined in Foreman against the one in >> the host's puppet.conf. Someone who has done this might be able to help you >> on the foreman-users list. >> >> -Sam >> >> On Thu, Aug 16, 2012 at 11:05 AM, Yaniv Fine <yanivf...@gmail.com> wrote: >> >>> Hi experts . >>> i am runnig foreman 1 >>> puppetmaster 2.7.18 >>> i have setup a test client machine . >>> on foreman i have configured the new client to be part of the >>> development environment . >>> on the client i have setup that it will run the following from site.pp >>> to debug information . >>> notify { "environment": >>> message => $environment >>> >>> >>> when i run on the client . >>> puppet agent --test --debug --verbose >>> >>> i get "Notify[environment]/message: defined 'message' as 'production'" >>> allthought on foreman this client is setup as "development" >>> when i add the >>> environment = development on the client /etc/puppet.puppet.conf >>> the client get "Notify[environment]/message: defined 'message' as >>> 'development'" which is ok . >>> >>> BTW in foreman => settings >>> i have default_puppet_environment = testing >>> which is beeing ignored via the client . >>> >>> >>> is this normal that i need to override the foreman client setting . with >>> a "environment = development on the client /etc/puppet.puppet.conf " >>> ???? >>> >>> >>> thank you >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Puppet Users" group. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msg/puppet-users/-/JF3PZ63IdjAJ. >>> To post to this group, send email to puppet-users@googlegroups.com. >>> To unsubscribe from this group, send email to >>> puppet-users+unsubscr...@googlegroups.com. >>> For more options, visit this group at >>> http://groups.google.com/group/puppet-users?hl=en. >>> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Puppet Users" group. >> To post to this group, send email to puppet-users@googlegroups.com. >> To unsubscribe from this group, send email to >> puppet-users+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/puppet-users?hl=en. >> > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.