diff options
author | Kenny Woodson <kwoodson@redhat.com> | 2015-09-28 13:07:58 -0400 |
---|---|---|
committer | Kenny Woodson <kwoodson@redhat.com> | 2015-09-28 13:07:58 -0400 |
commit | 39a7b2379f558037ad9840f7f08a397c9a9d9f70 (patch) | |
tree | 5feaad3225aadc8032567c6555bf07eac0d9ff4f /roles/lib_zabbix/tasks | |
parent | d865b2a9034130ec85a14638e0350b115401c94c (diff) | |
parent | 3a15b711e8d47e7365e361534533c28e234e87d3 (diff) | |
download | openshift-39a7b2379f558037ad9840f7f08a397c9a9d9f70.tar.gz openshift-39a7b2379f558037ad9840f7f08a397c9a9d9f70.tar.bz2 openshift-39a7b2379f558037ad9840f7f08a397c9a9d9f70.tar.xz openshift-39a7b2379f558037ad9840f7f08a397c9a9d9f70.zip |
Merge pull request #625 from kwoodson/triggerproto
Adding trigger prototype support
Diffstat (limited to 'roles/lib_zabbix/tasks')
-rw-r--r-- | roles/lib_zabbix/tasks/create_template.yml | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/roles/lib_zabbix/tasks/create_template.yml b/roles/lib_zabbix/tasks/create_template.yml index b4821bdc7..62259b680 100644 --- a/roles/lib_zabbix/tasks/create_template.yml +++ b/roles/lib_zabbix/tasks/create_template.yml @@ -66,7 +66,7 @@ with_items: template.zdiscoveryrules when: template.zdiscoveryrules is defined -- name: Create Item Prototype +- name: Create Item Prototypes zbx_itemprototype: zbx_server: "{{ server }}" zbx_user: "{{ user }}" @@ -80,3 +80,16 @@ description: "{{ item.description | default('', True) }}" with_items: template.zitemprototypes when: template.zitemprototypes is defined + +- name: Create Trigger Prototypes + zbx_triggerprototype: + zbx_server: "{{ server }}" + zbx_user: "{{ user }}" + zbx_password: "{{ password }}" + name: "{{ item.name }}" + expression: "{{ item.expression }}" + url: "{{ item.url | default('', True) }}" + priority: "{{ item.priority | default('average', True) }}" + description: "{{ item.description | default('', True) }}" + with_items: template.ztriggerprototypes + when: template.ztriggerprototypes is defined |