We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2435741 + dbba655 commit ab98142Copy full SHA for ab98142
README.markdown
@@ -305,6 +305,26 @@ the type and parameters specified if it doesn't already exist.
305
306
- *Type*: statement
307
308
+file_line
309
+---------
310
+This resource ensures that a given line is contained within a file. You can also use
311
+"match" to replace existing lines.
312
+
313
+*Examples:*
314
315
+ file_line { 'sudo_rule':
316
+ path => '/etc/sudoers',
317
+ line => '%sudo ALL=(ALL) ALL',
318
+ }
319
320
+ file_line { 'change_mount':
321
+ path => '/etc/fstab',
322
+ line => '10.0.0.1:/vol/data /opt/data nfs defaults 0 0',
323
+ match => '^172.16.17.2:/vol/old',
324
325
326
+- *Type*: resource
327
328
flatten
329
-------
330
This function flattens any deeply nested arrays and returns a single flat array
0 commit comments