Created
February 5, 2012 00:40
-
-
Save jburnham/1741509 to your computer and use it in GitHub Desktop.
saltstack extending files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/etc/examplefile: | |
file: | |
- user: root | |
- group: root | |
- mode: 600 | |
- append | |
- text: | |
- This is line 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include: | |
- line1 | |
extend: | |
/etc/examplefile: | |
file: | |
- append | |
- text: | |
- This is line 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19:38:57,866 [salt.state ][INFO ] Executing state file.append for /etc/examplefile | |
19:38:57,868 [salt.state ][INFO ] {'new': ['This is line 2']} | |
19:38:57,873 [salt.minion ][INFO ] Returning information for job: 20120204193857301823 | |
19:38:57,876 [salt.master ][INFO ] AES payload received with command _return | |
19:38:57,876 [salt.master ][INFO ] Got return from localhost.localdomain for job 20120204193857301823 | |
localhost.localdomain: | |
---------- | |
State: - file | |
Name: /etc/examplefile | |
Function: append | |
Result: True | |
Comment: Appended 1 lines | |
Changes: new: ('This is line 2',) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
base: | |
'*': | |
- line1 | |
- line2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment