mirror of
https://github.com/saltstack/salt.git
synced 2025-04-15 09:10:20 +00:00
Add salt user when installing debian packages
This commit is contained in:
parent
60d790597a
commit
e0afdecf4c
3 changed files with 3 additions and 2 deletions
|
@ -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
1
pkg/debian/postinst
Normal file
|
@ -0,0 +1 @@
|
|||
adduser --system salt
|
|
@ -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():
|
||||
|
|
Loading…
Add table
Reference in a new issue