summaryrefslogtreecommitdiff
path: root/README.markdown
diff options
context:
space:
mode:
authorAshley Penney <ashley.penney@puppetlabs.com>2014-02-11 12:51:37 -0500
committerAshley Penney <ashley.penney@puppetlabs.com>2014-02-11 12:51:37 -0500
commitab981422a67636441f1bfebaaade36aa690f1f25 (patch)
tree8fc511c76a02a1f4f2f5b4c0e5409d4728d9a927 /README.markdown
parent2435741ca71561fa0ea04a396d28b52ce3980dd5 (diff)
parentdbba655c106f951061206aaf0863f4f8d18da7b1 (diff)
Merge pull request #217 from teancom/fix/master/file_line
(DOCUMENT-21) add docs for file_line to README.markdown
Diffstat (limited to 'README.markdown')
-rw-r--r--README.markdown20
1 files changed, 20 insertions, 0 deletions
diff --git a/README.markdown b/README.markdown
index 344fd64..1e70f39 100644
--- a/README.markdown
+++ b/README.markdown
@@ -305,6 +305,26 @@ the type and parameters specified if it doesn't already exist.
- *Type*: statement
+file_line
+---------
+This resource ensures that a given line is contained within a file. You can also use
+"match" to replace existing lines.
+
+*Examples:*
+
+ file_line { 'sudo_rule':
+ path => '/etc/sudoers',
+ line => '%sudo ALL=(ALL) ALL',
+ }
+
+ file_line { 'change_mount':
+ path => '/etc/fstab',
+ line => '10.0.0.1:/vol/data /opt/data nfs defaults 0 0',
+ match => '^172.16.17.2:/vol/old',
+ }
+
+- *Type*: resource
+
flatten
-------
This function flattens any deeply nested arrays and returns a single flat array