By default puppet loads only the site.pp manifest 
(see http://docs.puppetlabs.com/references/latest/configuration.html#manifest 
). 

The fastest solution is simply to add the node definition to site.pp. If 
you wish to keep the node definition in a separate file, the docs recommend 
setting up directory environments 
(see http://docs.puppetlabs.com/puppet/latest/reference/environments.html 
). To enable this in your case you would need to add the environmentpath 
directive to puppet.conf and move the kungfumaster definition to 
/etc/puppet/environments/production/manifests/kungfumaster.mydomain.com.pp.

    -Steve

On Wednesday, July 30, 2014 11:16:14 PM UTC-4, Naftuli Tzvi Kay wrote:
>
> I have a really strange issue with my Puppet Master.
>
> I can't seem to get it to serve my manifests properly. I have installed 
> manifests in two locations:
>
>    - /etc/puppet/manifests/kungfumaster.mydomain.com.pp
>    - /etc/puppet/environments/production/kungfumaster.mydomain.com.pp
>
> Both of which contain something similar to this:
>
> node "kungfumaster.mydomain.com" { 
>     notify { "found the one in environments!": }
> }
>
> Neither of them run when I connect with my agent. The only one which is 
> actually read appears to be /etc/puppet/manifests/site.pp, which does, in 
> fact, run:
>
> Notice: /Stage[main]/Main/Node[default]/Notify[thungs]/message: defined 
> 'message' as 'thungs'
>
> This node is defined like this:
>
> node default { 
>     notify { 'thungs': }
> }
>
> No matter how I've tried, I haven't been able to get these manifests to 
> work properly, even when specifying a node default in the aforementioned 
> files.
>
> I'm seeing some strange logs emitted from my Puppet Master, but I'm not 
> quite clear as to what they mean or how to solve the problem mentioned in 
> them:
>
> Jul 31 01:50:28 kungfumaster puppet-master[443]: Could not retrieve fact fqdn
> Jul 31 01:50:28 kungfumaster puppet-master[443]: Could not retrieve fact 
> ipaddress
> Jul 31 01:50:28 kungfumaster puppet-master[443]: TrustedInformation expected 
> a certificate, but none was given.
>
> Configuration files:
>
>    - /etc/puppet/puppet.conf <http://pastebin.com/D8iYR2u9>
>    - /usr/share/puppet/rack/puppetmaster/config.ru 
>    <http://pastebin.com/HNS7Nskn> (config file for running the Puppet 
>    Master rails app)
>    - /etc/nginx/nginx.conf <http://pastebin.com/E2Jb39VC>
>    - /etc/nginx/sites-enabled/puppetmaster <http://pastebin.com/ZnFy8S1z>
>
> Log files:
>
>    - /var/log/syslog <http://paste.ubuntu.com/7910682/>
>    - Output of puppet apply --onetime --no-daemonize --debug --verbose: 
>    here <http://paste.ubuntu.com/7910702/>
>    - Output of puppet apply --onetime --no-daemonize --debug --verbose 
>    --environment production: here <http://paste.ubuntu.com/7910703/>
>
> The Puppet Agent and Puppet Master are both on the exact same host.
>
> The strange message about expecting a certificate is generated here: 
> https://j.mp/1zxG08Q
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/ea441a85-e6c1-4bb4-802f-c7b0823bbfb4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to