On Mon, Jun 13, 2011 at 4:19 PM, Craig White <[email protected]> wrote:
>
> On Jun 13, 2011, at 3:10 PM, Nan Liu wrote:
>
>> On Mon, Jun 13, 2011 at 1:57 PM, Craig White <[email protected]> wrote:
>>> I've gone over the documentation several times now and I can't figure out
>>> how to 'apply' a manifest to a client.
>>>
>>> The client does have a signed certificate but the only thing in the
>>> /etc/puppet folder on the client is an ssl directory.\
>>
>> If you are running puppet against a remote puppet master, you should
>> run puppet agent rather than puppet apply. puppet apply is only when
>> you have a copy of the manifest locally.
>>
>>> I have a manifest that works fine on the puppet 'master'
>>>
>>> I have added the client into /etc/puppet/manifests/nodes.pp
Didn't notice this earlier, the default manifests file puppet master
compiles is /etc/puppet/manifests/site.pp, you need to import nodes.pp
in site.pp, or simply write the node information in site.pp manifest.
> if the puppet agent command would have worked for me, I wouldn't have asked.
> My puppet master has manifests/nodes.pp which lists the client fqdn (matches
> the cert too) and it includes 'ntp' which is found in
> modules/ntp/manifests/ntp.pp (see my original e-mail) but it doesn't seem to
> happen no matter how many times I invoke the 'puppet agent command from the
> client system). The client system did however get a certificate from the
> server.
If the suggestion above doesn't work, try to include a default node in site.pp:
node default {
include ntp
}
Beyond that, start running puppet master with the option
--no-daemonize --verbose (add --debug as necessary) and send any
applicable output. It should autoload classes in modules and compile
catalog for the taget node successfully (see sample below):
debug: importing
'/etc/puppetlabs/puppet/modules/motd/manifests/init.pp' in environment
production
debug: Automatically imported motd from motd into production
debug: Scope(Class[Motd]): Retrieving template motd/motd.erb
debug: template[/etc/puppetlabs/puppet/modules/motd/templates/motd.erb]:
Bound template variables for
/etc/puppetlabs/puppet/modules/motd/templates/motd.erb in 0.00 seconds
debug: template[/etc/puppetlabs/puppet/modules/motd/templates/motd.erb]:
Interpolated template
/etc/puppetlabs/puppet/modules/motd/templates/motd.erb in 0.00 seconds
notice: Compiled catalog for node in environment production in 0.03 seconds
Thanks,
Nan
--
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.