Management of Zabbix hosts.
codeauthor: | Jiri Kotlin <jiri.kotlin@ultimum.io> |
---|
Ensures that the host does not exists, eventually deletes host.
New in version 2016.3.0.
Param: |
name: technical name of the host |
---|---|
Parameters: |
|
TestHostWithInterfaces: zabbix_host.absent
Ensures that templates are assigned to the host.
New in version 2017.7.0.
Parameters: |
|
---|
add_zabbix_templates_to_host: zabbix_host.assign_templates: - host: TestHost - templates: - "Template OS Linux" - "Template App MySQL"
Ensures that the host exists, eventually creates new host. NOTE: please use argument visible_name instead of name to not mess with name from salt sls. This function accepts all standard host properties: keyword argument names differ depending on your zabbix version, see: https://www.zabbix.com/documentation/2.4/manual/api/reference/host/object#host
New in version 2016.3.0.
Parameters: |
|
---|
create_test_host: zabbix_host.present: - host: TestHostWithInterfaces - proxy_host: 12345 - groups: - 5 - 6 - 7 - interfaces: - test1.example.com: - ip: '192.168.1.8' - type: 'Agent' - port: 92 - testing2_create: - ip: '192.168.1.9' - dns: 'test2.example.com' - type: 'agent' - main: false - testovaci1_ipmi: - ip: '192.168.100.111' - type: 'ipmi' - inventory: - alias: some alias - asset_tag: jlm3937
© 2019 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltstack.com/en/latest/ref/states/all/salt.states.zabbix_host.html