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;
}
}
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
Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
Vertretungsberechtigte Geschäftsführer John Marshall Doolittle, Gordon Davies, Roger Illing, Registergericht Amtsgericht Bonn, Registernummer HRB 10646
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail sind nicht gestattet.