sborenst
2018-07-24 f1b74fdd644402f34c8d7ca4dfd1202dadcd0f54
reapplying warning cleanup
50 files modified
438 ■■■■ changed files
ansible/cloud_providers/azure_infrastructure_deployment.yml 12 ●●●● patch | view | raw | blame | history
ansible/configs/RHCLS-ScalableInfra-demo/playbooks/roles/packages/tasks/main.yml 4 ●●●● patch | view | raw | blame | history
ansible/configs/archive/ocp-storage-cns_based_on_ocp-workshop/files/cloud_providers/ec2_cloud_template.j2 24 ●●●● patch | view | raw | blame | history
ansible/configs/archive/ocp-storage-cns_based_on_ocp-workshop/files/hosts_template.j2 12 ●●●● patch | view | raw | blame | history
ansible/configs/archive/ocp-storage-cns_based_on_ocp-workshop/files/repos_template.j2 2 ●●● patch | view | raw | blame | history
ansible/configs/archive/ocp-storage-cns_based_on_ocp-workshop/scaleup.yml 6 ●●●● patch | view | raw | blame | history
ansible/configs/lightbulb/destroy_env.yml 2 ●●● patch | view | raw | blame | history
ansible/configs/lightbulb/pre_infra.yml 2 ●●● patch | view | raw | blame | history
ansible/configs/ocp-adv-deploy-hw/files/cloud_providers/ec2_cloud_template.j2 24 ●●●● patch | view | raw | blame | history
ansible/configs/ocp-clientvm/files/cloud_providers/ec2_cloud_template.j2 24 ●●●● patch | view | raw | blame | history
ansible/configs/ocp-clientvm/files/repos_template.j2 2 ●●● patch | view | raw | blame | history
ansible/configs/ocp-ha-disconnected-lab/files/cloud_providers/ec2_cloud_template.j2 24 ●●●● patch | view | raw | blame | history
ansible/configs/ocp-ha-disconnected-lab/files/repos_template.j2 2 ●●● patch | view | raw | blame | history
ansible/configs/ocp-ha-lab/files/cloud_providers/ec2_cloud_template.j2 24 ●●●● patch | view | raw | blame | history
ansible/configs/ocp-implementation-lab/files/cloud_providers/ec2_cloud_template.j2 24 ●●●● patch | view | raw | blame | history
ansible/configs/ocp-implementation-lab/files/hosts_template.j2 10 ●●●● patch | view | raw | blame | history
ansible/configs/ocp-multi-cloud-example/files/cloud_providers/ec2_cloud_template.j2 24 ●●●● patch | view | raw | blame | history
ansible/configs/ocp-multi-cloud-example/files/hosts_template.j2 12 ●●●● patch | view | raw | blame | history
ansible/configs/ocp-multi-cloud-example/files/repos_template.j2 2 ●●● patch | view | raw | blame | history
ansible/configs/ocp-multi-cloud-example/scaleup.yml 6 ●●●● patch | view | raw | blame | history
ansible/configs/ocp-storage-cns/files/cloud_providers/ec2_cloud_template.j2 24 ●●●● patch | view | raw | blame | history
ansible/configs/ocp-workshop/files/hosts_template.j2 12 ●●●● patch | view | raw | blame | history
ansible/configs/ocp-workshop/scaleup.yml 6 ●●●● patch | view | raw | blame | history
ansible/configs/openshift-demos/idle.yml 2 ●●● patch | view | raw | blame | history
ansible/configs/openshift-demos/imagebuild-pipeline.yml 2 ●●● patch | view | raw | blame | history
ansible/configs/openshift-demos/msa-cicd-eap-full.yml 2 ●●● patch | view | raw | blame | history
ansible/configs/openshift-demos/msa-cicd-eap-min.yml 2 ●●● patch | view | raw | blame | history
ansible/configs/openshift-demos/msa-full.yml 2 ●●● patch | view | raw | blame | history
ansible/configs/openshift-demos/msa-min.yml 2 ●●● patch | view | raw | blame | history
ansible/configs/openshift-demos/undeploy.yml 2 ●●● patch | view | raw | blame | history
ansible/configs/openshift-demos/verify_all.yml 18 ●●●● patch | view | raw | blame | history
ansible/configs/quay-enterprise/files/cloud_providers/ec2_cloud_template.j2 24 ●●●● patch | view | raw | blame | history
ansible/configs/quay-enterprise/files/repos_template.j2 2 ●●● patch | view | raw | blame | history
ansible/destroy.yml 2 ●●● patch | view | raw | blame | history
ansible/roles/archived_roles/ansible.tower/tasks/main.yml 6 ●●●● patch | view | raw | blame | history
ansible/roles/archived_roles/epel/tasks/main.yml 2 ●●● patch | view | raw | blame | history
ansible/roles/infra-ec2-template-create/tasks/main.yml 6 ●●●● patch | view | raw | blame | history
ansible/roles/infra-ec2-wait_for_linux_hosts/tasks/main.yml 6 ●●●● patch | view | raw | blame | history
ansible/roles/infra-ec2-wait_for_windows_hosts/tasks/main.yml 4 ●●●● patch | view | raw | blame | history
ansible/roles/nodejs/tasks/main.yml 4 ●●●● patch | view | raw | blame | history
ansible/roles/ocp-workload-bxms-dm/tasks/workload.yml 8 ●●●● patch | view | raw | blame | history
ansible/roles/ocp-workload-bxms-pam/tasks/workload.yml 8 ●●●● patch | view | raw | blame | history
ansible/roles/ocp-workload-fsi-client-onboarding-demo/tasks/workload.yml 4 ●●●● patch | view | raw | blame | history
ansible/roles/ocp-workload-fuse-ignite/tasks/workload.yml 18 ●●●● patch | view | raw | blame | history
ansible/roles/opentlc-integration/tasks/main.yml 8 ●●●● patch | view | raw | blame | history
ansible/roles/windows-common/tasks/main.yml 2 ●●● patch | view | raw | blame | history
ansible/roles/zabbix-client-openshift-master/tasks/main.yml 2 ●●● patch | view | raw | blame | history
ansible/roles/zabbix-client-openshift-node/tasks/main.yml 6 ●●●● patch | view | raw | blame | history
ansible/roles/zabbix-client/tasks/main.yml 8 ●●●● patch | view | raw | blame | history
ansible/roles/zabbix-client/tasks/selinux.yml 2 ●●● patch | view | raw | blame | history
ansible/cloud_providers/azure_infrastructure_deployment.yml
@@ -25,7 +25,7 @@
    - name: Fail if az not available
      fail:
        msg: you need azure-cli installed
      when: az_result|failed
      when: az_resultis failed
    - set_fact:
        stack_tag: "{{env_type | replace('-', '_')}}_{{guid}}"
@@ -246,17 +246,17 @@
        AZURE_CONFIG_DIR: "/tmp/.azure-{{project_tag}}"
      command: "az vm restart --resource-group {{az_resource_group}} --name '{{inventory_hostname}}'"
      delegate_to: localhost
      when: rwait|failed
      when: rwait is failed is succeeded
    - name: wait for linux host to be available (retry)
      wait_for_connection:
      when: rwait|failed
      when: rwait is failed is succeeded
    - ping:
      register: rping
      retries: 3
      delay: 10
      until: rping | succeeded
      until: rping is succeeded
    # < get internal domain name for later use
@@ -334,11 +334,11 @@
        AZURE_CONFIG_DIR: "/tmp/.azure-{{project_tag}}"
      command: "az vm restart --resource-group {{az_resource_group}} --name '{{inventory_hostname}}'"
      delegate_to: localhost
      when: rwait|failed
      when: rwait is failed is succeeded
    - name: wait for windows host to be available (retry)
      wait_for_connection:
        timeout: 900
        connect_timeout: 60
        delay: 120
      when: rwait|failed
      when: rwait is failed is succeeded
ansible/configs/RHCLS-ScalableInfra-demo/playbooks/roles/packages/tasks/main.yml
@@ -6,8 +6,8 @@
- debug:
    msg: "setup OSP is set to {{ setup_osp }}"
- include: osp.yml
- import_playbook osp.yml
  when: setup_osp|bool 
- include: bastion.yml
- import_playbook bastion.yml
  when: setup_bastion 
ansible/configs/archive/ocp-storage-cns_based_on_ocp-workshop/files/cloud_providers/ec2_cloud_template.j2
@@ -4,73 +4,73 @@
Mappings:
  RegionMapping:
    us-east-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-6871a115
      {% else %}
      RHELAMI: ami-c998b6b2
      {% endif %}
    us-east-2:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-03291866
      {% else %}
      RHELAMI: ami-cfdafaaa
      {% endif %}
    us-west-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-18726478
      {% else %}
      RHELAMI: ami-66eec506
      {% endif %}
    us-west-2:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-28e07e50
      {% else %}
      RHELAMI: ami-223f945a
      {% endif %}
    eu-west-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-7c491f05
      {% else %}
      RHELAMI: ami-bb9a6bc2
      {% endif %}
    eu-central-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-c86c3f23
      {% else %}
      RHELAMI: ami-d74be5b8
      {% endif %}
    ap-northeast-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-6b0d5f0d
      {% else %}
      RHELAMI: ami-30ef0556
      {% endif %}
    ap-northeast-2:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-3eee4150
      {% else %}
      RHELAMI: ami-0f5a8361
      {% endif %}
    ap-southeast-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-76144b0a
      {% else %}
      RHELAMI: ami-10bb2373
      {% endif %}
    ap-southeast-2:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-67589505
      {% else %}
      RHELAMI: ami-ccecf5af
      {% endif %}
    ap-south-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-5b673c34
      {% else %}
      RHELAMI: ami-cdbdd7a2
      {% endif %}
    sa-east-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-b0b7e3dc
      {% else %}
      RHELAMI: ami-a789ffcb
ansible/configs/archive/ocp-storage-cns_based_on_ocp-workshop/files/hosts_template.j2
@@ -24,7 +24,7 @@
# See: https://github.com/nickhammond/ansible-logrotate
logrotate_scripts=[{"name": "syslog", "path": "/var/log/cron\n/var/log/maillog\n/var/log/messages\n/var/log/secure\n/var/log/spooler\n", "options": ["daily", "rotate 7","size 500M", "compress", "sharedscripts", "missingok"], "scripts": {"postrotate": "/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true"}}]
{% if osrelease | version_compare('3.7', '<') %}
{% if osrelease is version_compare('3.7', '<') %}
# Anything before 3.7
openshift_metrics_image_version=v{{ repo_version }}
#openshift_image_tag=v{{ repo_version }}
@@ -82,12 +82,12 @@
#os_sdn_network_plugin_name='redhat/openshift-ovs-multitenant'
{{multi_tenant_setting}}
{% if osrelease | version_compare('3.7', '>=') %}
{% if osrelease is version_compare('3.7', '>=') %}
# This should be turned on once all dependent scripts use firewalld rather than iptables
# os_firewall_use_firewalld=True
{% endif %}
{% if osrelease | version_compare('3.7', '>=') %}
{% if osrelease is version_compare('3.7', '>=') %}
###########################################################################
### OpenShift admission plugin config
###########################################################################
@@ -115,7 +115,7 @@
###########################################################################
# Enable cluster metrics
{% if osrelease | version_compare('3.7', '>=') %}
{% if osrelease is version_compare('3.7', '>=') %}
openshift_metrics_install_metrics={{install_metrics}}
openshift_hosted_metrics_deploy={{install_metrics}}
@@ -199,7 +199,7 @@
openshift_metrics_heapster_nodeselector={"env":"infra"}
# Enable cluster logging
{% if osrelease | version_compare('3.7', '>=') %}
{% if osrelease is version_compare('3.7', '>=') %}
openshift_logging_install_logging={{install_logging}}
openshift_hosted_logging_deploy={{install_logging}}
@@ -281,7 +281,7 @@
### OpenShift Service Catalog Vars
###########################################################################
{% if osrelease | version_compare('3.7', '>=') %}
{% if osrelease is version_compare('3.7', '>=') %}
openshift_enable_service_catalog=true
template_service_broker_install=true
template_service_broker_selector={"env":"infra"}
ansible/configs/archive/ocp-storage-cns_based_on_ocp-workshop/files/repos_template.j2
@@ -35,7 +35,7 @@
enabled=1
gpgcheck=0
{% if osrelease | version_compare('3.9', '>=') %}
{% if osrelease is version_compare('3.9', '>=') %}
## Required since OCP 3.9
[rhel-7-server-ansible-2.4-rpms]
name=Red Hat Enterprise Linux Ansible (RPMs)
ansible/configs/archive/ocp-storage-cns_based_on_ocp-workshop/scaleup.yml
@@ -7,7 +7,7 @@
################################################################################
################################################################################
- include: "{{ ANSIBLE_REPO_PATH }}/configs/{{ env_type }}/pre_infra.yml"
- import_playbook "{{ ANSIBLE_REPO_PATH }}/configs/{{ env_type }}/pre_infra.yml"
  tags:
    - step000
    - pre_infra_tasks
@@ -18,7 +18,7 @@
#################################################################################
#################################################################################
- include: "{{ ANSIBLE_REPO_PATH }}/cloud_providers/{{ cloud_provider }}_infrastructure_deployment.yml"
- import_playbook "{{ ANSIBLE_REPO_PATH }}/cloud_providers/{{ cloud_provider }}_infrastructure_deployment.yml"
  tags:
    - step001
    - deploy_infrastructure
@@ -48,7 +48,7 @@
#################################################################################
#################################################################################
- include: "{{ ANSIBLE_REPO_PATH }}/configs/{{ env_type }}/post_infra.yml"
- import_playbook "{{ ANSIBLE_REPO_PATH }}/configs/{{ env_type }}/post_infra.yml"
  tags:
    - step002
    - post_infra_tasks
ansible/configs/lightbulb/destroy_env.yml
@@ -7,4 +7,4 @@
    - "./env_vars.yml"
    - "./env_secret_vars.yml"
- include: "{{ ANSIBLE_REPO_PATH }}/workdir/lightbulb/tools/aws_lab_setup/teardown_lab.yml"
- import_playbook "{{ ANSIBLE_REPO_PATH }}/workdir/lightbulb/tools/aws_lab_setup/teardown_lab.yml"
ansible/configs/lightbulb/pre_infra.yml
@@ -40,4 +40,4 @@
      dest: "{{ ANSIBLE_REPO_PATH }}/workdir/lightbulb"
      version: e746bfd9b9579dc2b619b2e6de802639accbfee3
- include: "{{ ANSIBLE_REPO_PATH }}/workdir/lightbulb/tools/aws_lab_setup/provision_lab.yml"
- import_playbook "{{ ANSIBLE_REPO_PATH }}/workdir/lightbulb/tools/aws_lab_setup/provision_lab.yml"
ansible/configs/ocp-adv-deploy-hw/files/cloud_providers/ec2_cloud_template.j2
@@ -4,73 +4,73 @@
Mappings:
  RegionMapping:
    us-east-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-6871a115
      {% else %}
      RHELAMI: ami-c998b6b2
      {% endif %}
    us-east-2:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-03291866
      {% else %}
      RHELAMI: ami-cfdafaaa
      {% endif %}
    us-west-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-18726478
      {% else %}
      RHELAMI: ami-66eec506
      {% endif %}
    us-west-2:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-223f945a
      {% else %}
      RHELAMI: ami-9fa343e7
      {% endif %}
    eu-west-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-7c491f05
      {% else %}
      RHELAMI: ami-bb9a6bc2
      {% endif %}
    eu-central-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-c86c3f23
      {% else %}
      RHELAMI: ami-d74be5b8
      {% endif %}
    ap-northeast-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-6b0d5f0d
      {% else %}
      RHELAMI: ami-30ef0556
      {% endif %}
    ap-northeast-2:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-3eee4150
      {% else %}
      RHELAMI: ami-0f5a8361
      {% endif %}
    ap-southeast-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-76144b0a
      {% else %}
      RHELAMI: ami-10bb2373
      {% endif %}
    ap-southeast-2:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-67589505
      {% else %}
      RHELAMI: ami-ccecf5af
      {% endif %}
    ap-south-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-5b673c34
      {% else %}
      RHELAMI: ami-cdbdd7a2
      {% endif %}
    sa-east-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-b0b7e3dc
      {% else %}
      RHELAMI: ami-a789ffcb
ansible/configs/ocp-clientvm/files/cloud_providers/ec2_cloud_template.j2
@@ -4,73 +4,73 @@
Mappings:
  RegionMapping:
    us-east-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-6871a115
      {% else %}
      RHELAMI: ami-c998b6b2
      {% endif %}
    us-east-2:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-03291866
      {% else %}
      RHELAMI: ami-cfdafaaa
      {% endif %}
    us-west-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-18726478
      {% else %}
      RHELAMI: ami-66eec506
      {% endif %}
    us-west-2:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-223f945a
      {% else %}
      RHELAMI: ami-9fa343e7
      {% endif %}
    eu-west-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-7c491f05
      {% else %}
      RHELAMI: ami-bb9a6bc2
      {% endif %}
    eu-central-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-c86c3f23
      {% else %}
      RHELAMI: ami-d74be5b8
      {% endif %}
    ap-northeast-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-6b0d5f0d
      {% else %}
      RHELAMI: ami-30ef0556
      {% endif %}
    ap-northeast-2:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-3eee4150
      {% else %}
      RHELAMI: ami-0f5a8361
      {% endif %}
    ap-southeast-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-76144b0a
      {% else %}
      RHELAMI: ami-10bb2373
      {% endif %}
    ap-southeast-2:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-67589505
      {% else %}
      RHELAMI: ami-ccecf5af
      {% endif %}
    ap-south-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-5b673c34
      {% else %}
      RHELAMI: ami-cdbdd7a2
      {% endif %}
    sa-east-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-b0b7e3dc
      {% else %}
      RHELAMI: ami-a789ffcb
ansible/configs/ocp-clientvm/files/repos_template.j2
@@ -35,7 +35,7 @@
enabled=1
gpgcheck=0
{% if osrelease | version_compare('3.9', '>=') %}
{% if osrelease is version_compare('3.9', '>=') %}
## Required since OCP 3.9
[rhel-7-server-ansible-2.4-rpms]
name=Red Hat Enterprise Linux Ansible (RPMs)
ansible/configs/ocp-ha-disconnected-lab/files/cloud_providers/ec2_cloud_template.j2
@@ -4,73 +4,73 @@
Mappings:
  RegionMapping:
    us-east-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-6871a115
      {% else %}
      RHELAMI: ami-c998b6b2
      {% endif %}
    us-east-2:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-03291866
      {% else %}
      RHELAMI: ami-cfdafaaa
      {% endif %}
    us-west-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-18726478
      {% else %}
      RHELAMI: ami-66eec506
      {% endif %}
    us-west-2:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-223f945a
      {% else %}
      RHELAMI: ami-9fa343e7
      {% endif %}
    eu-west-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-7c491f05
      {% else %}
      RHELAMI: ami-bb9a6bc2
      {% endif %}
    eu-central-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-c86c3f23
      {% else %}
      RHELAMI: ami-d74be5b8
      {% endif %}
    ap-northeast-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-6b0d5f0d
      {% else %}
      RHELAMI: ami-30ef0556
      {% endif %}
    ap-northeast-2:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-3eee4150
      {% else %}
      RHELAMI: ami-0f5a8361
      {% endif %}
    ap-southeast-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-76144b0a
      {% else %}
      RHELAMI: ami-10bb2373
      {% endif %}
    ap-southeast-2:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-67589505
      {% else %}
      RHELAMI: ami-ccecf5af
      {% endif %}
    ap-south-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-5b673c34
      {% else %}
      RHELAMI: ami-cdbdd7a2
      {% endif %}
    sa-east-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-b0b7e3dc
      {% else %}
      RHELAMI: ami-a789ffcb
ansible/configs/ocp-ha-disconnected-lab/files/repos_template.j2
@@ -34,7 +34,7 @@
enabled=1
gpgcheck=0
{% if osrelease | version_compare('3.9', '>=') %}
{% if osrelease is version_compare('3.9', '>=') %}
## Required since OCP 3.9
[rhel-7-server-ansible-2.4-rpms]
name=Red Hat Enterprise Linux Ansible (RPMs)
ansible/configs/ocp-ha-lab/files/cloud_providers/ec2_cloud_template.j2
@@ -4,73 +4,73 @@
Mappings:
  RegionMapping:
    us-east-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-6871a115
      {% else %}
      RHELAMI: ami-c998b6b2
      {% endif %}
    us-east-2:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-03291866
      {% else %}
      RHELAMI: ami-cfdafaaa
      {% endif %}
    us-west-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-18726478
      {% else %}
      RHELAMI: ami-66eec506
      {% endif %}
    us-west-2:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-223f945a
      {% else %}
      RHELAMI: ami-9fa343e7
      {% endif %}
    eu-west-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-7c491f05
      {% else %}
      RHELAMI: ami-bb9a6bc2
      {% endif %}
    eu-central-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-c86c3f23
      {% else %}
      RHELAMI: ami-d74be5b8
      {% endif %}
    ap-northeast-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-6b0d5f0d
      {% else %}
      RHELAMI: ami-30ef0556
      {% endif %}
    ap-northeast-2:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-3eee4150
      {% else %}
      RHELAMI: ami-0f5a8361
      {% endif %}
    ap-southeast-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-76144b0a
      {% else %}
      RHELAMI: ami-10bb2373
      {% endif %}
    ap-southeast-2:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-67589505
      {% else %}
      RHELAMI: ami-ccecf5af
      {% endif %}
    ap-south-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-5b673c34
      {% else %}
      RHELAMI: ami-cdbdd7a2
      {% endif %}
    sa-east-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-b0b7e3dc
      {% else %}
      RHELAMI: ami-a789ffcb
ansible/configs/ocp-implementation-lab/files/cloud_providers/ec2_cloud_template.j2
@@ -4,73 +4,73 @@
Mappings:
  RegionMapping:
    us-east-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-6871a115
      {% else %}
      RHELAMI: ami-c998b6b2
      {% endif %}
    us-east-2:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-03291866
      {% else %}
      RHELAMI: ami-cfdafaaa
      {% endif %}
    us-west-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-18726478
      {% else %}
      RHELAMI: ami-66eec506
      {% endif %}
    us-west-2:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-223f945a
      {% else %}
      RHELAMI: ami-9fa343e7
      {% endif %}
    eu-west-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-7c491f05
      {% else %}
      RHELAMI: ami-bb9a6bc2
      {% endif %}
    eu-central-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-c86c3f23
      {% else %}
      RHELAMI: ami-d74be5b8
      {% endif %}
    ap-northeast-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-6b0d5f0d
      {% else %}
      RHELAMI: ami-30ef0556
      {% endif %}
    ap-northeast-2:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-3eee4150
      {% else %}
      RHELAMI: ami-0f5a8361
      {% endif %}
    ap-southeast-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-76144b0a
      {% else %}
      RHELAMI: ami-10bb2373
      {% endif %}
    ap-southeast-2:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-67589505
      {% else %}
      RHELAMI: ami-ccecf5af
      {% endif %}
    ap-south-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-5b673c34
      {% else %}
      RHELAMI: ami-cdbdd7a2
      {% endif %}
    sa-east-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-b0b7e3dc
      {% else %}
      RHELAMI: ami-a789ffcb
ansible/configs/ocp-implementation-lab/files/hosts_template.j2
@@ -24,7 +24,7 @@
# See: https://github.com/nickhammond/ansible-logrotate
logrotate_scripts=[{"name": "syslog", "path": "/var/log/cron\n/var/log/maillog\n/var/log/messages\n/var/log/secure\n/var/log/spooler\n", "options": ["daily", "rotate 7","size 500M", "compress", "sharedscripts", "missingok"], "scripts": {"postrotate": "/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true"}}]
{% if osrelease | version_compare('3.7', '<') %}
{% if osrelease is version_compare('3.7', '<') %}
# Anything before 3.7
openshift_metrics_image_version=v{{ repo_version }}
#openshift_image_tag=v{{ repo_version }}
@@ -65,7 +65,7 @@
#os_sdn_network_plugin_name='redhat/openshift-ovs-multitenant'
{{multi_tenant_setting}}
{% if osrelease | version_compare('3.7', '>=') %}
{% if osrelease is version_compare('3.7', '>=') %}
# This should be turned on once all dependent scripts use firewalld rather than iptables
# os_firewall_use_firewalld=True
{% endif %}
@@ -97,7 +97,7 @@
###########################################################################
# Enable cluster metrics
{% if osrelease | version_compare('3.7', '>=') %}
{% if osrelease is version_compare('3.7', '>=') %}
openshift_metrics_install_metrics={{install_metrics}}
@@ -164,7 +164,7 @@
openshift_metrics_heapster_nodeselector={"env":"infra"}
# Enable cluster logging
{% if osrelease | version_compare('3.7', '>=') %}
{% if osrelease is version_compare('3.7', '>=') %}
openshift_logging_install_logging={{install_logging}}
@@ -237,7 +237,7 @@
### OpenShift Service Catalog Vars
###########################################################################
{% if osrelease | version_compare('3.7', '>=') %}
{% if osrelease is version_compare('3.7', '>=') %}
openshift_enable_service_catalog=true
template_service_broker_install=true
template_service_broker_selector={"env":"infra"}
ansible/configs/ocp-multi-cloud-example/files/cloud_providers/ec2_cloud_template.j2
@@ -4,73 +4,73 @@
Mappings:
  RegionMapping:
    us-east-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-6871a115
      {% else %}
      RHELAMI: ami-c998b6b2
      {% endif %}
    us-east-2:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-03291866
      {% else %}
      RHELAMI: ami-cfdafaaa
      {% endif %}
    us-west-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-18726478
      {% else %}
      RHELAMI: ami-66eec506
      {% endif %}
    us-west-2:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-28e07e50
      {% else %}
      RHELAMI: ami-223f945a
      {% endif %}
    eu-west-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-7c491f05
      {% else %}
      RHELAMI: ami-bb9a6bc2
      {% endif %}
    eu-central-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-c86c3f23
      {% else %}
      RHELAMI: ami-d74be5b8
      {% endif %}
    ap-northeast-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-6b0d5f0d
      {% else %}
      RHELAMI: ami-30ef0556
      {% endif %}
    ap-northeast-2:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-3eee4150
      {% else %}
      RHELAMI: ami-0f5a8361
      {% endif %}
    ap-southeast-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-76144b0a
      {% else %}
      RHELAMI: ami-10bb2373
      {% endif %}
    ap-southeast-2:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-67589505
      {% else %}
      RHELAMI: ami-ccecf5af
      {% endif %}
    ap-south-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-5b673c34
      {% else %}
      RHELAMI: ami-cdbdd7a2
      {% endif %}
    sa-east-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-b0b7e3dc
      {% else %}
      RHELAMI: ami-a789ffcb
ansible/configs/ocp-multi-cloud-example/files/hosts_template.j2
@@ -25,7 +25,7 @@
# See: https://github.com/nickhammond/ansible-logrotate
logrotate_scripts=[{"name": "syslog", "path": "/var/log/cron\n/var/log/maillog\n/var/log/messages\n/var/log/secure\n/var/log/spooler\n", "options": ["daily", "rotate 7","size 500M", "compress", "sharedscripts", "missingok"], "scripts": {"postrotate": "/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true"}}]
{% if osrelease | version_compare('3.7', '<') %}
{% if osrelease is version_compare('3.7', '<') %}
# Anything before 3.7
openshift_metrics_image_version=v{{ repo_version }}
#openshift_image_tag=v{{ repo_version }}
@@ -83,12 +83,12 @@
#os_sdn_network_plugin_name='redhat/openshift-ovs-multitenant'
{{multi_tenant_setting}}
{% if osrelease | version_compare('3.7', '>=') %}
{% if osrelease is version_compare('3.7', '>=') %}
# This should be turned on once all dependent scripts use firewalld rather than iptables
# os_firewall_use_firewalld=True
{% endif %}
{% if osrelease | version_compare('3.7', '>=') %}
{% if osrelease is version_compare('3.7', '>=') %}
###########################################################################
### OpenShift admission plugin config
###########################################################################
@@ -116,7 +116,7 @@
###########################################################################
# Enable cluster metrics
{% if osrelease | version_compare('3.7', '>=') %}
{% if osrelease is version_compare('3.7', '>=') %}
openshift_metrics_install_metrics={{install_metrics}}
openshift_hosted_metrics_deploy={{install_metrics}}
@@ -200,7 +200,7 @@
openshift_metrics_heapster_nodeselector={"env":"infra"}
# Enable cluster logging
{% if osrelease | version_compare('3.7', '>=') %}
{% if osrelease is version_compare('3.7', '>=') %}
openshift_logging_install_logging={{install_logging}}
openshift_hosted_logging_deploy={{install_logging}}
@@ -282,7 +282,7 @@
### OpenShift Service Catalog Vars
###########################################################################
{% if osrelease | version_compare('3.7', '>=') %}
{% if osrelease is version_compare('3.7', '>=') %}
openshift_enable_service_catalog=true
template_service_broker_install=true
template_service_broker_selector={"env":"infra"}
ansible/configs/ocp-multi-cloud-example/files/repos_template.j2
@@ -35,7 +35,7 @@
enabled=1
gpgcheck=0
{% if osrelease | version_compare('3.9', '>=') %}
{% if osrelease is version_compare('3.9', '>=') %}
## Required since OCP 3.9
[rhel-7-server-ansible-2.4-rpms]
name=Red Hat Enterprise Linux Ansible (RPMs)
ansible/configs/ocp-multi-cloud-example/scaleup.yml
@@ -7,7 +7,7 @@
################################################################################
################################################################################
- include: "{{ ANSIBLE_REPO_PATH }}/configs/{{ env_type }}/pre_infra.yml"
- import_playbook "{{ ANSIBLE_REPO_PATH }}/configs/{{ env_type }}/pre_infra.yml"
  tags:
    - step000
    - pre_infra_tasks
@@ -18,7 +18,7 @@
#################################################################################
#################################################################################
- include: "{{ ANSIBLE_REPO_PATH }}/cloud_providers/{{ cloud_provider }}_infrastructure_deployment.yml"
- import_playbook "{{ ANSIBLE_REPO_PATH }}/cloud_providers/{{ cloud_provider }}_infrastructure_deployment.yml"
  tags:
    - step001
    - deploy_infrastructure
@@ -48,7 +48,7 @@
#################################################################################
#################################################################################
- include: "{{ ANSIBLE_REPO_PATH }}/configs/{{ env_type }}/post_infra.yml"
- import_playbook "{{ ANSIBLE_REPO_PATH }}/configs/{{ env_type }}/post_infra.yml"
  tags:
    - step002
    - post_infra_tasks
ansible/configs/ocp-storage-cns/files/cloud_providers/ec2_cloud_template.j2
@@ -4,73 +4,73 @@
Mappings:
  RegionMapping:
    us-east-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-6871a115
      {% else %}
      RHELAMI: ami-c998b6b2
      {% endif %}
    us-east-2:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-03291866
      {% else %}
      RHELAMI: ami-cfdafaaa
      {% endif %}
    us-west-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-18726478
      {% else %}
      RHELAMI: ami-66eec506
      {% endif %}
    us-west-2:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-223f945a
      {% else %}
      RHELAMI: ami-9fa343e7
      {% endif %}
    eu-west-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-7c491f05
      {% else %}
      RHELAMI: ami-bb9a6bc2
      {% endif %}
    eu-central-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-c86c3f23
      {% else %}
      RHELAMI: ami-d74be5b8
      {% endif %}
    ap-northeast-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-6b0d5f0d
      {% else %}
      RHELAMI: ami-30ef0556
      {% endif %}
    ap-northeast-2:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-3eee4150
      {% else %}
      RHELAMI: ami-0f5a8361
      {% endif %}
    ap-southeast-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-76144b0a
      {% else %}
      RHELAMI: ami-10bb2373
      {% endif %}
    ap-southeast-2:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-67589505
      {% else %}
      RHELAMI: ami-ccecf5af
      {% endif %}
    ap-south-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-5b673c34
      {% else %}
      RHELAMI: ami-cdbdd7a2
      {% endif %}
    sa-east-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-b0b7e3dc
      {% else %}
      RHELAMI: ami-a789ffcb
ansible/configs/ocp-workshop/files/hosts_template.j2
@@ -25,7 +25,7 @@
# See: https://github.com/nickhammond/ansible-logrotate
logrotate_scripts=[{"name": "syslog", "path": "/var/log/cron\n/var/log/maillog\n/var/log/messages\n/var/log/secure\n/var/log/spooler\n", "options": ["daily", "rotate 7","size 500M", "compress", "sharedscripts", "missingok"], "scripts": {"postrotate": "/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true"}}]
{% if osrelease | version_compare('3.7', '<') %}
{% if osrelease is version_compare('3.7', '<') %}
# Anything before 3.7
openshift_metrics_image_version=v{{ repo_version }}
#openshift_image_tag=v{{ repo_version }}
@@ -83,12 +83,12 @@
#os_sdn_network_plugin_name='redhat/openshift-ovs-multitenant'
{{multi_tenant_setting}}
{% if osrelease | version_compare('3.7', '>=') %}
{% if osrelease is version_compare('3.7', '>=') %}
# This should be turned on once all dependent scripts use firewalld rather than iptables
# os_firewall_use_firewalld=True
{% endif %}
{% if osrelease | version_compare('3.7', '>=') %}
{% if osrelease is version_compare('3.7', '>=') %}
###########################################################################
### OpenShift admission plugin config
###########################################################################
@@ -116,7 +116,7 @@
###########################################################################
# Enable cluster metrics
{% if osrelease | version_compare('3.7', '>=') %}
{% if osrelease is version_compare('3.7', '>=') %}
openshift_metrics_install_metrics={{install_metrics}}
openshift_hosted_metrics_deploy={{install_metrics}}
@@ -200,7 +200,7 @@
openshift_metrics_heapster_nodeselector={"env":"infra"}
# Enable cluster logging
{% if osrelease | version_compare('3.7', '>=') %}
{% if osrelease is version_compare('3.7', '>=') %}
openshift_logging_install_logging={{install_logging}}
openshift_hosted_logging_deploy={{install_logging}}
@@ -282,7 +282,7 @@
### OpenShift Service Catalog Vars
###########################################################################
{% if osrelease | version_compare('3.7', '>=') %}
{% if osrelease is version_compare('3.7', '>=') %}
openshift_enable_service_catalog=true
template_service_broker_install=true
template_service_broker_selector={"env":"infra"}
ansible/configs/ocp-workshop/scaleup.yml
@@ -7,7 +7,7 @@
################################################################################
################################################################################
- include: "{{ ANSIBLE_REPO_PATH }}/configs/{{ env_type }}/pre_infra.yml"
- import_playbook "{{ ANSIBLE_REPO_PATH }}/configs/{{ env_type }}/pre_infra.yml"
  tags:
    - step000
    - pre_infra_tasks
@@ -18,7 +18,7 @@
#################################################################################
#################################################################################
- include: "{{ ANSIBLE_REPO_PATH }}/cloud_providers/{{ cloud_provider }}_infrastructure_deployment.yml"
- import_playbook "{{ ANSIBLE_REPO_PATH }}/cloud_providers/{{ cloud_provider }}_infrastructure_deployment.yml"
  tags:
    - step001
    - deploy_infrastructure
@@ -48,7 +48,7 @@
#################################################################################
#################################################################################
- include: "{{ ANSIBLE_REPO_PATH }}/configs/{{ env_type }}/post_infra.yml"
- import_playbook "{{ ANSIBLE_REPO_PATH }}/configs/{{ env_type }}/post_infra.yml"
  tags:
    - step002
    - post_infra_tasks
ansible/configs/openshift-demos/idle.yml
@@ -6,7 +6,7 @@
  vars_files:
    - "{{ ANSIBLE_REPO_PATH }}/configs/{{ env_type }}/env_vars.yml"
  tasks:
    - include: "{{ ANSIBLE_REPO_PATH }}/configs/{{env_type}}/create_oc_config.yml"
    - import_playbook "{{ ANSIBLE_REPO_PATH }}/configs/{{env_type}}/create_oc_config.yml"
    - include_role:
        name: "{{ ANSIBLE_REPO_PATH }}/roles/openshift_commons_facts"
ansible/configs/openshift-demos/imagebuild-pipeline.yml
@@ -24,7 +24,7 @@
  - name: create image builder project {{ project_name }}
    shell: "{{ openshift_cli }} new-project {{ project_name }} --description='DO NOT REMOVE THIS PROJECT. NEEDED FOR COOLSTORE DEMO'"
    ignore_errors: true
    when: result|failed
    when: resultis failed
  - import_role:
      name: openshift_jenkins
ansible/configs/openshift-demos/msa-cicd-eap-full.yml
@@ -6,7 +6,7 @@
  vars_files:
    - "{{ ANSIBLE_REPO_PATH }}/configs/{{ env_type }}/env_vars.yml"
  tasks:
    - include: "{{ ANSIBLE_REPO_PATH }}/configs/{{env_type}}/create_oc_config.yml"
    - import_playbook "{{ ANSIBLE_REPO_PATH }}/configs/{{env_type}}/create_oc_config.yml"
    - include_role:
        name: "{{ ANSIBLE_REPO_PATH }}/roles/openshift_commons_facts"
ansible/configs/openshift-demos/msa-cicd-eap-min.yml
@@ -7,7 +7,7 @@
    - "{{ ANSIBLE_REPO_PATH }}/configs/{{ env_type }}/env_vars.yml"
  tasks:
    - include: "{{ ANSIBLE_REPO_PATH }}/configs/{{env_type}}/create_oc_config.yml"
    - import_playbook "{{ ANSIBLE_REPO_PATH }}/configs/{{env_type}}/create_oc_config.yml"
    - include_role:
        name: "{{ ANSIBLE_REPO_PATH }}/roles/openshift_commons_facts"
ansible/configs/openshift-demos/msa-full.yml
@@ -7,7 +7,7 @@
    - "{{ ANSIBLE_REPO_PATH }}/configs/{{ env_type }}/env_vars.yml"
  tasks:
    - include: "{{ ANSIBLE_REPO_PATH }}/configs/{{env_type}}/create_oc_config.yml"
    - import_playbook "{{ ANSIBLE_REPO_PATH }}/configs/{{env_type}}/create_oc_config.yml"
    - include_role:
        name: "{{ ANSIBLE_REPO_PATH }}/roles/openshift_commons_facts"
ansible/configs/openshift-demos/msa-min.yml
@@ -7,7 +7,7 @@
    - "{{ ANSIBLE_REPO_PATH }}/configs/{{ env_type }}/env_vars.yml"
  tasks:
    - include: "{{ ANSIBLE_REPO_PATH }}/configs/{{env_type}}/create_oc_config.yml"
    - import_playbook "{{ ANSIBLE_REPO_PATH }}/configs/{{env_type}}/create_oc_config.yml"
    - include_role:
        name: "{{ ANSIBLE_REPO_PATH }}/roles/openshift_commons_facts"
ansible/configs/openshift-demos/undeploy.yml
@@ -6,7 +6,7 @@
  vars_files:
    - "{{ ANSIBLE_REPO_PATH }}/configs/{{ env_type }}/env_vars.yml"
  tasks:
  - include: "{{ ANSIBLE_REPO_PATH }}/configs/{{env_type}}/create_oc_config.yml"
  - import_playbook "{{ ANSIBLE_REPO_PATH }}/configs/{{env_type}}/create_oc_config.yml"
  - include_role:
      name: "{{ ANSIBLE_REPO_PATH }}/roles/openshift_commons_facts"
ansible/configs/openshift-demos/verify_all.yml
@@ -3,7 +3,7 @@
- name: wait for database deployments in project {{ project_cicd }} to complete (succeed or fail)
  shell: "oc get pods -n {{ project_cicd }} -l comp-type=database | grep '\\-deploy\\s' | grep 'Running'"
  register: deployment_running
  until: deployment_running|failed
  until: deployment_runningis failed
  retries: 20
  delay: 30
  ignore_errors: true
@@ -11,7 +11,7 @@
- name: wait for database deployments in project {{ project_prod }} to complete (succeed or fail)
  shell: "oc get pods -n {{ project_prod }} -l comp-type=database | grep '\\-deploy\\s' | grep 'Running'"
  register: deployment_running
  until: deployment_running|failed
  until: deployment_runningis failed
  retries: 20
  delay: 30
  ignore_errors: true
@@ -19,7 +19,7 @@
- name: wait for database deployments in project {{ project_test }} to complete (succeed or fail)
  shell: "oc get pods -n {{ project_test }} -l comp-type=database | grep '\\-deploy\\s' | grep 'Running'"
  register: deployment_running
  until: deployment_running|failed
  until: deployment_runningis failed
  retries: 20
  delay: 30
  ignore_errors: true
@@ -27,7 +27,7 @@
- name: wait for database deployments in project {{ project_dev }} to complete (succeed or fail)
  shell: "oc get pods -n {{ project_dev }} -l comp-type=database | grep '\\-deploy\\s' | grep 'Running'"
  register: deployment_running
  until: deployment_running|failed
  until: deployment_runningis failed
  retries: 20
  delay: 30
  ignore_errors: true
@@ -41,7 +41,7 @@
- name: wait for other deployments in project {{ project_cicd }} to complete (succeed or fail)
  shell: "oc get pods -n {{ project_cicd }} -l comp-type!=database | grep '\\-deploy\\s' | grep 'Running'"
  register: deployment_running
  until: deployment_running|failed
  until: deployment_runningis failed
  retries: 20
  delay: 30
  ignore_errors: true
@@ -49,7 +49,7 @@
- name: wait for other deployments in project {{ project_prod }} to complete (succeed or fail)
  shell: "oc get pods -n {{ project_prod }} -l comp-type!=database | grep '\\-deploy\\s' | grep 'Running'"
  register: deployment_running
  until: deployment_running|failed
  until: deployment_runningis failed
  retries: 20
  delay: 30
  ignore_errors: true
@@ -57,7 +57,7 @@
- name: wait for other deployments in project {{ project_stage }} to complete (succeed or fail)
  shell: "oc get pods -n {{ project_stage }} -l comp-type!=database | grep '\\-deploy\\s' | grep 'Running'"
  register: deployment_running
  until: deployment_running|failed
  until: deployment_runningis failed
  retries: 20
  delay: 30
  ignore_errors: true
@@ -65,7 +65,7 @@
- name: wait for other deployments in project {{ project_test }} to complete (succeed or fail)
  shell: "oc get pods -n {{ project_test }} -l comp-type!=database | grep '\\-deploy\\s' | grep 'Running'"
  register: deployment_running
  until: deployment_running|failed
  until: deployment_runningis failed
  retries: 20
  delay: 30
  ignore_errors: true
@@ -73,7 +73,7 @@
- name: wait for other deployments in project {{ project_dev }} to complete (succeed or fail)
  shell: "oc get pods -n {{ project_dev }} -l comp-type!=database | grep '\\-deploy\\s' | grep 'Running'"
  register: deployment_running
  until: deployment_running|failed
  until: deployment_runningis failed
  retries: 20
  delay: 30
  ignore_errors: true
ansible/configs/quay-enterprise/files/cloud_providers/ec2_cloud_template.j2
@@ -4,73 +4,73 @@
Mappings:
  RegionMapping:
    us-east-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-6871a115
      {% else %}
      RHELAMI: ami-c998b6b2
      {% endif %}
    us-east-2:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-03291866
      {% else %}
      RHELAMI: ami-cfdafaaa
      {% endif %}
    us-west-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-18726478
      {% else %}
      RHELAMI: ami-66eec506
      {% endif %}
    us-west-2:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-223f945a
      {% else %}
      RHELAMI: ami-9fa343e7
      {% endif %}
    eu-west-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-7c491f05
      {% else %}
      RHELAMI: ami-bb9a6bc2
      {% endif %}
    eu-central-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-c86c3f23
      {% else %}
      RHELAMI: ami-d74be5b8
      {% endif %}
    ap-northeast-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-6b0d5f0d
      {% else %}
      RHELAMI: ami-30ef0556
      {% endif %}
    ap-northeast-2:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-3eee4150
      {% else %}
      RHELAMI: ami-0f5a8361
      {% endif %}
    ap-southeast-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-76144b0a
      {% else %}
      RHELAMI: ami-10bb2373
      {% endif %}
    ap-southeast-2:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-67589505
      {% else %}
      RHELAMI: ami-ccecf5af
      {% endif %}
    ap-south-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-5b673c34
      {% else %}
      RHELAMI: ami-cdbdd7a2
      {% endif %}
    sa-east-1:
      {% if osrelease | version_compare('3.9.25', '>=') %}
      {% if osrelease is version_compare('3.9.25', '>=') %}
      RHELAMI: ami-b0b7e3dc
      {% else %}
      RHELAMI: ami-a789ffcb
ansible/configs/quay-enterprise/files/repos_template.j2
@@ -35,7 +35,7 @@
enabled=1
gpgcheck=0
{% if osrelease | version_compare('3.9', '>=') %}
{% if osrelease is version_compare('3.9', '>=') %}
## Required since OCP 3.9
[rhel-7-server-ansible-2.4-rpms]
name=Red Hat Enterprise Linux Ansible (RPMs)
ansible/destroy.yml
@@ -5,4 +5,4 @@
################################################################################
################################################################################
- include: "{{ ANSIBLE_REPO_PATH }}/configs/{{ env_type }}/destroy_env.yml"
- import_playbook "{{ ANSIBLE_REPO_PATH }}/configs/{{ env_type }}/destroy_env.yml"
ansible/roles/archived_roles/ansible.tower/tasks/main.yml
@@ -2,15 +2,15 @@
###################################
# Common Packages
###################################
- include: nodes_setup.yml
- import_playbook nodes_setup.yml
###################################
# Base setup of Tower
###################################
# - include: tower_setup.yml
# - import_playbook tower_setup.yml
###################################
# tower-cli users setup
###################################
# - include: user_setup.yml
# - import_playbook user_setup.yml
ansible/roles/archived_roles/epel/tasks/main.yml
@@ -1,4 +1,4 @@
---
- include: epel.yml
- import_playbook epel.yml
  when: ansible_os_family == "RedHat"
ansible/roles/infra-ec2-template-create/tasks/main.yml
@@ -22,7 +22,7 @@
    - provision_cf_template
  register: cloudformation_out
  until:
    - cloudformation_out|succeeded
    - cloudformation_out is succeeded
    - cloudformation_out.output in ["Stack CREATE complete", "Stack is already up-to-date."]
  retries: "{{ cloudformation_retries | default(25) }}"
  delay: 60
@@ -32,12 +32,12 @@
  debug:
    var: cloudformation_out
  tags: provision_cf_template
  when: not cloudformation_out|succeeded
  when: not cloudformation_out is succeeded
- name: report Cloudformation error
  fail:
    msg: "FAIL {{ project_tag }} Create Cloudformation"
  when: not cloudformation_out|succeeded
  when: not cloudformation_out is succeeded
  tags:
    - provision_cf_template
ansible/roles/infra-ec2-wait_for_linux_hosts/tasks/main.yml
@@ -12,17 +12,17 @@
    AWS_DEFAULT_REGION: "{{aws_region}}"
  command: "aws ec2 reboot-instances --instance-ids '{{instance_id}}'"
  delegate_to: localhost
  when: rwait|failed
  when: rwait is failed is succeeded
- name: wait for linux host to be available (retry)
  wait_for_connection:
    delay: 60
    timeout: 200
  when: rwait|failed
  when: rwait is failed is succeeded
- ping:
  register: rping
  retries: 3
  delay: 10
  until: rping | succeeded
  until: rping is succeeded
  tags: must
ansible/roles/infra-ec2-wait_for_windows_hosts/tasks/main.yml
@@ -14,11 +14,11 @@
    AWS_DEFAULT_REGION: "{{aws_region}}"
  command: "aws ec2 reboot-instances --instance-ids '{{instance_id}}'"
  delegate_to: localhost
  when: rwait|failed
  when: rwait is failed is succeeded
- name: wait for windows host to be available (retry)
  wait_for_connection:
    timeout: 900
    connect_timeout: 60
    delay: 120
  when: rwait|failed
  when: rwait is failed is succeeded
ansible/roles/nodejs/tasks/main.yml
@@ -1,8 +1,8 @@
---
- include: setup-RedHat.yml
- import_playbook setup-RedHat.yml
  when: ansible_os_family == 'RedHat'
- include: setup-Debian.yml
- import_playbook setup-Debian.yml
  when: ansible_os_family == 'Debian'
- name: Define nodejs_install_npm_user
ansible/roles/ocp-workload-bxms-dm/tasks/workload.yml
@@ -30,7 +30,7 @@
      -p PROJECT={{ocp_project}} \
      -p APPLICATION_NAME=gpte > /tmp/{{guid}}/gpte-dm-demo.txt
- include: ./wait_for_build.yml
- import_playbook ./wait_for_build.yml
  static: no
  vars:
    build_to_wait:
@@ -39,7 +39,7 @@
- name: resume gpte-rhdmcentr
  shell: oc rollout resume dc/gpte-rhdmcentr -n {{ocp_project}}
- include: ./wait_for_deploy.yml
- import_playbook ./wait_for_deploy.yml
  static: no
  vars:
    pod_to_wait:
@@ -47,7 +47,7 @@
- name: resume gpte-kieserver
  shell: oc rollout resume dc/gpte-kieserver -n {{ocp_project}}
- include: ./wait_for_deploy.yml
- import_playbook ./wait_for_deploy.yml
  static: no
  vars:
    pod_to_wait:
@@ -55,7 +55,7 @@
- name: resume gpte-ng-dmf
  shell: oc rollout resume dc/gpte-ng-dmf -n {{ocp_project}}
- include: ./wait_for_deploy.yml
- import_playbook ./wait_for_deploy.yml
  static: no
  vars:
    pod_to_wait:
ansible/roles/ocp-workload-bxms-pam/tasks/workload.yml
@@ -49,7 +49,7 @@
- name: resume {{app_name}}-rhpamcentr
  shell: oc rollout resume dc/{{app_name}}-rhpamcentr -n {{ocp_project}}
- include: ./wait_for_deploy.yml
- import_playbook ./wait_for_deploy.yml
  static: no
  vars:
    pod_to_wait:
@@ -57,7 +57,7 @@
#- name: resume {{app_name}}-postgresql
#  shell: oc rollout resume dc/{{app_name}}-postgresql-1 dc/{{app_name}}-postgresql-2 -n {{ocp_project}}
#- include: ./wait_for_deploy.yml
#- import_playbook ./wait_for_deploy.yml
#  static: no
#  vars:
#    pod_to_wait:
@@ -65,7 +65,7 @@
- name: resume {{app_name}}-kieserver
  shell: oc rollout resume dc/{{app_name}}-kieserver -n {{ocp_project}}
- include: ./wait_for_deploy.yml
- import_playbook ./wait_for_deploy.yml
  static: no
  vars:
    pod_to_wait:
@@ -73,7 +73,7 @@
#- name: resume {{app_name}}-smartrouter
#  shell: oc rollout resume dc/{{app_name}}-smartrouter -n {{ocp_project}}
#- include: ./wait_for_deploy.yml
#- import_playbook ./wait_for_deploy.yml
#  static: no
#  vars:
#    pod_to_wait:
ansible/roles/ocp-workload-fsi-client-onboarding-demo/tasks/workload.yml
@@ -69,7 +69,7 @@
#### Wait for the build to complete before slapping on the quota ....
- include: ./wait_for_build.yml
- import_playbook ./wait_for_build.yml
  static: no
  vars:
    build_to_wait:
@@ -78,7 +78,7 @@
      - fsi-customer
#### Wait for the deployment to complete before slapping on the quota ...
- include: ./wait_for_deploy.yml
- import_playbook ./wait_for_deploy.yml
  static: no
  vars:
    pod_to_wait:
ansible/roles/ocp-workload-fuse-ignite/tasks/workload.yml
@@ -54,7 +54,7 @@
- name: resume syndesis oauthproxy and db
  shell: oc rollout resume dc/syndesis-oauthproxy dc/syndesis-db -n {{ocp_project}}
- include: ./wait_for_deploy.yml
- import_playbook ./wait_for_deploy.yml
  static: no
  vars:
    pod_to_wait:
@@ -66,7 +66,7 @@
      oc scale dc/broker-amq --replicas=1 -n {{ocp_project}}
- name: resume broker-amq
  shell: oc rollout resume dc/broker-amq -n {{ocp_project}}
- include: ./wait_for_deploy.yml
- import_playbook ./wait_for_deploy.yml
  static: no
  vars:
    pod_to_wait:
@@ -74,7 +74,7 @@
- name: resume syndesis-meta
  shell: oc rollout resume dc/syndesis-meta -n {{ocp_project}}
- include: ./wait_for_deploy.yml
- import_playbook ./wait_for_deploy.yml
  static: no
  vars:
    pod_to_wait:
@@ -82,7 +82,7 @@
- name: resume syndesis-server
  shell: oc rollout resume dc/syndesis-server -n {{ocp_project}}
- include: ./wait_for_deploy.yml
- import_playbook ./wait_for_deploy.yml
  static: no
  vars:
    pod_to_wait:
@@ -90,7 +90,7 @@
- name: resume syndesis-ui
  shell: oc rollout resume dc/syndesis-ui -n {{ocp_project}}
- include: ./wait_for_deploy.yml
- import_playbook ./wait_for_deploy.yml
  static: no
  vars:
    pod_to_wait:
@@ -98,7 +98,7 @@
- name: resume syndesis-prometheus
  shell: oc rollout resume dc/syndesis-prometheus -n {{ocp_project}}
- include: ./wait_for_deploy.yml
- import_playbook ./wait_for_deploy.yml
  static: no
  vars:
    pod_to_wait:
@@ -106,7 +106,7 @@
- name: resume todo
  shell: oc rollout resume dc/todo -n {{ocp_project}}
- include: ./wait_for_deploy.yml
- import_playbook ./wait_for_deploy.yml
  static: no
  vars:
    pod_to_wait:
@@ -141,7 +141,7 @@
      -p CATALOG_DB_PASSWORD=mongo \
      -n {{ocp_project}} 
- include: ./wait_for_build.yml
- import_playbook ./wait_for_build.yml
  static: no
  vars:
    build_to_wait:
@@ -149,7 +149,7 @@
- name: resume catalog-service
  shell: oc rollout resume dc/catalog-service -n {{ocp_project}}
- include: ./wait_for_deploy.yml
- import_playbook ./wait_for_deploy.yml
  static: no
  vars:
    pod_to_wait:
ansible/roles/opentlc-integration/tasks/main.yml
@@ -1,10 +1,10 @@
# vim: set ft=ansible:
---
- include: packages.yml
- include: users.yml
- include: git_repos.yml
- include: at.yml
- import_playbook packages.yml
- import_playbook users.yml
- import_playbook git_repos.yml
- import_playbook at.yml
- name: Create ~/bin
  file:
ansible/roles/windows-common/tasks/main.yml
@@ -2,7 +2,7 @@
# pip install pywinrm
- include: sshd.yml
- import_playbook sshd.yml
  when: install_win_ssh | bool
- win_shell: "systeminfo | findstr /C:OS"
ansible/roles/zabbix-client-openshift-master/tasks/main.yml
@@ -1,4 +1,4 @@
# vim: set ft=ansible:
---
- include: service_account.yml
- import_playbook service_account.yml
  run_once: true
ansible/roles/zabbix-client-openshift-node/tasks/main.yml
@@ -1,8 +1,8 @@
# vim: set ft=ansible:
---
- include: docker.yml
- include: lvm.yml
- include: openshift_node.yml
- import_playbook docker.yml
- import_playbook lvm.yml
- import_playbook openshift_node.yml
  when:
    - zabbix_token is defined
    - hawkular_route is defined
ansible/roles/zabbix-client/tasks/main.yml
@@ -1,8 +1,8 @@
# vim: set ft=ansible:
---
- include: install.yml
- include: networking.yml
- include: selinux.yml
- import_playbook install.yml
- import_playbook networking.yml
- import_playbook selinux.yml
- name: Configure Zabbix
  copy:
@@ -33,7 +33,7 @@
    state: started
    enabled: yes
- include: auto_registration.yml
- import_playbook auto_registration.yml
  when:
    - zabbix_hostname is defined
    - zabbix_auto_registration_keyword is defined
ansible/roles/zabbix-client/tasks/selinux.yml
@@ -8,4 +8,4 @@
- name: Set zabbix agent permissive in SElinux
  command: semanage permissive -a zabbix_agent_t
  when: permissive|failed
  when: permissiveis failed