summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2012-09-20 17:26:42 -0700
committerJoshua Harlow <harlowja@yahoo-inc.com>2012-09-20 17:26:42 -0700
commit0049b6e7bc7f52fd442f1b8902294ca8c379df5c (patch)
treee426c829315aeed6cdf7ca8c94070b8e2c19d148 /config
parent94b9647e4df742982cac8a2c2925fb4894281dbf (diff)
downloadvyos-cloud-init-0049b6e7bc7f52fd442f1b8902294ca8c379df5c.tar.gz
vyos-cloud-init-0049b6e7bc7f52fd442f1b8902294ca8c379df5c.zip
Remove the need to have 'default_user' and
'default_user_groups' groups be hard coded into the distro class, instead let that set of configuration be located in the config file where it should be specified instead.
Diffstat (limited to 'config')
-rw-r--r--config/cloud.cfg17
1 files changed, 16 insertions, 1 deletions
diff --git a/config/cloud.cfg b/config/cloud.cfg
index b3411d11..fbf53bd5 100644
--- a/config/cloud.cfg
+++ b/config/cloud.cfg
@@ -1,7 +1,9 @@
# The top level settings are used as module
# and system configuration.
-# Implement for Ubuntu only: create the default 'ubuntu' user
+# A set of users which may be applied and/or used by various modules
+# when a 'default' entry is found it will reference the 'default_user'
+# from the distro configuration specified below
users:
- default
@@ -71,6 +73,19 @@ cloud_final_modules:
system_info:
# This will affect which distro class gets used
distro: ubuntu
+ # Default user name + that default users groups (if added/used)
+ default_user: ubuntu
+ default_user_groups:
+ - adm
+ - audio
+ - cdrom
+ - dialout
+ - floppy
+ - video
+ - plugdev
+ - dip
+ - netdev
+ - sudo
# Other config here will be given to the distro class and/or path classes
paths:
cloud_dir: /var/lib/cloud/