9a9af41e48
This updates our user management system to use the userdel --force flag when disabling and removing distro cloud image users like 'ubuntu', 'centos' and 'admin'. The reason for this is when we switch from using the distro user to boot strap launchnode over to root the distro user may still have running processes that prevent userdel from succeeding. This should address that problem and delete the user anyway. The last step in the launch node process is to reboot which should clear out any stale processes. We don't do this for normal users as they aren't removed at node launch time and this may be too forceful for them. It would be better for us to error in that case and clean up any stale processes. Change-Id: I79caf2a996566ecaec4cb4a70941bb3f03a5fb73
33 lines
707 B
ReStructuredText
33 lines
707 B
ReStructuredText
Configure users on a server
|
|
|
|
Configure users on a server. Users are given sudo access
|
|
|
|
**Role Variables**
|
|
|
|
.. zuul:rolevar:: all_users
|
|
:default: {}
|
|
|
|
Dictionary of all users. Each user needs a ``uid``, ``gid`` and ``key``
|
|
|
|
.. zuul:rolevar:: base_users
|
|
:default: []
|
|
|
|
Users to install on all hosts
|
|
|
|
.. zuul:rolevar:: extra_users
|
|
:default: []
|
|
|
|
Extra users to install on a specific host or group
|
|
|
|
.. zuul:rolevar:: disabled_distro_cloud_users
|
|
:default: []
|
|
|
|
Distro cloud image default users to remove from hosts. This removal is
|
|
slightly more forceful than the removal of normal users.
|
|
|
|
.. zuul:rolevar:: disabled_users
|
|
:default: []
|
|
|
|
Users who should be removed from all hosts
|
|
|