Browse Source

Add installer checkpoint for prometheus

Add checkpoint steps for full cluster install and individual entry point playbook.
Zohar Galor 7 years ago
parent
commit
76d69e29bd

+ 20 - 0
playbooks/common/openshift-cluster/openshift_prometheus.yml

@@ -1,5 +1,25 @@
 ---
+- name: Prometheus Install Checkpoint Start
+  hosts: oo_all_hosts
+  gather_facts: false
+  tasks:
+  - name: Set Prometheus install 'In Progress'
+    set_stats:
+      data:
+        installer_phase_prometheus: "In Progress"
+      aggregate: false
+
 - name: Create Hosted Resources - openshift_prometheus
   hosts: oo_first_master
   roles:
   - role: openshift_prometheus
+
+- name: Prometheus Install Checkpoint End
+  hosts: oo_all_hosts
+  gather_facts: false
+  tasks:
+  - name: Set Prometheus install 'Complete'
+    set_stats:
+      data:
+        installer_phase_prometheus: "Complete"
+      aggregate: false

+ 7 - 0
roles/installer_checkpoint/callback_plugins/installer_checkpoint.py

@@ -31,6 +31,7 @@ GlusterFS Install          : Not Started
 Hosted Install             : Complete
 Metrics Install            : Not Started
 Logging Install            : Not Started
+Prometheus Install         : Not Started
 Service Catalog Install    : Not Started
 
 -----------------------------------------------------
@@ -49,6 +50,7 @@ GlusterFS Install          : Not Started
 Hosted Install             : Not Started
 Metrics Install            : Not Started
 Logging Install            : Not Started
+Prometheus Install         : Not Started
 Service Catalog Install    : Not Started
 
 '''
@@ -80,6 +82,7 @@ class CallbackModule(CallbackBase):
             'installer_phase_hosted',
             'installer_phase_metrics',
             'installer_phase_logging',
+            'installer_phase_prometheus',
             'installer_phase_servicecatalog',
             'installer_phase_management',
         ]
@@ -130,6 +133,10 @@ class CallbackModule(CallbackBase):
                 'title': 'Logging Install',
                 'playbook': 'playbooks/byo/openshift-cluster/openshift-logging.yml'
             },
+            'installer_phase_prometheus': {
+                'title': 'Prometheus Install',
+                'playbook': 'playbooks/byo/openshift-cluster/openshift-prometheus.yml'
+            },
             'installer_phase_servicecatalog': {
                 'title': 'Service Catalog Install',
                 'playbook': 'playbooks/byo/openshift-cluster/service-catalog.yml'