Skip to content

Support changing the podman user's uid #264

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion environments/common/inventory/group_vars/all/defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,14 @@ grafana_address: "{{ hostvars[groups['grafana'].0].api_address }}"

# Note RockyLinux 8.5 defines system user/groups in range 201-999
appliances_local_users_ansible_user_name: "{{ ansible_ssh_user | default(ansible_user) }}"
appliances_local_users_podman_uid: 1001 # UID for podman user - normally next UID after default user
appliances_local_users_podman: # also used in environments/common/inventory/group_vars/all/podman.yml:podman_users
name: podman
comment: Used for running all containers
# Would like to set subuid so that we that we know what will appear in /etc/subuid
# See: https://github.com/ansible/ansible/issues/68199
home: /var/lib/podman
uid: 1001
uid: "{{ appliances_local_users_podman_uid }}"

appliances_local_users_default:
- user:
Expand Down