Wolfgang Kulhanek
2020-02-27 8c347393210cee8b6ef0f89eeff3854216c460bc
Add variable ocp4_enable_cluster_shutdown, remove tag (#1200)

4 files modified
12 ■■■■■ changed files
ansible/configs/ocp4-cluster/default_vars.yml 3 ●●●●● patch | view | raw | blame | history
ansible/configs/ocp4-cluster/post_software.yml 3 ●●●● patch | view | raw | blame | history
ansible/configs/ocp4-workshop/env_vars.yml 3 ●●●●● patch | view | raw | blame | history
ansible/configs/ocp4-workshop/post_software.yml 3 ●●●● patch | view | raw | blame | history
ansible/configs/ocp4-cluster/default_vars.yml
@@ -123,6 +123,9 @@
# Install OpenShift 4 - and which version
install_ocp4: true
ocp4_installer_version: "4.3.0"
# Run logic to enable cluster shutdown before 24h initial certificate rotation (default is true)
ocp4_enable_cluster_shutdown: true
subdomain_base_suffix: ".example.opentlc.com"
# Run smoketests after installation
ansible/configs/ocp4-cluster/post_software.yml
@@ -201,13 +201,12 @@
  run_once: yes
  gather_facts: false
  become: false
  tags:
  - enable_shutdown
  environment:
    KUBECONFIG: /home/{{ remote_user }}/{{ cluster_name }}/auth/kubeconfig
  tasks:
  - when:
    - install_ocp4 | d(False) | bool
    - ocp4_enable_cluster_shutdown | d(True) | bool
    block:
    - name: Set Ansible Python interpreter to k8s virtualenv
      set_fact:
ansible/configs/ocp4-workshop/env_vars.yml
@@ -41,6 +41,9 @@
#ocp4_installer_url: https://mirror.openshift.com/pub/openshift-v4/clients/ocp-dev-preview/4.2.0-0.nightly-2019-08-27-072819/openshift-install-linux-4.2.0-0.nightly-2019-08-27-072819.tar.gz
#ocp4_client_url: https://mirror.openshift.com/pub/openshift-v4/clients/ocp-dev-preview/4.2.0-0.nightly-2019-08-27-072819/openshift-client-linux-4.2.0-0.nightly-2019-08-27-072819.tar.gz
# Run logic to enable cluster shutdown before 24h initial certificate rotation (default is true)
ocp4_enable_cluster_shutdown: true
cluster_name: "cluster-{{ guid }}"
cloud_tags:
ansible/configs/ocp4-workshop/post_software.yml
@@ -345,11 +345,10 @@
  run_once: yes
  gather_facts: false
  become: false
  tags:
  - enable_shutdown
  tasks:
  - when:
    - install_ocp4 | d(False) | bool
    - ocp4_enable_cluster_shutdown | d(True) | bool
    environment:
      KUBECONFIG: "{{ cluster_name }}/auth/kubeconfig"
    ignore_errors: yes