summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2012-07-11 13:02:24 -0700
committerJoshua Harlow <harlowja@yahoo-inc.com>2012-07-11 13:02:24 -0700
commit50a5728db977ec11f3448c473a396995ea29319e (patch)
treecfc5e274658d5d8f84a04b085df4a5d4b36f365b /doc
parentf79570474118e8e26fa7e6db324434f2980eae8f (diff)
downloadvyos-cloud-init-50a5728db977ec11f3448c473a396995ea29319e.tar.gz
vyos-cloud-init-50a5728db977ec11f3448c473a396995ea29319e.zip
Update the write files with the new content/compression handling.
Adjust the examples file to reflect this.
Diffstat (limited to 'doc')
-rw-r--r--doc/examples/cloud-config-write-files.txt27
1 files changed, 16 insertions, 11 deletions
diff --git a/doc/examples/cloud-config-write-files.txt b/doc/examples/cloud-config-write-files.txt
index fb0c1541..09ec12c2 100644
--- a/doc/examples/cloud-config-write-files.txt
+++ b/doc/examples/cloud-config-write-files.txt
@@ -9,9 +9,11 @@
# Note: Content strings here are truncated for example purposes.
#
write_files:
-- content: CiMgVGhpcyBmaWxlIGNvbnRyb2xzIHRoZSBzdGF0ZSBvZiBTRUxpbnV4IG9u.....
- encoding: b64
+- compression: b64
+ content: CiMgVGhpcyBmaWxlIGNvbnRyb2xzIHRoZSBzdGF0ZSBvZiBTRUxpbnV4...
+ owner: root:root
path: /etc/sysconfig/selinux
+ perms: '0644'
- content: '
# My new /etc/sysconfig/samba file
@@ -20,13 +22,16 @@ write_files:
'
path: /etc/sysconfig/samba
-- content: H4sIADXC/U8C/+1Yf2wbVx1/d7YT122TQEMpadS6kgOZqL30J+.....
- encoding: gz+b64
- path: /usr/bin/uptime
-- content: BIRSAU3FOR2GS3THOMQGM33SEB2GQZJAINJE6TRAMRQWK3LPNYXAU===
- encoding: b32
- path: /etc/sysconfig/crond
-- content: 0A232053657474696E677320666F7220746865204E4653206461656D6F6E2E0A
- encoding: b16
- path: /etc/sysconfig/nfs
+- content: !!binary |
+ f0VMRgIBAQAAAAAAAAAAAAIAPgABAAAAwARAAAAAAABAAAAAAAAAAJAVAAAAAAAAAAAAAEAAOAAI
+ AEAAHgAdAAYAAAAFAAAAQAAAAAAAAABAAEAAAAAAAEAAQAAAAAAAwAEAAAAAAADAAQAAAAAAAAgA
+ AAAAAAAAAwAAAAQAAAAAAgAAAAAAAAACQAAAAAAAAAJAAAAAAAAcAAAAAAAAABwAAAAAAAAAAQAA
+ ....
+ path: /bin/arch
+ perms: '0555'
+- compression: gzip
+ content: !!binary |
+ H4sIAIDb/U8C/1NW1E/KzNMvzuBKTc7IV8hIzcnJVyjPL8pJ4QIA6N+MVxsAAAA=
+ path: /usr/bin/hello
+ perms: '0755'