Allan Bailey
2009-Jan-06 18:16 UTC
[Puppet Users] Example of using puppetrun for 1-off service restarts?
Does anyone have an example of using puppetrun for one-off service restarts?
I''m trying to avoid ssh access to hosts for such things, and
I''m hoping
there''s a way to use puppetrun.
I''ve tried the following in my puppet module:
from the modules/puppet/manifests/init.pp:
===class puppet {
[.... etc... ]
}
class puppet::forcerestart {
service { puppet:
name => $operatingsystem ? {
default => "puppet",
},
ensure => running,
enable => true,
hasrestart => true,
hasstatus => true,
require => Package[puppet],
subscribe => File["puppet.conf"],
}
}
===
Then from the puppetmaster host I try to run:
puppetrun -h host1 -t puppet::forcerestart
No go. Anyone doing something like this?
--
.allan.
--~--~---------~--~----~------------~-------~--~----~
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---