On Friday, March 16, 2012 4:09:25 AM UTC-5, Luis Festas Matos wrote:
>
> Hi Gary,
>
> I'm trying to start sshd. But the command to start sshd is "service ssh 
> start" at least on the prompt line.
> If I change it to 'sshd' on the params class it gives me the following 
> error:
>
> err: /Stage[main]/Ssh::Service/Service[sshd]: Could not evaluate: Could 
> not find init script for 'sshd'
>
>

This conversation has somehow not been properly threaded together.  I see a 
quote of the original question, but not the original question itself, so 
please forgive me if I'm missing something.  Perhaps it did not actually 
start on the group?

Anyway, the error message indicates that the module thinks the appropriate 
service name is 'sshd', whereas it should be 'ssh' on Ubuntu.  That this is 
not about the name of the daemon executable; rather, it is about the name 
used with the system's service management tools.  And note, too, that you 
should not need to specify which service management toolset to use (the 
"provider") -- Puppet is very good at figuring that out for itself.

If the quoted code matches the manifests involved in producing that error 
message, then it must be that $ssh::params::ssh_service_name is not being 
assigned the correct value.  That, in turn, suggests that either the value 
of the $operatingsystem fact the node submits to Puppet does not match the 
regex /(Ubuntu|Debian)/, or perhaps that it (also) matches another case 
listed earlier in that 'case' statement.

You can run facter directly on the node, from the command line, to 
determine what 'operatingsystem' value it is reporting.  You can put a 
Notify resource in class ssh:params to verify that $operatingsystem 
resolves to the expected value when evaluated in that context (and you 
could make that more certain by spelling it $::operatingsystem).  You can 
run the agent with --debug messaging enabled to see the actual commands 
puppet issues to try to test and start the service.


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/7daace97-7876-43fd-9761-7e03ce737059%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to