On Friday, May 22, 2015 at 3:34:11 PM UTC-5, Joe Koenig wrote:
>
> Hi all,
>
> I'm trying to learn puppet and am running into a roadblock trying to get 
> an agent to pickup its configuration from a master server. On master, I 
> have created a class called 'lamp':
>
> [x@master manifests]# pwd
>
> /etc/puppet/modules/lamp/manifests
>
> [x@master manifests]# ls -l
>
> total 4
>
> -r--r--r--. 1 puppet puppet 1014 May 21 22:06 init.pp
>
>
Well, *perhaps* you created a class called "lamp".  All you actually show 
is that you created the file in which Puppet will look for the definition 
of such a class.


 

> On my agent, I run:
>
> sudo puppet agent --test --noop --debug
>
> The output is (note, I changed the valid FQDN to 'fqdn' in the log 
> entries):
> [many ordinary debug-level messages, but no mention of a class "lamp"]
>


Supposing that you really did create a class "lamp", it will be applied 
only to those nodes to which you assign it.  There is a variety of ways to 
perform a class assignment, but they fall into two main categories: using 
an external node classifier (ENC), or declaring it either directly or 
indirectly via the node's environment's starting-point manifest.  If you 
have not done this then your class will not be applied to any node.

Additionally, you may be running into an issue with Puppet's environment 
cache.  Unless you affirmatively disable caching (thereby accepting a 
performance penalty) it's safest to restart the master after changing your 
manifest set to ensure that the changes are recognized right away.


John

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/867d459a-7c95-4a0e-ad79-f05acd356bf7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to