Add salt to a bunch of groups

This commit is contained in:
Salt 2020-12-04 08:11:21 -06:00
parent 55d721e5b6
commit a5a965adbd

View File

@ -304,6 +304,9 @@ build-gentoo-chroot() {
useradd salt -m -G wheel -s /bin/bash -u 1000 -U
passwd salt
fi
for group in audio cdrom floppy games usb video wheel; do
usermod -G "$group" -a salt || warn "Failed to add salt to group: $group"
done
# Configure Ansible user, his sudo rights are specifically in sudoers
if ! id ansible > /dev/null 2>&1; then