mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +00:00
Revert "default run as root user because `erlexec
` needs HOME env to be set"
This reverts commit ce91c65a77
.
Already set user to run rabbitmq cmds in rabbitmq module to whom
salt-minion running as.
This allow to specify arbitrary user to run those cmds
but still has a saner default than 'root'.
Setting it as 'root' may not work when salt-minion does not run as 'root'.
This commit is contained in:
parent
6a69641b4e
commit
db8b68ab5f
@ -29,7 +29,7 @@ def __virtual__():
|
||||
return salt.utils.which('rabbitmqctl') is not None
|
||||
|
||||
|
||||
def join(name, host, user='rabbit', runas='root'):
|
||||
def join(name, host, user='rabbit', runas=None):
|
||||
'''
|
||||
Ensure the RabbitMQ plugin is enabled.
|
||||
|
||||
|
@ -29,7 +29,7 @@ def __virtual__():
|
||||
return False
|
||||
|
||||
|
||||
def enabled(name, runas='root'):
|
||||
def enabled(name, runas=None):
|
||||
'''
|
||||
Ensure the RabbitMQ plugin is enabled.
|
||||
|
||||
@ -62,7 +62,7 @@ def enabled(name, runas='root'):
|
||||
return ret
|
||||
|
||||
|
||||
def disabled(name, runas='root'):
|
||||
def disabled(name, runas=None):
|
||||
'''
|
||||
Ensure the RabbitMQ plugin is enabled.
|
||||
|
||||
|
@ -37,7 +37,7 @@ def present(name,
|
||||
definition,
|
||||
priority=0,
|
||||
vhost='/',
|
||||
runas='root'):
|
||||
runas=None):
|
||||
'''
|
||||
Ensure the RabbitMQ policy exists.
|
||||
|
||||
@ -108,7 +108,7 @@ def present(name,
|
||||
|
||||
def absent(name,
|
||||
vhost='/',
|
||||
runas='root'):
|
||||
runas=None):
|
||||
'''
|
||||
Ensure the named policy is absent
|
||||
|
||||
|
@ -41,7 +41,7 @@ def present(name,
|
||||
force=False,
|
||||
tags=None,
|
||||
perms=(),
|
||||
runas='root'):
|
||||
runas=None):
|
||||
'''
|
||||
Ensure the RabbitMQ user exists.
|
||||
|
||||
@ -140,7 +140,7 @@ def present(name,
|
||||
|
||||
|
||||
def absent(name,
|
||||
runas='root'):
|
||||
runas=None):
|
||||
'''
|
||||
Ensure the named user is absent
|
||||
|
||||
|
@ -33,11 +33,11 @@ def __virtual__():
|
||||
|
||||
def present(name,
|
||||
user=None,
|
||||
owner='root',
|
||||
owner=None,
|
||||
conf=None,
|
||||
write=None,
|
||||
read=None,
|
||||
runas='root'):
|
||||
runas=None):
|
||||
'''
|
||||
Ensure the RabbitMQ VHost exists.
|
||||
|
||||
@ -146,7 +146,7 @@ def present(name,
|
||||
|
||||
|
||||
def absent(name,
|
||||
runas='root'):
|
||||
runas=None):
|
||||
'''
|
||||
Ensure the RabbitMQ Virtual Host is absent
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user