Przeglądaj źródła

Adding create app

Kenny Woodson 9 lat temu
rodzic
commit
3acccb3e51

+ 8 - 0
roles/os_zabbix/tasks/main.yml

@@ -12,6 +12,7 @@
 - include_vars: template_heartbeat.yml
 - include_vars: template_os_linux.yml
 - include_vars: template_docker.yml
+- include_vars: template_openshift_master.yml
 
 - name: Include Template Heartbeat
   include: ../../lib_zabbix/tasks/create_template.yml
@@ -37,3 +38,10 @@
     user: "{{ ozb_user }}"
     password: "{{ ozb_password }}"
 
+- name: Include Template Openshift Master
+  include: ../../lib_zabbix/tasks/create_template.yml
+  vars:
+    template: "{{ g_template_openshift_master }}"
+    server: "{{ ozb_server }}"
+    user: "{{ ozb_user }}"
+    password: "{{ ozb_password }}"

+ 12 - 0
roles/os_zabbix/vars/template_openshift_master.yml

@@ -0,0 +1,12 @@
+---
+g_template_openshift_master:
+  name: Template Openshift Master
+  zitems:
+  - name: create_app
+    applications:
+    - Openshift Master
+    key: create_app
+  ztriggers:
+  - description: 'Application creation has failed on {HOST.NAME}'
+    expression: '{Template Openshift Master:create_app.last(#1)}=1 and {Template Openshift Master:create_app.last(#2)}=1'
+    priority: avg