|
44 | 44 | value => 'no', |
45 | 45 | notify => Service['sshd'], |
46 | 46 | target => '/etc/ssh/sshd_config.d/01-puppet.conf', |
47 | | - require => File['/etc/ssh/sshd_config.d'], |
| 47 | + require => File['/etc/ssh/sshd_config.d/01-puppet.conf'], |
48 | 48 | } |
49 | 49 |
|
50 | 50 | sshd_config { 'PermitRootLogin-sshd_config': |
|
60 | 60 | value => $password_auth, |
61 | 61 | notify => Service['sshd'], |
62 | 62 | target => '/etc/ssh/sshd_config.d/01-puppet.conf', |
63 | | - require => File['/etc/ssh/sshd_config.d'], |
| 63 | + require => File['/etc/ssh/sshd_config.d/01-puppet.conf'], |
64 | 64 | } |
65 | 65 |
|
66 | 66 | sshd_config { 'PasswordAuthentication-sshd_config': |
|
127 | 127 | value => 'publickey', |
128 | 128 | target => '/etc/ssh/sshd_config.d/50-authenticationmethods.conf', |
129 | 129 | notify => Service['sshd'], |
130 | | - require => File['/etc/ssh/sshd_config.d'], |
| 130 | + require => File['/etc/ssh/sshd_config.d/50-authenticationmethods.conf'], |
131 | 131 | } |
132 | 132 |
|
133 | 133 | sshd_config { 'tf_sshd_AuthorizedKeysFile': |
|
137 | 137 | value => '/etc/ssh/authorized_keys.%u', |
138 | 138 | target => '/etc/ssh/sshd_config.d/50-authenticationmethods.conf', |
139 | 139 | notify => Service['sshd'], |
140 | | - require => File['/etc/ssh/sshd_config.d'], |
| 140 | + require => File['/etc/ssh/sshd_config.d/50-authenticationmethods.conf'], |
141 | 141 | } |
142 | 142 |
|
143 | 143 | $tf_public_key = lookup('terraform.data.tf_public_key') |
|
0 commit comments