diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/examples/cloud-config-write-files.txt | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/doc/examples/cloud-config-write-files.txt b/doc/examples/cloud-config-write-files.txt index 09ec12c2..9c4e3998 100644 --- a/doc/examples/cloud-config-write-files.txt +++ b/doc/examples/cloud-config-write-files.txt @@ -2,25 +2,21 @@ # vim: syntax=yaml # # This is the configuration syntax that the write_files module -# will know how to understand, it can be given b64, b32, b16, or -# gz (or gz+b64) encoded strings which will be decoded accordingly -# and then written to the path that is provided. +# will know how to understand. encoding can be given b64 or gzip or (gz+b64). +# The content will be decoded accordingly and then written to the path that is +# provided. # # Note: Content strings here are truncated for example purposes. -# write_files: -- compression: b64 +- encoding: b64 content: CiMgVGhpcyBmaWxlIGNvbnRyb2xzIHRoZSBzdGF0ZSBvZiBTRUxpbnV4... owner: root:root path: /etc/sysconfig/selinux perms: '0644' -- content: ' - +- content: | # My new /etc/sysconfig/samba file SMBDOPTIONS="-D" - - ' path: /etc/sysconfig/samba - content: !!binary | f0VMRgIBAQAAAAAAAAAAAAIAPgABAAAAwARAAAAAAABAAAAAAAAAAJAVAAAAAAAAAAAAAEAAOAAI @@ -29,7 +25,7 @@ write_files: .... path: /bin/arch perms: '0555' -- compression: gzip +- encoding: gzip content: !!binary | H4sIAIDb/U8C/1NW1E/KzNMvzuBKTc7IV8hIzcnJVyjPL8pJ4QIA6N+MVxsAAAA= path: /usr/bin/hello |