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 :
ubu...@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
ubu...@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 [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-users?hl=en.