summaryrefslogtreecommitdiff
path: root/doc/examples/cloud-config-datasources.txt
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2013-08-24 00:12:24 -0400
committerScott Moser <smoser@ubuntu.com>2013-08-24 00:12:24 -0400
commit1d27cd75eaaeef7b72f3be77de24da815c82a825 (patch)
tree177feb675ec25234ba8361518a2c8dd81736a961 /doc/examples/cloud-config-datasources.txt
parent7af11ba50c8311ceb545b830716c78929079a0cd (diff)
parent10c8ec1e5c1b16572a38afd08ee794d28c450054 (diff)
downloadvyos-cloud-init-1d27cd75eaaeef7b72f3be77de24da815c82a825.tar.gz
vyos-cloud-init-1d27cd75eaaeef7b72f3be77de24da815c82a825.zip
support base64 encoded data in the smart os datasource.
The big benefit of this is that now the user can put in arbitrary data into the user-data or user-script keys and there is no concern about the data being incorrectly read. Previously, if data contained '\n.\n', there was no way to differenciate that from a end of message in the serial communication format. It would be recommended that anyone using user-data on smartos base64 encode that data and specify a key of 'b64-user-data' with value 'true'.
Diffstat (limited to 'doc/examples/cloud-config-datasources.txt')
-rw-r--r--doc/examples/cloud-config-datasources.txt12
1 files changed, 10 insertions, 2 deletions
diff --git a/doc/examples/cloud-config-datasources.txt b/doc/examples/cloud-config-datasources.txt
index 6544448e..65a3cdf5 100644
--- a/doc/examples/cloud-config-datasources.txt
+++ b/doc/examples/cloud-config-datasources.txt
@@ -55,5 +55,13 @@ datasource:
# Smart OS datasource works over a serial console interacting with
# a server on the other end. By default, the second serial console is the
# device. SmartOS also uses a serial timeout of 60 seconds.
- serial device: /dev/ttyS1
- serial timeout: 60
+ serial_device: /dev/ttyS1
+ serial_timeout: 60
+
+ # a list of keys that will not be base64 decoded even if base64_all
+ no_base64_decode: ['root_authorized_keys', 'motd_sys_info',
+ 'iptables_disable']
+ # a plaintext, comma delimited list of keys whose values are b64 encoded
+ base64_keys: []
+ # a boolean indicating that all keys not in 'no_base64_decode' are encoded
+ base64_all: False