Displaying 1 result from an estimated 1 matches for "sshd_config_port".
2008 Oct 11
6
Force backup of files modified outside of puppet's File Type
...}
service { "sshd":
name => $operatingsystem ? {
default => sshd
},
hasrestart => true,
hasstatus => true,
ensure => running,
subscribe => [Package["openssh-server"], File["sshd_config"]]
}
augeas {
"sshd_config_port" :
notify => [ Service["sshd"], File["sshd_config"] ]
context => "/files/etc/ssh/sshd_config",
changes => "set Port 22",
onlyif => "get Port != 22",
}
}
--
Joel Nimety
Perimeter eSecurity
Product Archite...