diff options
Diffstat (limited to 'doc/examples/cloud-config-user-groups.txt')
| -rw-r--r-- | doc/examples/cloud-config-user-groups.txt | 29 | 
1 files changed, 17 insertions, 12 deletions
| diff --git a/doc/examples/cloud-config-user-groups.txt b/doc/examples/cloud-config-user-groups.txt index f588bfbc..b593cdd1 100644 --- a/doc/examples/cloud-config-user-groups.txt +++ b/doc/examples/cloud-config-user-groups.txt @@ -7,6 +7,11 @@ groups:    - cloud-users  # Add users to the system. Users are added after groups are added. +# Note: Most of these configuration options will not be honored if the user +#       already exists. Following options are the exceptions and they are +#       applicable on already-existing users: +#       - 'plain_text_passwd', 'hashed_passwd', 'lock_passwd', 'sudo', +#         'ssh_authorized_keys', 'ssh_redirect_user'.  users:    - default    - name: foobar @@ -84,7 +89,7 @@ users:  #       use <default_username> instead. This option only disables cloud  #       provided public-keys. An error will be raised if ssh_authorized_keys  #       or ssh_import_id is provided for the same user. -#  +#  #       ssh_authorized_keys.  #   sudo: Defaults to none. Accepts a sudo rule string, a list of sudo rule  #         strings or False to explicitly deny sudo usage. Examples: @@ -120,10 +125,10 @@ users:  # to have the 'ubuntu' user in addition to other users, you need to instruct  # cloud-init that you also want the default user. To do this use the following  # syntax: -#    users: -#      - default -#      - bob -#      - .... +#   users: +#     - default +#     - bob +#     - ....  #  foobar: ...  #  # users[0] (the first user in users) overrides the user directive. @@ -131,10 +136,10 @@ users:  # The 'default' user above references the distro's config:  # system_info:  #   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] +#     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] | 
