Wolfgang Kulhanek
2018-10-11 4cecd564670a80917b9a664bd9313e79648d54c5
Updated ClientVM and ClusterVM to support 3.11.16
1 files added
5 files modified
44 ■■■■ changed files
ansible/configs/ocp-clientvm/env_vars.yml 6 ●●●●● patch | view | raw | blame | history
ansible/configs/rhte-oc-cluster-vms/env_vars.yml 7 ●●●●● patch | view | raw | blame | history
ansible/configs/rhte-oc-cluster-vms/files/config.j2 7 ●●●●● patch | view | raw | blame | history
ansible/configs/rhte-oc-cluster-vms/files/registries.conf 1 ●●●● patch | view | raw | blame | history
ansible/configs/rhte-oc-cluster-vms/post_software.yml 15 ●●●●● patch | view | raw | blame | history
ansible/roles/ocp-client-vm/tasks/packages.yml 8 ●●●● patch | view | raw | blame | history
ansible/configs/ocp-clientvm/env_vars.yml
@@ -25,7 +25,7 @@
# student_password=password needs to be provided with the password to set for the user student
install_student_user: false
docker_device: /dev/xvdb
docker_version: "{{ '1.12.6' if repo_version | version_compare('3.9', '<')  else '1.13.1' }}"
docker_version: "{{ '1.12.6' if repo_version is version_compare('3.9', '<')  else '1.13.1' }}"
### If you want a Key Pair name created and injected into the hosts,
# set `set_env_authorized_key` to true and set the keyname in `env_authorized_key`
@@ -102,8 +102,7 @@
  - rhel-7-server-rpms
  - rhel-7-server-extras-rpms
  - rhel-7-server-ose-{{repo_version}}-rpms
  - rhel-7-fast-datapath-rpms
  - rhel-7-server-ansible-2.4-rpms
  - "rhel-7-server-ansible-{{ '2.4' if repo_version is version_compare('3.11','<') else '2.6' }}-rpms"
# use_subscription_manager: false
# use_own_repos: true
@@ -113,7 +112,6 @@
### CLOUDFORMATIONS vars
project_tag: "{{ env_type }}-{{ guid }}"
zone_internal_dns: "{{guid}}.internal."
chomped_zone_internal_dns: "{{guid}}.internal"
ansible/configs/rhte-oc-cluster-vms/env_vars.yml
@@ -25,7 +25,7 @@
# student_password=password needs to be provided with the password to set for the user student
install_student_user: false
docker_device: /dev/xvdb
docker_version: "{{ '1.12.6' if repo_version | version_compare('3.9', '<')  else '1.13.1' }}"
docker_version: "{{ '1.12.6' if repo_version is version_compare('3.9', '<')  else '1.13.1' }}"
### If you want a Key Pair name created and injected into the hosts,
# set `set_env_authorized_key` to true and set the keyname in `env_authorized_key`
@@ -90,8 +90,9 @@
  - rhel-7-server-rpms
  - rhel-7-server-extras-rpms
  - rhel-7-server-ose-{{repo_version}}-rpms
  - rhel-7-fast-datapath-rpms
  - rhel-7-server-ansible-2.4-rpms
  - "rhel-7-server-ansible-{{ '2.4' if repo_version is version_compare('3.11','<') else '2.6' }}-rpms"
rhn_pool_id_string: OpenShift Container Platform
# use_subscription_manager: false
# use_own_repos: true
ansible/configs/rhte-oc-cluster-vms/files/config.j2
New file
@@ -0,0 +1,7 @@
{
  "auths": {
    "registry.redhat.io": {
      "auth": "{{ redhat_registry_token }}"
    }
  }
}
ansible/configs/rhte-oc-cluster-vms/files/registries.conf
@@ -16,7 +16,6 @@
[registries.insecure]
registries = ['172.30.0.0/16']
# If you need to block pull access from a registry, uncomment the section below
# and add the registries fully-qualified name.
#
ansible/configs/rhte-oc-cluster-vms/post_software.yml
@@ -33,6 +33,21 @@
      mode: 0644
      owner: root
      group: root
  - name: Ensure /root/.docker directory exists
    file:
      path: /root/.docker
      state: directory
      mode: 775
      owner: root
      group: root
  - name: Copy docker config.conf file
    when: osrelease is version_compare('3.11', '>=')
    template:
      src: ./files/config.j2
      dest: /root/.docker/config.json
      mode: 0644
      owner: root
      group: root
  - name: Restart docker
    systemd:
      name: docker
ansible/roles/ocp-client-vm/tasks/packages.yml
@@ -38,7 +38,13 @@
  tags:
  - install_openshift_client_vm_packages
- name: Move maven to /usr/local
  command: mv /root/apache-maven-3.5.4 /usr/local
  copy:
    remote_src: yes
    src: /root/apache-maven-3.5.4
    dest: /usr/local
    group: root
    owner: root
    mode: 0755
  tags:
  - install_openshift_client_vm_packages
- name: Cleanup downloaded file