Hey all,

I was installing puppet on a freshly installed node and the catalog
fails to apply. It immediately bails out with:
err: Could not run Puppet configuration client: Could not find init
script for 'ssh'

This is annoying and odd. ssh service is run by a module in main stage,
there is a stage before that which isn't being applied. The service
subscribes to a file which in turn requires the package.

Can anyone shed light/guess at why puppet is bailing on an init script
for a service it hasn't installed yet and shouldn't be worrying about at
this stage?

Running puppet 2.6.2 on Debian Squeeze. Master is also 2.6.2 on Squeeze.

Cheers,
Dan


modules/ssh/manifests/init.pp
class ssh {
    require ssh::install, ssh::config
}

modules/ssh/manifests/install.pp
class ssh::install {
    package {
        'openssh-server': ;
        'openssh-clients':
            name => $operatingsystem ? {
                debian  => 'openssh-client',
                default => 'openssh-clients',
            };
    }
}

modules/ssh/manifests/config.pp
class ssh::config {
    File {
        require => Class['ssh::install'],
    }

    file {
        '/etc/ssh/sshd_config':
            source => [
                "puppet:///files/$fqdn/ssh/sshd_config",
               
"puppet:///modules/ssh/sshd_config-${domain}.$operatingsystem",
                "puppet:///modules/ssh/sshd_config.$operatingsystem",
            ];
        '/etc/ssh/ssh_config':
            source => 'puppet:///modules/ssh/ssh_config';
        '/etc/ssh/ssh_known_hosts':
            source => 'puppet:///files/ssh/ssh_known_hosts';
    }

    service { 'sshd':
        name => $operatingsystem ? {
            debian  => 'ssh',
            default => 'sshd',
        },
        subscribe => File['/etc/ssh/sshd_config'],
        hasstatus => true,
    }
}

manifests/site.pp (minus other includes and some hierarchy):
node default {
    include ssh
    class { "repositories": stage => repositories; }
}

Defaults:
stage { 'repositories': before => Stage[main] }
File {
    owner => root,
    group => root,
    mode  => 644,
}
Package {
    ensure  => latest,
}
Service {
    enable     => true,
    ensure     => running,
    hasrestart => true,
}

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

Reply via email to