Issue #6635 has been reported by Thomas Guthmann. ---------------------------------------- Bug #6635: Facter 1.5.8 seems to not work properly when triggered by the puppet daemon but works fine when used with puppetd -t https://projects.puppetlabs.com/issues/6635
Author: Thomas Guthmann Status: Unreviewed Priority: Normal Assignee: Category: Target version: Keywords: facter virtual set daemon Branch: Hi, Since we upgraded to facter 1.5.8 we had a weird behaviour with puppet. It seems that in our case $virtual is not set properly (due to environment variables not set ?). For instance the following logic works fine if we execute puppetd -t from a shell on a 'openvzve' node however in the background we can see in the logs of this node that puppet is trying to install ntp and ipmi but it should not. So it seems that $virtual is not set because it does not enter any of the other $virtual conditions. Notes: - Facter 1.5.7 works fine and does not have this issue. We rollback to this version to have the correct behaviour again. (homebrew RPM) - Facter 1.5.8 was a RPM from RPMFORGE (http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/facter-1.5.8-1.el5.rf.noarch.rpm) - Puppet 2.6.2 (homebrew RPM) - Centos 5.5 i386 Code: ################### # If it is a VE # ################### if ( $virtual == "openvzve" ) { # do something } ########################################################### # else is either a real HW, a virtuozzo HW node or VMwar # ########################################################### else { # All real hardware/Virtuozzo HW node/VMware include ntp ################### # if it is VMware # ################### if ( $virtual == "vmware" ) { include vmware } ############################ # else it is real hardware # ############################ else { # physical only aka real HW or Virtuozzo HW node include ipmi # If the hardware is DELL install openmange if ( $manufacturer == "Dell Inc." ) { include openmanage } # If this is a VZ hardware node if ( $virtual == "openvzhn" ) { include virtuozzo } } } -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
