Skip to content

Commit 4a6ab10

Browse files
committed
change default key type for in-cluster keys to ed25519
1 parent 38dc7f3 commit 4a6ab10

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

ansible/roles/basic_users/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Role Variables
2525
- `shell` if *not* set will be `/sbin/nologin` on the `control` node and the default shell on other users. Explicitly setting this defines the shell for all nodes.
2626
- An additional key `public_key` may optionally be specified to define a key to log into the cluster.
2727
- An additional key `sudo` may optionally be specified giving a string (possibly multiline) defining sudo rules to be templated.
28+
- `ssh_key_type` defaults to `ed25519` instead of the `ansible.builtin.user` default of `rsa`.
2829
- Any other keys may present for other purposes (i.e. not used by this role).
2930
- `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.
3031
- `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.

ansible/roles/basic_users/defaults/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ basic_users_userdefaults:
44
create_home: "{{ basic_users_manage_homedir }}"
55
generate_ssh_key: "{{ basic_users_manage_homedir }}"
66
ssh_key_comment: "{{ item.name }}"
7+
ssh_key_type: ed25519
78
shell: "{{'/sbin/nologin' if 'control' in group_names else omit }}"
89
basic_users_users: []
910
basic_users_groups: []

0 commit comments

Comments
 (0)