i''m testing a 0.24.4 to 2.6.4 upgrade. the base puppet software upgrade seems ok and i''m ironing out some issues with the way Puppet has changed but one thing is really stumping me. In one puppet file (/etc/puppet/testing/modules/postfix/manifests/init.pp) i have this: "myhostname": value => $external_hostname; The ''external_hostname'' fact is in the file /etc/puppet/testing/modules/facts/files/ec2_public_hostname.rb and it does this: Facter.add("ec2_public_hostname") do setcode do %x{curl -s http://169.254.169.254/latest/meta-data/public-hostname} end end I''ve tried moving the fact around but i''m stumped. i keep getting this error: /usr/sbin/puppetmasterd:4 err: Must pass value to Postfix::Config_param[myhostname] at /etc/puppet/testing/modules/postfix/manifests/init.pp:76 on node ip-10-251-31-149.ec2.internal On the client (from issuing puppetd command) i get : ubuntu@ip-10-251-31-149:/etc/puppet$ sudo puppetd --test --noop --no-pluginsync --tags puppet_environment_sync --environment testing err: Could not retrieve catalog from remote server: Error 400 on SERVER: Must pass value to Postfix::Config_param[myhostname] at /etc/puppet/testing/modules/postfix/manifests/init.pp:76 on node ip-10-251-31-149.ec2.internal warning: Not using cache on failed catalog err: Could not retrieve catalog; skipping run ubuntu@ip-10-251-31-149:/etc/puppet$ If execute the ''curl'' command from command line on the puppet client it resolves fine ec2-50-16-38-1.compute-1.amazonaws.com Can anyone point where i need to move my facts to? Thanks, Martin -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Martin,> The ''external_hostname'' fact is in the file > > /etc/puppet/testing/modules/facts/files/ec2_public_hostname.rb >I assume "facts" is the name of your module, so it should be: /etc/puppet/testing/modules/facts/lib/facter/ec2_public_hostname.rb Cheers Mike -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Thanks Mike, that works a treat, Martin On Thu, Dec 30, 2010 at 9:11 PM, Michael Knox <michael.knox.au@gmail.com>wrote:> Martin, > > The ''external_hostname'' fact is in the file >> >> /etc/puppet/testing/modules/facts/files/ec2_public_hostname.rb >> >> I assume "facts" is the name of your module, so it should be: > /etc/puppet/testing/modules/facts/lib/facter/ec2_public_hostname.rb > > Cheers > Mike > > -- > 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+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > >-- "If we moved in next door, your lawn would die" Lemmy, Motorhead -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.