Hi all, I'm hoping you can point out some detail I'm missing. Puppet agent 
seems to fail with manifest working fine with puppet3 but not for puppet4. 

Thank you . 

*Error: Failed to apply catalog: Could not find dependency 
Package[openssh-server] for File[/etc/ssh/sshd_config] at   
modules/sshd/manifests/init.pp:14*



class sshd {
    case $::operatingsystem {
        /(CentOS|Scientific|OracleLinux|OpenSuSE)/: {
            $ssh_pkg = "openssh"
            $ssh_svc = "sshd"
        }
        /(Debian|Solaris|Ubuntu)/: {
            $ssh_pkg = "openssh-server"
            $ssh_svc = "ssh"
        }
    }

    # Special sshd_config
    file {'/etc/ssh/sshd_config':
        ensure => present,
        mode => '0600',
        require => Package[$ssh_pkg],
        source => $application ? {
            "jump" => "puppet:///modules/sshd/sshd_config.jump",
            "git" => "puppet:///modules/sshd/sshd_config.gitolite",
            default => "puppet:///modules/sshd/sshd_config.default"
        },
        notify => Service[$ssh_svc];
    }

    service {$ssh_svc:
        ensure => running,
        require => Package[$ssh_pkg],
        enable => true;
    }
}


-- 
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/76ddfca5-e10b-4e97-8c37-f434a8e91ecd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to