Wrap text
Report abuse
define sshconfig () {
file{"${name}":
source => "puppet:///files/all/${name}",
mode => 0600,
notify => Exec["restorecon-${name}"]
}
exec{"restorecon-${name}"
command => "/sbin/restorecon ${name}",
refreshonly => true,
notify => Service["sshd"]
}
service{"sshd":
ensure => enabled,
refreshonly => true,
}
}
sshconfig{"/etc/ssh/ssh_config": }