Added support for RHEL and did some syntax cleaning
Assume that "RedHat" also works where "CentOS" does.
This commit is contained in:
parent
e9aae1dcf6
commit
24ecb51f6f
63 changed files with 544 additions and 497 deletions
|
@ -6,7 +6,7 @@ class ssh::known_hosts {
|
|||
ensure => present,
|
||||
mode => "0644",
|
||||
owner => root,
|
||||
group => $operatingsystem ? {
|
||||
group => $::operatingsystem ? {
|
||||
OpenBSD => wheel,
|
||||
default => root,
|
||||
},
|
||||
|
@ -36,7 +36,7 @@ class ssh::hostkeys {
|
|||
source => "puppet:///private/ssh_host_dsa_key",
|
||||
mode => "0600",
|
||||
owner => root,
|
||||
group => $operatingsystem ? {
|
||||
group => $::operatingsystem ? {
|
||||
openbsd => wheel,
|
||||
default => root,
|
||||
},
|
||||
|
@ -46,7 +46,7 @@ class ssh::hostkeys {
|
|||
source => "puppet:///private/ssh_host_dsa_key.pub",
|
||||
mode => "0644",
|
||||
owner => root,
|
||||
group => $operatingsystem ? {
|
||||
group => $::operatingsystem ? {
|
||||
openbsd => wheel,
|
||||
default => root,
|
||||
},
|
||||
|
@ -57,7 +57,7 @@ class ssh::hostkeys {
|
|||
source => "puppet:///private/ssh_host_rsa_key",
|
||||
mode => "0600",
|
||||
owner => root,
|
||||
group => $operatingsystem ? {
|
||||
group => $::operatingsystem ? {
|
||||
openbsd => wheel,
|
||||
default => root,
|
||||
},
|
||||
|
@ -67,7 +67,7 @@ class ssh::hostkeys {
|
|||
source => "puppet:///private/ssh_host_rsa_key.pub",
|
||||
mode => "0644",
|
||||
owner => root,
|
||||
group => $operatingsystem ? {
|
||||
group => $::operatingsystem ? {
|
||||
openbsd => wheel,
|
||||
default => root,
|
||||
},
|
||||
|
@ -78,7 +78,7 @@ class ssh::hostkeys {
|
|||
source => "puppet:///private/ssh_host_key",
|
||||
mode => "0600",
|
||||
owner => root,
|
||||
group => $operatingsystem ? {
|
||||
group => $::operatingsystem ? {
|
||||
openbsd => wheel,
|
||||
default => root,
|
||||
},
|
||||
|
@ -88,7 +88,7 @@ class ssh::hostkeys {
|
|||
source => "puppet:///private/ssh_host_key.pub",
|
||||
mode => "0644",
|
||||
owner => root,
|
||||
group => $operatingsystem ? {
|
||||
group => $::operatingsystem ? {
|
||||
openbsd => wheel,
|
||||
default => root,
|
||||
},
|
||||
|
@ -124,7 +124,7 @@ class ssh::server {
|
|||
#
|
||||
class ssh::disable inherits ssh::server {
|
||||
|
||||
case $operatingsystem {
|
||||
case $::operatingsystem {
|
||||
"ubuntu": {
|
||||
file { "/etc/init/ssh.conf":
|
||||
ensure => present,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue