summaryrefslogtreecommitdiff
path: root/doc/examples
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2011-01-28 19:28:51 +0000
committerScott Moser <smoser@ubuntu.com>2011-01-28 19:28:51 +0000
commit818ac2e096ecf14f11f4adb9de0155e3e2f8a93f (patch)
tree7488fdb672359cdf8c74d339dd8a8ed84ce4d412 /doc/examples
parent8038c24d6dce45a4cc7eab55323c39901a7b072a (diff)
downloadvyos-cloud-init-818ac2e096ecf14f11f4adb9de0155e3e2f8a93f.tar.gz
vyos-cloud-init-818ac2e096ecf14f11f4adb9de0155e3e2f8a93f.zip
add setting of passwords.
Diffstat (limited to 'doc/examples')
-rw-r--r--doc/examples/cloud-config.txt37
1 files changed, 37 insertions, 0 deletions
diff --git a/doc/examples/cloud-config.txt b/doc/examples/cloud-config.txt
index 443fee2e..0a1d4279 100644
--- a/doc/examples/cloud-config.txt
+++ b/doc/examples/cloud-config.txt
@@ -346,3 +346,40 @@ timezone: US/Eastern
# if either is empty, then no change of ownership will be done
def_log_file: /var/log/my-logging-file.log
syslog_fix_perms: syslog:root
+
+# you can set passwords for a user or multiple users
+# this is off by default.
+# to set the default user's password, use the 'password' option.
+# if set, to 'R' or 'RANDOM', then a random password will be
+# generated and written to stdout (the console)
+# password: passw0rd
+#
+# also note, that this will expire the password, forcing a change
+# on first login. If you do not want to expire, see 'chpasswd' below.
+#
+# By default in the UEC images password authentication is disabled
+# Thus, simply setting 'password' as above will only allow you to login
+# via the console.
+#
+# in order to enable password login via ssh you must set
+# 'ssh_pwauth'.
+# If it is set, to 'True' or 'False', then sshd_config will be updated
+# to ensure the desired function. If not set, or set to '' or 'unchanged'
+# then sshd_config will not be updated.
+# ssh_pwauth: True
+#
+# there is also an option to set multiple users passwords, using 'chpasswd'
+# That looks like the following, with 'expire' set to 'True' by default.
+# to not expire users passwords, set 'expire' to 'False':
+# chpasswd:
+# list: |
+# user1:password1
+# user2:RANDOM
+# expire: True
+# ssh_pwauth: [ True, False, "" or "unchanged" ]
+#
+# So, a simple working example to allow login via ssh, and not expire
+# for the default user would look like:
+password: passw0rd
+chpasswd: { expire: False }
+ssh_pwauth: True