|
19 | 19 | name: 'ForwardAgent', |
20 | 20 | value: 'yes', |
21 | 21 | target: target, |
22 | | - provider: 'augeas' |
| 22 | + provider: 'augeas', |
23 | 23 | )) |
24 | 24 |
|
25 | 25 | aug_open(target, 'Ssh.lns') do |aug| |
|
32 | 32 | name: 'GlobalKnownHostsFile', |
33 | 33 | value: ['/etc/ssh/ssh_known_hosts', '/etc/ssh/ssh_known_hosts2'], |
34 | 34 | target: target, |
35 | | - provider: 'augeas' |
| 35 | + provider: 'augeas', |
36 | 36 | )) |
37 | 37 |
|
38 | 38 | aug_open(target, 'Ssh.lns') do |aug| |
|
46 | 46 | name: 'SendEnv', |
47 | 47 | value: %w[LANG LC_TYPE], |
48 | 48 | target: target, |
49 | | - provider: 'augeas' |
| 49 | + provider: 'augeas', |
50 | 50 | )) |
51 | 51 |
|
52 | 52 | aug_open(target, 'Ssh.lns') do |aug| |
|
61 | 61 | host: 'example.net', |
62 | 62 | value: 'yes', |
63 | 63 | target: target, |
64 | | - provider: 'augeas' |
| 64 | + provider: 'augeas', |
65 | 65 | )) |
66 | 66 |
|
67 | 67 | aug_open(target, 'Ssh.lns') do |aug| |
|
76 | 76 | value: 'example_user', |
77 | 77 | target: target, |
78 | 78 | provider: 'augeas', |
79 | | - comment: 'Deny example_user access' |
| 79 | + comment: 'Deny example_user access', |
80 | 80 | )) |
81 | 81 |
|
82 | 82 | aug_open(target, 'Ssh.lns') do |aug| |
|
92 | 92 | name: 'ForwardAgent', |
93 | 93 | value: 'no', |
94 | 94 | target: target, |
95 | | - provider: 'augeas' |
| 95 | + provider: 'augeas', |
96 | 96 | ), |
97 | 97 | Puppet::Type.type(:ssh_config).new( |
98 | 98 | name: 'ForwardAgent', |
99 | 99 | host: 'example.net', |
100 | 100 | value: 'yes', |
101 | 101 | target: target, |
102 | | - provider: 'augeas' |
103 | | - ) |
| 102 | + provider: 'augeas', |
| 103 | + ), |
104 | 104 | ) |
105 | 105 | end.to raise_error(Puppet::Resource::Catalog::DuplicateResourceError) |
106 | 106 | end |
|
112 | 112 | name: 'ForwardAgent', |
113 | 113 | value: 'no', |
114 | 114 | target: target, |
115 | | - provider: 'augeas' |
| 115 | + provider: 'augeas', |
116 | 116 | ), |
117 | 117 | Puppet::Type.type(:ssh_config).new( |
118 | 118 | name: 'Example ForwardAgent', |
119 | 119 | key: 'ForwardAgent', |
120 | 120 | value: 'yes', |
121 | 121 | target: target, |
122 | | - provider: 'augeas' |
123 | | - ) |
| 122 | + provider: 'augeas', |
| 123 | + ), |
124 | 124 | ) |
125 | 125 | end.to raise_error |
126 | 126 | end |
|
132 | 132 | name: 'ForwardAgent', |
133 | 133 | value: 'no', |
134 | 134 | target: target, |
135 | | - provider: 'augeas' |
| 135 | + provider: 'augeas', |
136 | 136 | ), |
137 | 137 | Puppet::Type.type(:ssh_config).new( |
138 | 138 | name: 'Example ForwardAgent', |
139 | 139 | key: 'ForwardAgent', |
140 | 140 | host: 'example.net', |
141 | 141 | value: 'yes', |
142 | 142 | target: target, |
143 | | - provider: 'augeas' |
144 | | - ) |
| 143 | + provider: 'augeas', |
| 144 | + ), |
145 | 145 | ) |
146 | 146 | end.not_to raise_error |
147 | 147 | end |
|
180 | 180 | host: 'example.net', |
181 | 181 | value: 'yes', |
182 | 182 | target: target, |
183 | | - provider: 'augeas' |
| 183 | + provider: 'augeas', |
184 | 184 | )) |
185 | 185 |
|
186 | 186 | aug_open(target, 'Ssh.lns') do |aug| |
|
194 | 194 | host: 'example.net', |
195 | 195 | value: ['LC_*', 'LANG'], |
196 | 196 | target: target, |
197 | | - provider: 'augeas' |
| 197 | + provider: 'augeas', |
198 | 198 | )) |
199 | 199 |
|
200 | 200 | aug_open(target, 'Ssh.lns') do |aug| |
|
210 | 210 | value: 'example_user', |
211 | 211 | target: target, |
212 | 212 | provider: 'augeas', |
213 | | - comment: 'Deny example_user access' |
| 213 | + comment: 'Deny example_user access', |
214 | 214 | )) |
215 | 215 |
|
216 | 216 | aug_open(target, 'Ssh.lns') do |aug| |
|
226 | 226 | ensure: 'absent', |
227 | 227 | host: '*', |
228 | 228 | target: target, |
229 | | - provider: 'augeas' |
| 229 | + provider: 'augeas', |
230 | 230 | )) |
231 | 231 |
|
232 | 232 | aug_open(target, 'Ssh.lns') do |aug| |
|
240 | 240 | ensure: 'absent', |
241 | 241 | host: '*', |
242 | 242 | target: target, |
243 | | - provider: 'augeas' |
| 243 | + provider: 'augeas', |
244 | 244 | )) |
245 | 245 |
|
246 | 246 | aug_open(target, 'Ssh.lns') do |aug| |
|
256 | 256 | host: '*', |
257 | 257 | value: 'no', |
258 | 258 | target: target, |
259 | | - provider: 'augeas' |
| 259 | + provider: 'augeas', |
260 | 260 | )) |
261 | 261 |
|
262 | 262 | aug_open(target, 'Ssh.lns') do |aug| |
|
270 | 270 | host: '*', |
271 | 271 | target: target, |
272 | 272 | provider: 'augeas', |
273 | | - comment: 'This is a different comment' |
| 273 | + comment: 'This is a different comment', |
274 | 274 | )) |
275 | 275 |
|
276 | 276 | aug_open(target, 'Ssh.lns') do |aug| |
|
284 | 284 | host: '*', |
285 | 285 | value: %w[foo bar], |
286 | 286 | target: target, |
287 | | - provider: 'augeas' |
| 287 | + provider: 'augeas', |
288 | 288 | )) |
289 | 289 |
|
290 | 290 | aug_open(target, 'Ssh.lns') do |aug| |
|
299 | 299 | name: 'GssaPiaUthentication', |
300 | 300 | value: 'yes', |
301 | 301 | target: target, |
302 | | - provider: 'augeas' |
| 302 | + provider: 'augeas', |
303 | 303 | )) |
304 | 304 |
|
305 | 305 | aug_open(target, 'Ssh.lns') do |aug| |
|
319 | 319 | name: 'ForwardAgent', |
320 | 320 | value: 'yes', |
321 | 321 | target: target, |
322 | | - provider: 'augeas' |
| 322 | + provider: 'augeas', |
323 | 323 | )) |
324 | 324 |
|
325 | 325 | expect(txn.any_failed?).not_to eq(nil) |
|
0 commit comments