I can run that command no problem but it never does 'apply' the manifest that 
is stated in $PUPPET_ROOT/manifests/nodes.pp which is a fairly simple ntp 
install. (see below for nodes.pp & modules/manifests/ntp.pp)

# puppet agent --test --verbose --noop --server ubuntu.ttinet
info: Caching catalog for ubuntu2.ttinet
info: Applying configuration version '1308006207'
notice: Finished catalog run in 0.01 seconds

root@ubuntu2:/etc/puppet# puppet agent --test --verbose --server ubuntu.ttinet
info: Caching catalog for ubuntu2.ttinet
info: Applying configuration version '1308006283'
notice: Finished catalog run in 0.01 seconds

I am quite certain that the problem is me but the documentation never quite 
gets to the point where a manifest is actually applied to a remote client and I 
have struggled with this for more than 4 hours now.

Thanks

Craig

On Jun 13, 2011, at 3:12 PM, Denmat wrote:

> From a cursory glance at the new doco, I couldn't find it either (forgive me 
> if it is there though). I could find a 'puppet apply' but not 'agent' in the 
> 'getting started' sections. There is of course the puppet commands page but 
> that does provide examples. Anyhoo..
> 
> puppet agent --test --verbose --noop --server <servername>
> 
> That will do a 'dry-run' on the client. To update the client remove the 
> --noop. See the man pages for the --test switch, it bundles a few other 
> options (but doesn't really 'test' anything -- it will apply your manifest on 
> your client).
> 
> Cheers,
> Den
> 
> On 14/06/2011, at 6:57, Craig White <craig.wh...@ttiltd.com> 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.
>> 
>> I have a manifest that works fine on the puppet 'master'
>> 
>> I have added the client into /etc/puppet/manifests/nodes.pp
>> 
>> I see a page on the website that talks about 'puppet device' but i don't 
>> seem to have that option:
>> 
>> # puppet
>> Usage: puppet command <space separated arguments>
>> Available commands are: agent, apply, cert, describe, doc, filebucket, 
>> inspect, kick, master, queue, resource
>> 
>> How do I get the puppet client to run the manifest?
>> 
>> # cat /etc/puppet/manifests/nodes.pp
>> node ubuntu.ttinet {
>> include ntp
>> }
>> 
>> node ubuntu2.ttinet {
>> include ntp
>> }
>> 
>> # cat /etc/puppet/modules/ntp/manifests/ntp.pp
>> # ntp.pp
>> 
>> class ntp {
>> case $operatingsystem {
>>   centos, redhat: { 
>>     $service_name = 'ntpd'
>>     $conf_file = 'ntp.conf.el'
>>   }
>>   debian, ubuntu: { 
>>     $service_name = 'ntp'
>>     $conf_file = 'ntp.conf.debian'
>>   }
>> }
>> 
>> package { 'ntp':
>>   ensure => installed,
>> }
>> 
>> service { 'ntp':
>>   name => $service_name,
>>   ensure => running,
>>   enable => true,
>>   subscribe => File['ntp.conf'],
>> }
>> 
>> file { 'ntp.conf':
>>   path => '/etc/ntp.conf',
>>   ensure => file,
>>   require => Package['ntp'],
>>   source => "puppet:///files/ntp/${conf_file}",
>> }
>> }
>> 
>> # class {'ntp': }
>> 
>> -- 
>> Craig White ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  craig.wh...@ttiltd.com
>> 1.800.869.6908 ~~~~~~~~~~~~~~~~~~~~~~~~~~~ www.ttiassessments.com 
>> 
>> Need help communicating between generations at work to achieve your desired 
>> success? Let us help!
>> 
>> -- 
>> 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+unsubscr...@googlegroups.com.
>> For more options, visit this group at 
>> http://groups.google.com/group/puppet-users?hl=en.
>> 
> 
> -- 
> 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+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/puppet-users?hl=en.
> 

-- 
Craig White ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  craig.wh...@ttiltd.com
1.800.869.6908 ~~~~~~~~~~~~~~~~~~~~~~~~~~~ www.ttiassessments.com 

Need help communicating between generations at work to achieve your desired 
success? Let us help!

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to