Skip to content

Commit

Permalink
correct documentation to match correct attribute name usage.
Browse files Browse the repository at this point in the history
LP: #1420018
  • Loading branch information
do3meli authored and blackboxsw committed Apr 3, 2018
1 parent c436e17 commit b27f713
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 44 deletions.
28 changes: 14 additions & 14 deletions cloudinit/config/cc_users_groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,26 +34,26 @@
- ``homedir``: Optional. Home dir for user. Default is ``/home/<username>``
- ``inactive``: Optional. Mark user inactive. Default: false
- ``lock_passwd``: Optional. Disable password login. Default: true
- ``no-create-home``: Optional. Do not create home directory. Default:
- ``no_create_home``: Optional. Do not create home directory. Default:
false
- ``no-log-init``: Optional. Do not initialize lastlog and faillog for
- ``no_log_init``: Optional. Do not initialize lastlog and faillog for
user. Default: false
- ``no-user-group``: Optional. Do not create group named after user.
- ``no_user_group``: Optional. Do not create group named after user.
Default: false
- ``passwd``: Hash of user password
- ``primary-group``: Optional. Primary group for user. Default to new group
- ``primary_group``: Optional. Primary group for user. Default to new group
named after user.
- ``selinux-user``: Optional. SELinux user for user's login. Default to
- ``selinux_user``: Optional. SELinux user for user's login. Default to
default SELinux user.
- ``shell``: Optional. The user's login shell. The default is to set no
shell, which results in a system-specific default being used.
- ``snapuser``: Optional. Specify an email address to create the user as
a Snappy user through ``snap create-user``. If an Ubuntu SSO account is
associated with the address, username and SSH keys will be requested from
there. Default: none
- ``ssh-authorized-keys``: Optional. List of ssh keys to add to user's
- ``ssh_authorized_keys``: Optional. List of ssh keys to add to user's
authkeys file. Default: none
- ``ssh-import-id``: Optional. SSH id to import for user. Default: none
- ``ssh_import_id``: Optional. SSH id to import for user. Default: none
- ``sudo``: Optional. Sudo rule to use, or list of sudo rules to use.
Default: none.
- ``system``: Optional. Create user as system user with no home directory.
Expand Down Expand Up @@ -89,18 +89,18 @@
homedir: <home directory>
inactive: <true/false>
lock_passwd: <true/false>
no-create-home: <true/false>
no-log-init: <true/false>
no-user-group: <true/false>
no_create_home: <true/false>
no_log_init: <true/false>
no_user_group: <true/false>
passwd: <password>
primary-group: <primary group>
selinux-user: <selinux username>
primary_group: <primary group>
selinux_user: <selinux username>
shell: <shell path>
snapuser: <email>
ssh-authorized-keys:
ssh_authorized_keys:
- <key>
- <key>
ssh-import-id: <id>
ssh_import_id: <id>
sudo: <sudo config>
system: <true/false>
uid: <user id>
Expand Down
24 changes: 12 additions & 12 deletions doc/examples/cloud-config-user-groups.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,20 @@ users:
- default
- name: foobar
gecos: Foo B. Bar
primary-group: foobar
primary_group: foobar
groups: users
selinux-user: staff_u
selinux_user: staff_u
expiredate: 2012-09-01
ssh-import-id: foobar
ssh_import_id: foobar
lock_passwd: false
passwd: $6$j212wezy$7H/1LT4f9/N3wpgNunhsIqtMj62OKiS3nyNwuizouQc3u7MbYCarYeAHWYPYb2FT.lbioDm2RrkJPb9BZMN1O/
- name: barfoo
gecos: Bar B. Foo
sudo: ALL=(ALL) NOPASSWD:ALL
groups: users, admin
ssh-import-id: None
ssh_import_id: None
lock_passwd: true
ssh-authorized-keys:
ssh_authorized_keys:
- <ssh pub key 1>
- <ssh pub key 2>
- name: cloudy
Expand All @@ -37,10 +37,10 @@ users:
# gecos: The user name's real name, i.e. "Bob B. Smith"
# homedir: Optional. Set to the local path you want to use. Defaults to
# /home/<username>
# primary-group: define the primary group. Defaults to a new group created
# primary_group: define the primary group. Defaults to a new group created
# named after the user.
# groups: Optional. Additional groups to add the user to. Defaults to none
# selinux-user: Optional. The SELinux user for the user's login, such as
# selinux_user: Optional. The SELinux user for the user's login, such as
# "staff_u". When this is omitted the system will select the default
# SELinux user.
# lock_passwd: Defaults to true. Lock the password to disable password login
Expand All @@ -66,11 +66,11 @@ users:
# should use SSH authentication only.
#
# You have thus been warned.
# no-create-home: When set to true, do not create home directory.
# no-user-group: When set to true, do not create a group named after the user.
# no-log-init: When set to true, do not initialize lastlog and faillog database.
# ssh-import-id: Optional. Import SSH ids
# ssh-authorized-keys: Optional. [list] Add keys to user's authorized keys file
# no_create_home: When set to true, do not create home directory.
# no_user_group: When set to true, do not create a group named after the user.
# no_log_init: When set to true, do not initialize lastlog and faillog database.
# ssh_import_id: Optional. Import SSH ids
# ssh_authorized_keys: Optional. [list] Add keys to user's authorized keys file
# sudo: Defaults to none. Set to the sudo string you want to use, i.e.
# ALL=(ALL) NOPASSWD:ALL. To add multiple rules, use the following
# format.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ cloud_config: |
- default
- name: foobar
gecos: Foo B. Bar
primary-group: foobar
primary_group: foobar
groups: users
expiredate: 2038-01-19
lock_passwd: false
Expand Down
2 changes: 1 addition & 1 deletion tests/cloud_tests/testcases/modules/user_groups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ cloud_config: |
- default
- name: foobar
gecos: Foo B. Bar
primary-group: foobar
primary_group: foobar
groups: users
expiredate: 2038-01-19
lock_passwd: false
Expand Down
16 changes: 8 additions & 8 deletions tests/data/merge_sources/expected7.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@ users:
- default
- name: foobar
gecos: Foo B. Bar
primary-group: foobar
primary_group: foobar
groups: users
selinux-user: staff_u
selinux_user: staff_u
expiredate: 2012-09-01
ssh-import-id: foobar
ssh_import_id: foobar
lock-passwd: false
passwd: $6$j212wezy$7H/1LT4f9/N3wpgNunhsIqtMj62OKiS3nyNwuizouQc3u7MbYCarYeAHWYPYb2FT.lbioDm2RrkJPb9BZMN1O/
- name: barfoo
gecos: Bar B. Foo
sudo: ALL=(ALL) NOPASSWD:ALL
groups: users, admin
ssh-import-id: None
ssh_import_id: None
lock-passwd: true
ssh-authorized-keys:
ssh_authorized_keys:
- <ssh pub key 1>
- <ssh pub key 2>
- name: cloudy
Expand All @@ -29,10 +29,10 @@ users:
- sue
- name: foobar_jr
gecos: Foo B. Bar Jr
primary-group: foobar
primary_group: foobar
groups: users
selinux-user: staff_u
selinux_user: staff_u
expiredate: 2012-09-01
ssh-import-id: foobar
ssh_import_id: foobar
lock-passwd: false
passwd: $6$j212wezy$7H/1LT4f9/N3wpgNunhsIqtMj62OKiS3nyNwuizouQc3u7MbYCarYeAHWYPYb2FT.lbioDm2RrkJPb9BZMN1O/
10 changes: 5 additions & 5 deletions tests/data/merge_sources/source7-1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@ users:
- default
- name: foobar
gecos: Foo B. Bar
primary-group: foobar
primary_group: foobar
groups: users
selinux-user: staff_u
selinux_user: staff_u
expiredate: 2012-09-01
ssh-import-id: foobar
ssh_import_id: foobar
lock-passwd: false
passwd: $6$j212wezy$7H/1LT4f9/N3wpgNunhsIqtMj62OKiS3nyNwuizouQc3u7MbYCarYeAHWYPYb2FT.lbioDm2RrkJPb9BZMN1O/
- name: barfoo
gecos: Bar B. Foo
sudo: ALL=(ALL) NOPASSWD:ALL
groups: users, admin
ssh-import-id: None
ssh_import_id: None
lock-passwd: true
ssh-authorized-keys:
ssh_authorized_keys:
- <ssh pub key 1>
- <ssh pub key 2>
- name: cloudy
Expand Down
6 changes: 3 additions & 3 deletions tests/data/merge_sources/source7-2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ users:
- sue
- name: foobar_jr
gecos: Foo B. Bar Jr
primary-group: foobar
primary_group: foobar
groups: users
selinux-user: staff_u
selinux_user: staff_u
expiredate: 2012-09-01
ssh-import-id: foobar
ssh_import_id: foobar
lock-passwd: false
passwd: $6$j212wezy$7H/1LT4f9/N3wpgNunhsIqtMj62OKiS3nyNwuizouQc3u7MbYCarYeAHWYPYb2FT.lbioDm2RrkJPb9BZMN1O/

Expand Down

0 comments on commit b27f713

Please sign in to comment.