Ben Lavender wrote:
> Hello,
> 
> I'm confused why puppet wont start a service I have configured.
> 
> In the module, which is definitely being run (everything else in it
> works):
> 
> service { ssh:
>    name => 'sshd',
>    ensure => true,
>    enable => true
>  }
> 
> As I understand the docs, the ensure => true should start sshd if it
> is not running (or at least try to).  But when I turn off ssh on a
> managed host, it's not started by puppet.
> 
> [r...@opstest-host-3 yum.repos.d]# service sshd stop
> Stopping sshd:                                             [  OK  ]
> [r...@opstest-host-3 yum.repos.d]# !/etc
> /etc/init.d/puppet once
> [r...@opstest-host-3 yum.repos.d]# !ta
> tail -f /var/log/puppets.log
> Sep 18 04:18:17 opstest-host-3 puppetd[13199]: Reopening log files
> Sep 18 04:18:21 opstest-host-3 puppetd[13199]: Starting catalog run
> Sep 18 04:18:32 opstest-host-3 puppetd[13199]: Finished catalog run in
> 10.93 seconds
> 
> Can anyone point me to what I'm doing wrong?

Depending on your /etc/init.d/ssh's capabilities you either have to 
specify "hasstatus=>true" or provide a appropriate "pattern=>".

See the TypeReference for details.


Regards, DavidS


--~--~---------~--~----~------------~-------~--~----~
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