You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ansible/roles/basic_users/README.md
+15-12Lines changed: 15 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,12 +5,13 @@ basic_users
5
5
Setup users on cluster nodes using `/etc/passwd` and manipulating `$HOME`, i.e.
6
6
without requiring LDAP etc. Features:
7
7
- UID/GID is consistent across cluster (and explicitly defined).
8
-
- SSH key generated and propagated to all nodes to allow login between cluster nodes.
8
+
- SSH key generated and propagated to all nodes to allow login between cluster
9
+
nodes.
9
10
- An "external" SSH key can be added to allow login from elsewhere.
10
11
- Login to the control node is prevented (by default).
11
12
- When deleting users, systemd user sessions are terminated first.
12
13
13
-
> [!IMPORTANT] This role assumes that `$HOME` for users managed by this role
14
+
> [!IMPORTANT] This role assumes that `$HOME` for users managed by this role
14
15
(e.g. not `rocky` and other system users) is on a shared filesystem. The export
15
16
of this shared filesystem may be root squashed if its server is in the
16
17
`basic_user` group - see configuration examples below.
@@ -24,9 +25,9 @@ Role Variables
24
25
key creation, should not be set `true`.
25
26
-`ssh_key_comment`: Default is user name.
26
27
-`home`: Normally set automatically.
27
-
-`uid` should be set, so that the UID/GID is consistent across the cluster
28
+
-`uid`: Should be set, so that the UID/GID is consistent across the cluster
28
29
(which Slurm requires).
29
-
-`shell` If *not* set will be `/sbin/nologin` on the `control` node and the
30
+
-`shell`: If *not* set will be `/sbin/nologin` on the `control` node and the
30
31
default shell on other users. Explicitly setting this defines the shell for
31
32
all nodes.
32
33
- An additional key `public_key` may optionally be specified to define a key to log into the cluster.
@@ -36,14 +37,13 @@ Role Variables
36
37
-`basic_users_groups`: Optional, default empty list. A list of mappings defining information for each group. Mapping keys/values are passed through as parameters to [ansible.builtin.group](https://docs.ansible.com/ansible/latest/collections/ansible/builtin/group_module.html) and default values are as given there.
37
38
-`basic_users_override_sssd`: Optional bool, default false. Whether to disable `sssd` when ensuring users/groups exist with this role. Permits creating local users/groups even if they clash with users provided via sssd (e.g. from LDAP). Ignored if host is not in group `sssd` as well. Note with this option active `sssd` will be stopped and restarted each time this role is run.
38
39
-`basic_users_homedir_host`: Optional inventory hostname defining the host
39
-
to use to create home directories. If the home directory export is root squashed,
40
-
this host *must* be the home directory server. Default is the`control` node,
41
-
for the default appliance NFS-exported home directory configuration.
40
+
to use to create home directories. If the home directory export is root
41
+
squashed, this host *must* be the home directory server. Default is the
42
+
`control` node which is appropriate for the default appliance configuration.
42
43
Not relevant if `create_home` is false for all users.
43
44
-`basic_users_homedir_host_path`: Optional path prefix for home directories on
44
45
the `basic_users_homedir_host`, i.e. on the "server side". Default is
45
-
`/exports/home`, for the default appliance NFS-exported home directory
46
-
configuration.
46
+
`/exports/home` which is appropriate for the default appliance configuration.
47
47
48
48
Dependencies
49
49
------------
@@ -69,9 +69,12 @@ basic_users_users:
69
69
state: absent
70
70
```
71
71
72
-
Using an external share which does not root squash so this role can create
73
-
directories on it, which is also mounted to the control node (so this role can
74
-
set authorized keys there), create user `Carol`:
72
+
Using an external share which:
73
+
- does not root squash (so this role can create directories on it)
74
+
- ismounted to all nodes including the control node (so this role can set
75
+
authorized keys there),
76
+
77
+
create user `Carol`:
75
78
76
79
```yaml
77
80
basic_users_homedir_host: "{{ ansible_play_hosts | first }}" # doesn't matter which host is used
0 commit comments