diff options
author | Scott Moser <smoser@brickies.net> | 2012-10-23 12:13:41 +0200 |
---|---|---|
committer | Scott Moser <smoser@brickies.net> | 2012-10-23 12:13:41 +0200 |
commit | 605c10763752582af139f8677f1f907705564824 (patch) | |
tree | 3543d8a2a92f825a36352af1e80f9242d5201b06 /config | |
parent | bdaa57bc5b8a75b0891673a7bb0a60c5b02beb7c (diff) | |
parent | 0049b6e7bc7f52fd442f1b8902294ca8c379df5c (diff) | |
download | vyos-cloud-init-605c10763752582af139f8677f1f907705564824.tar.gz vyos-cloud-init-605c10763752582af139f8677f1f907705564824.zip |
move default user info out of code and into config
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.cfg | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/config/cloud.cfg b/config/cloud.cfg index b3411d11..efa0fa36 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,15 @@ 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: + name: Ubuntu + plain_text_passwd: 'ubuntu' + home: /home/ubuntu + shell: /bin/bash + lock_passwd: True + gecos: Ubuntu + groups: [adm, audio, cdrom, dialout, floppy, video, plugdev, dip, netdev] # Other config here will be given to the distro class and/or path classes paths: cloud_dir: /var/lib/cloud/ |