Hi all, My facts work during testing, but not on deployment. Any help would be greatly appreciated.
Fact in modules/ldap/lib/puppet/facter/nss_ldap.rb: fact_name = 'nss_ldap' Facter.add(fact_name) do setcode do auth_settings = %x{/usr/share/authconfig/authconfig.py --test} auth_settings = auth_settings.split(/\n/) # The line of output we are looking for line = auth_settings.collect { |v| v if v =~ /#{fact_name}/ }.compact[0] # The setting that the line is set to . . . line.scan(/\s+is\s+(\w*)/)[0][0] end # of setcode end # of Facter.add for testing, I have a call to a template in my init.pp: file { '/tmp/ldap_info.txt': content => template('ldap/ldap_info.erb'); } # file And the template says: nss_ldap <%= nss_ldap %> pam_ldap <%= pam_ldap %> pam_oddjob_mkhomedir <%= pam_oddjob_mkhomedir %> My node fails, however, with the error: err: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed to parse template ldap/ldap_info.erb: Could not find value for 'nss_ldap' at /etc/puppetlabs/puppet/modules/ldap/manifests/init.pp:23 on node gmatzpupnode Any thoughts would be greatly appreciated, especially suggestions on how to go about debugging the issue. . . Thanks a lot, Guy -- 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.