diff options
| author | Russell Teague <rteague@redhat.com> | 2017-10-30 10:44:45 -0400 | 
|---|---|---|
| committer | Russell Teague <rteague@redhat.com> | 2017-10-31 11:00:11 -0400 | 
| commit | acc1820918f0c8123bff8799dd723929d8baa0e1 (patch) | |
| tree | 425e6d5eae2454a20e2cac992ba7a13fd592038b /playbooks/common/openshift-cluster | |
| parent | 2d0365bfabc225dcb91a0df9f37ecda2bd606602 (diff) | |
| download | openshift-acc1820918f0c8123bff8799dd723929d8baa0e1.tar.gz openshift-acc1820918f0c8123bff8799dd723929d8baa0e1.tar.bz2 openshift-acc1820918f0c8123bff8799dd723929d8baa0e1.tar.xz openshift-acc1820918f0c8123bff8799dd723929d8baa0e1.zip | |
Add execution times to checkpoint status
Diffstat (limited to 'playbooks/common/openshift-cluster')
6 files changed, 60 insertions, 36 deletions
| diff --git a/playbooks/common/openshift-cluster/openshift_hosted.yml b/playbooks/common/openshift-cluster/openshift_hosted.yml index c1536eb36..608ac9052 100644 --- a/playbooks/common/openshift-cluster/openshift_hosted.yml +++ b/playbooks/common/openshift-cluster/openshift_hosted.yml @@ -1,13 +1,15 @@  ---  - name: Hosted Install Checkpoint Start -  hosts: oo_all_hosts +  hosts: all    gather_facts: false    tasks:    - name: Set Hosted install 'In Progress' +    run_once: true      set_stats:        data: -        installer_phase_hosted: "In Progress" -      aggregate: false +        installer_phase_hosted: +          status: "In Progress" +          start: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"  - include: create_persistent_volumes.yml @@ -25,11 +27,13 @@    when: openshift_hosted_prometheus_deploy | default(False) | bool  - name: Hosted Install Checkpoint End -  hosts: oo_all_hosts +  hosts: all    gather_facts: false    tasks:    - name: Set Hosted install 'Complete' +    run_once: true      set_stats:        data: -        installer_phase_hosted: "Complete" -      aggregate: false +        installer_phase_hosted: +          status: "Complete" +          end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}" diff --git a/playbooks/common/openshift-cluster/openshift_logging.yml b/playbooks/common/openshift-cluster/openshift_logging.yml index 529a4c939..bc59bd95a 100644 --- a/playbooks/common/openshift-cluster/openshift_logging.yml +++ b/playbooks/common/openshift-cluster/openshift_logging.yml @@ -1,13 +1,15 @@  ---  - name: Logging Install Checkpoint Start -  hosts: oo_all_hosts +  hosts: all    gather_facts: false    tasks:    - name: Set Logging install 'In Progress' +    run_once: true      set_stats:        data: -        installer_phase_logging: "In Progress" -      aggregate: false +        installer_phase_logging: +          status: "In Progress" +          start: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"  - name: OpenShift Aggregated Logging    hosts: oo_first_master @@ -23,11 +25,13 @@          tasks_from: update_master_config  - name: Logging Install Checkpoint End -  hosts: oo_all_hosts +  hosts: all    gather_facts: false    tasks:    - name: Set Logging install 'Complete' +    run_once: true      set_stats:        data: -        installer_phase_logging: "Complete" -      aggregate: false +        installer_phase_logging: +          status: "Complete" +          end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}" diff --git a/playbooks/common/openshift-cluster/openshift_metrics.yml b/playbooks/common/openshift-cluster/openshift_metrics.yml index 9c0bd489b..80cd93e5f 100644 --- a/playbooks/common/openshift-cluster/openshift_metrics.yml +++ b/playbooks/common/openshift-cluster/openshift_metrics.yml @@ -1,13 +1,15 @@  ---  - name: Metrics Install Checkpoint Start -  hosts: oo_all_hosts +  hosts: all    gather_facts: false    tasks:    - name: Set Metrics install 'In Progress' +    run_once: true      set_stats:        data: -        installer_phase_metrics: "In Progress" -      aggregate: false +        installer_phase_metrics: +          status: "In Progress" +          start: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"  - name: OpenShift Metrics    hosts: oo_first_master @@ -24,11 +26,13 @@        tasks_from: update_master_config.yaml  - name: Metrics Install Checkpoint End -  hosts: oo_all_hosts +  hosts: all    gather_facts: false    tasks:    - name: Set Metrics install 'Complete' +    run_once: true      set_stats:        data: -        installer_phase_metrics: "Complete" -      aggregate: false +        installer_phase_metrics: +          status: "Complete" +          end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}" diff --git a/playbooks/common/openshift-cluster/openshift_prometheus.yml b/playbooks/common/openshift-cluster/openshift_prometheus.yml index a73b294a5..7aa9a16e6 100644 --- a/playbooks/common/openshift-cluster/openshift_prometheus.yml +++ b/playbooks/common/openshift-cluster/openshift_prometheus.yml @@ -1,13 +1,15 @@  ---  - name: Prometheus Install Checkpoint Start -  hosts: oo_all_hosts +  hosts: all    gather_facts: false    tasks:    - name: Set Prometheus install 'In Progress' +    run_once: true      set_stats:        data: -        installer_phase_prometheus: "In Progress" -      aggregate: false +        installer_phase_prometheus: +          status: "In Progress" +          start: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"  - name: Create Hosted Resources - openshift_prometheus    hosts: oo_first_master @@ -15,11 +17,13 @@    - role: openshift_prometheus  - name: Prometheus Install Checkpoint End -  hosts: oo_all_hosts +  hosts: all    gather_facts: false    tasks:    - name: Set Prometheus install 'Complete' +    run_once: true      set_stats:        data: -        installer_phase_prometheus: "Complete" -      aggregate: false +        installer_phase_prometheus: +          status: "Complete" +          end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}" diff --git a/playbooks/common/openshift-cluster/service_catalog.yml b/playbooks/common/openshift-cluster/service_catalog.yml index bd964b2ce..7bb8511f6 100644 --- a/playbooks/common/openshift-cluster/service_catalog.yml +++ b/playbooks/common/openshift-cluster/service_catalog.yml @@ -1,13 +1,15 @@  ---  - name: Service Catalog Install Checkpoint Start -  hosts: oo_all_hosts +  hosts: all    gather_facts: false    tasks:    - name: Set Service Catalog install 'In Progress' +    run_once: true      set_stats:        data: -        installer_phase_servicecatalog: "In Progress" -      aggregate: false +        installer_phase_servicecatalog: +          status: "In Progress" +          start: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"  - name: Service Catalog    hosts: oo_first_master @@ -19,11 +21,13 @@      first_master: "{{ groups.oo_first_master[0] }}"  - name: Service Catalog Install Checkpoint End -  hosts: oo_all_hosts +  hosts: all    gather_facts: false    tasks:    - name: Set Service Catalog install 'Complete' +    run_once: true      set_stats:        data: -        installer_phase_servicecatalog: "Complete" -      aggregate: false +        installer_phase_servicecatalog: +          status: "Complete" +          end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}" diff --git a/playbooks/common/openshift-cluster/std_include.yml b/playbooks/common/openshift-cluster/std_include.yml index 45b34c8bd..fe376fe31 100644 --- a/playbooks/common/openshift-cluster/std_include.yml +++ b/playbooks/common/openshift-cluster/std_include.yml @@ -1,15 +1,17 @@  ---  - name: Initialization Checkpoint Start -  hosts: oo_all_hosts +  hosts: all    gather_facts: false    roles:    - installer_checkpoint    tasks:    - name: Set install initialization 'In Progress' +    run_once: true      set_stats:        data: -        installer_phase_initialize: "In Progress" -      aggregate: false +        installer_phase_initialize: +          status: "In Progress" +          start: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"  - include: evaluate_groups.yml    tags: @@ -36,11 +38,13 @@    - always  - name: Initialization Checkpoint End -  hosts: oo_all_hosts +  hosts: all    gather_facts: false    tasks:    - name: Set install initialization 'Complete' +    run_once: true      set_stats:        data: -        installer_phase_initialize: "Complete" -      aggregate: false +        installer_phase_initialize: +          status: "Complete" +          end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}" | 
