Add salt user when installing debian packages

This commit is contained in:
Megan Wilhite 2023-04-07 10:32:03 -06:00 committed by Pedro Algarvio
parent 60d790597a
commit e0afdecf4c
3 changed files with 3 additions and 2 deletions

View file

@ -25,7 +25,7 @@
# permissions to allow the specified user to run the master. The exception is
# the job cache, which must be deleted if this user is changed. If the
# modified files cause conflicts, set verify_env to False.
#user: salt
user: salt
# Tell the master to also use salt-ssh when running commands against minions.
#enable_ssh_minions: False

1
pkg/debian/postinst Normal file
View file

@ -0,0 +1 @@
adduser --system salt

View file

@ -75,7 +75,7 @@ else:
_DFLT_IPC_MODE = "ipc"
_DFLT_FQDNS_GRAINS = False
_MASTER_TRIES = 1
_MASTER_USER = "salt"
_MASTER_USER = salt.utils.user.get_user()
def _gather_buffer_space():