Management of Zabbix users.
Jiri Kotlin <jiri.kotlin@ultimum.io>
salt.states.zabbix_user.
absent
(name, **kwargs)¶Ensures that the user does not exist, eventually delete user.
New in version 2016.3.0.
name -- user alias
_connection_user -- Optional - zabbix user (can also be set in opts or pillar, see module's docstring)
_connection_password -- Optional - zabbix password (can also be set in opts or pillar, see module's docstring)
_connection_url -- Optional - url of zabbix frontend (can also be set in opts, pillar, see module's docstring)
George:
zabbix_user.absent
salt.states.zabbix_user.
present
(alias, passwd, usrgrps, medias, password_reset=False, **kwargs)¶Ensures that the user exists, eventually creates new user. NOTE: use argument firstname instead of name to not mess values with name from salt sls.
New in version 2016.3.0.
alias -- user alias
passwd -- user's password
usrgrps -- user groups to add the user to
medias -- user's medias to create
password_reset -- whether or not to reset password at update
_connection_user -- Optional - zabbix user (can also be set in opts or pillar, see module's docstring)
_connection_password -- Optional - zabbix password (can also be set in opts or pillar, see module's docstring)
_connection_url -- Optional - url of zabbix frontend (can also be set in opts, pillar, see module's docstring)
firstname -- string with firstname of the user, use 'firstname' instead of 'name' parameter to not mess with value supplied from Salt sls file.
make_user:
zabbix_user.present:
- alias: George
- passwd: donottellanyonE@456x
- password_reset: True
- usrgrps:
- 13
- 7
- medias:
- me@example.com:
- mediatype: mail
- period: '1-7,00:00-24:00'
- severity: NIWAHD
- make_jabber:
- active: true
- mediatype: jabber
- period: '1-5,08:00-19:00'
- sendto: jabbera@example.com
- text_me_morning_disabled:
- active: false
- mediatype: sms
- period: '1-5,09:30-10:00'
- severity: D
- sendto: '+42032132588568'