Merge pull request #217 from teancom/fix/master/file_line
(DOCUMENT-21) add docs for file_line to README.markdown
This commit is contained in:
commit
ab981422a6
1 changed files with 20 additions and 0 deletions
|
@ -305,6 +305,26 @@ the type and parameters specified if it doesn't already exist.
|
||||||
|
|
||||||
- *Type*: statement
|
- *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
|
flatten
|
||||||
-------
|
-------
|
||||||
This function flattens any deeply nested arrays and returns a single flat array
|
This function flattens any deeply nested arrays and returns a single flat array
|
||||||
|
|
Loading…
Reference in a new issue