]> gitweb.fluxo.info Git - puppet-stdlib.git/commitdiff
(DOCUMENT-21) add docs for file_line to README.markdown
authorDavid Bishop <david@gnuconsulting.com>
Sat, 25 Jan 2014 18:23:17 +0000 (13:23 -0500)
committerDavid Bishop <david@gnuconsulting.com>
Sat, 25 Jan 2014 18:30:50 +0000 (13:30 -0500)
Without this, you have to look at the source file
(lib/puppet/type/file_line.rb) to know what it does. This adds that
documentation.

README.markdown

index 822b8aff0482adcb7fdb4f164fb879972c6ce9aa..85bfadaa40ab9b73b9089463159c7739b43d47ba 100644 (file)
@@ -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