|
13 | 13 | ensure => directory, |
14 | 14 | before => Accounts::User['hunner'], |
15 | 15 | } |
16 | | - if $facts['puppetversion'][0] == '6' { |
17 | | - $key_test = [ |
18 | | - 'ssh-rsa #{test_key} vagrant', |
19 | | - 'command="/bin/echo Hello",from="myhost.example.com,192.168.1.1" ssh-rsa #{test_key} vagrant2' |
20 | | - ] |
21 | | - } |
22 | | - else { |
23 | | - $key_test = [#{' '} |
24 | | - 'ssh-rsa #{test_key} vagrant', |
25 | | - 'command="/bin/echo Hello",from="myhost.example.com,192.168.1.1" ssh-rsa #{test_key} vagrant2', |
26 | | - 'ecdsa-sha2-nistp256 #{ecdsa_test_key} vagrant3', |
27 | | - '[email protected] #{ecdsa_sk_test_key} vagrant4' |
28 | | - ] |
29 | | - } |
| 16 | +
|
| 17 | + $key_test = [#{' '} |
| 18 | + 'ssh-rsa #{test_key} vagrant', |
| 19 | + 'command="/bin/echo Hello",from="myhost.example.com,192.168.1.1" ssh-rsa #{test_key} vagrant2', |
| 20 | + 'ecdsa-sha2-nistp256 #{ecdsa_test_key} vagrant3', |
| 21 | + '[email protected] #{ecdsa_sk_test_key} vagrant4' |
| 22 | + ] |
30 | 23 |
|
31 | 24 | accounts::user { 'hunner': |
32 | 25 | groups => ['root'], |
|
55 | 48 | ensure => directory, |
56 | 49 | before => Accounts::User['hunner'], |
57 | 50 | } |
58 | | - if $facts['puppetversion'][0] == '6' { |
59 | | - $key_test = [ |
60 | | - 'ssh-rsa #{test_key} vagrant', |
61 | | - 'command="/bin/echo Hello",from="myhost.example.com,192.168.1.1" ssh-rsa #{test_key} vagrant2' |
62 | | - ] |
63 | | - } |
64 | | - else { |
65 | | - $key_test = [#{' '} |
66 | | - 'ssh-rsa #{test_key} vagrant', |
67 | | - 'command="/bin/echo Hello",from="myhost.example.com,192.168.1.1" ssh-rsa #{test_key} vagrant2', |
68 | | - 'ecdsa-sha2-nistp256 #{ecdsa_test_key} vagrant3', |
69 | | - '[email protected] #{ecdsa_sk_test_key} vagrant4' |
70 | | - ] |
71 | | - } |
| 51 | +
|
| 52 | + $key_test = [#{' '} |
| 53 | + 'ssh-rsa #{test_key} vagrant', |
| 54 | + 'command="/bin/echo Hello",from="myhost.example.com,192.168.1.1" ssh-rsa #{test_key} vagrant2', |
| 55 | + 'ecdsa-sha2-nistp256 #{ecdsa_test_key} vagrant3', |
| 56 | + '[email protected] #{ecdsa_sk_test_key} vagrant4' |
| 57 | + ] |
72 | 58 |
|
73 | 59 | accounts::user { 'hunner': |
74 | 60 | groups => ['root'], |
|
0 commit comments