comparison modules/ssh/manifests/init.pp @ 246:c3fa3d65aa83

Update configs for Puppet 6 This *should* all be backward compatible
author IBBoard <dev@ibboard.co.uk>
date Sat, 21 Dec 2019 14:19:47 -0500
parents cd79745f0236
children d9009f54eb23
comparison
equal deleted inserted replaced
245:b0f8b88fea5c 246:c3fa3d65aa83
38 # ] 38 # ]
39 # } 39 # }
40 40
41 @file { "/etc/ssh/ssh_config": 41 @file { "/etc/ssh/ssh_config":
42 owner => "root", 42 owner => "root",
43 mode => 644, 43 mode => '0644',
44 require => Package["openssh-clients"], 44 require => Package["openssh-clients"],
45 source => [ 45 source => [
46 # 46 #
47 # See rationale for an explanation on this list of sources 47 # See rationale for an explanation on this list of sources
48 # http://reductivelabs.com/trac/puppet/wiki/PuppetCommonModules/SSH 48 # http://reductivelabs.com/trac/puppet/wiki/PuppetCommonModules/SSH
66 sourceselect => first 66 sourceselect => first
67 } 67 }
68 68
69 @file { "/etc/ssh/sshd_config": 69 @file { "/etc/ssh/sshd_config":
70 owner => "root", 70 owner => "root",
71 mode => 644, 71 mode => '0644',
72 notify => Service["openssh-server"], 72 notify => Service["openssh-server"],
73 require => Package["openssh-server"], 73 require => Package["openssh-server"],
74 source => [ 74 source => [
75 # 75 #
76 # See rationale for an explanation on this list of sources 76 # See rationale for an explanation on this list of sources
106 } 106 }
107 107
108 108
109 # Include operatingsystem specific subclass 109 # Include operatingsystem specific subclass
110 case $::osfamily { 110 case $::osfamily {
111 Redhat: { 111 'Redhat': {
112 include ssh::centos 112 include ssh::centos
113 } 113 }
114 default:{fail("Invalid OS type for SSH - $osfamily")} 114 default:{fail("Invalid OS type for SSH - $osfamily")}
115 } 115 }
116 } 116 }