summaryrefslogtreecommitdiffstats
path: root/playbooks/byo/openshift-checks/certificate_expiry/easy-mode-upload.yaml
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2017-11-17 15:38:34 -0800
committerGitHub <noreply@github.com>2017-11-17 15:38:34 -0800
commitb4a294841e063784afe32c289bf3fd6410edc6d6 (patch)
treeb0d6435b8846f95ce836d4fb78100ea509d60b21 /playbooks/byo/openshift-checks/certificate_expiry/easy-mode-upload.yaml
parent9e97038fe0dbd6aa842a260ccc10b35f7aefe787 (diff)
parent9f2de18076bbec19116351a7a3552d4fd2f6790a (diff)
downloadopenshift-b4a294841e063784afe32c289bf3fd6410edc6d6.tar.gz
openshift-b4a294841e063784afe32c289bf3fd6410edc6d6.tar.bz2
openshift-b4a294841e063784afe32c289bf3fd6410edc6d6.tar.xz
openshift-b4a294841e063784afe32c289bf3fd6410edc6d6.zip
Merge pull request #6147 from mtnbikenc/consolidate-openshift-checks
Automatic merge from submit-queue. Playbook Consolidation - openshift-checks - Create playbooks/openshift-checks directory - Move everything from playbooks/byo/openshift-checks to playbooks/openshift-checks - Move everything from playbooks/common/openshift-checks to playbooks/openshift-checks/private - Fix all include path references throughout playbooks/ Trello: https://trello.com/c/2Rx1uvjz/547-2-playbook-consolidation-openshift-checks
Diffstat (limited to 'playbooks/byo/openshift-checks/certificate_expiry/easy-mode-upload.yaml')
-rw-r--r--playbooks/byo/openshift-checks/certificate_expiry/easy-mode-upload.yaml40
1 files changed, 0 insertions, 40 deletions
diff --git a/playbooks/byo/openshift-checks/certificate_expiry/easy-mode-upload.yaml b/playbooks/byo/openshift-checks/certificate_expiry/easy-mode-upload.yaml
deleted file mode 100644
index 378d1f154..000000000
--- a/playbooks/byo/openshift-checks/certificate_expiry/easy-mode-upload.yaml
+++ /dev/null
@@ -1,40 +0,0 @@
-# This example generates HTML and JSON reports and
-#
-# Copies of the generated HTML and JSON reports are uploaded to the masters,
-# which is particularly useful when this playbook is run from a container.
-#
-# All certificates (healthy or not) are included in the results
-#
-# Optional environment variables to alter the behaviour of the playbook:
-# CERT_EXPIRY_WARN_DAYS: Length of the warning window in days (45)
-# COPY_TO_PATH: path to copy reports to in the masters (/etc/origin/certificate_expiration_report)
----
-- name: Generate certificate expiration reports
- hosts: nodes:masters:etcd
- gather_facts: no
- vars:
- openshift_certificate_expiry_save_json_results: yes
- openshift_certificate_expiry_generate_html_report: yes
- openshift_certificate_expiry_show_all: yes
- openshift_certificate_expiry_warning_days: "{{ lookup('env', 'CERT_EXPIRY_WARN_DAYS') | default('45', true) }}"
- roles:
- - role: openshift_certificate_expiry
-
-- name: Upload reports to master
- hosts: masters
- gather_facts: no
- vars:
- destination_path: "{{ lookup('env', 'COPY_TO_PATH') | default('/etc/origin/certificate_expiration_report', true) }}"
- timestamp: "{{ lookup('pipe', 'date +%Y%m%d') }}"
- tasks:
- - name: Ensure that the target directory exists
- file:
- path: "{{ destination_path }}"
- state: directory
- - name: Copy the reports
- copy:
- dest: "{{ destination_path }}/{{ timestamp }}-{{ item }}"
- src: "/tmp/{{ item }}"
- with_items:
- - "cert-expiry-report.html"
- - "cert-expiry-report.json"