SLIDE 53 sshd_config as it was
class sshd_config { if ($operatingsystem == darwin) { $sshd_file_path = "/etc/sshd_config" $sshd_service = "com.openssh.sshd" } else { $sshd_file_path = "/etc/ssh/sshd_config" $sshd_service = "sshd" } file { "sshd_config": path => $sshd_file_path,
group => 0, mode => 600, content => template("sshd_config/sshd_config.erb"), notify => Service[$sshd_service]; } service { "$sshd_service": ensure => running, enable => true; } }
sshd_config subscribe
class sshd_config { if ($operatingsystem == darwin) { $sshd_file_path = "/etc/sshd_config" $sshd_service = "com.openssh.sshd" } else { $sshd_file_path = "/etc/ssh/sshd_config" $sshd_service = "sshd" } file { "sshd_config": path => $sshd_file_path,
group => 0, mode => 600, content => template("sshd_config/sshd_config.erb"); } service { "$sshd_service": ensure => running, enable => true, subscribe => File[“sshd_config”]; } }