ansible/configs/ocp4-coreos-deployer/env_vars.yml | ●●●●● patch | view | raw | blame | history | |
ansible/configs/ocp4-shared/env_vars.yml | ●●●●● patch | view | raw | blame | history | |
ansible/configs/ocp4-workshop/env_vars.yml | ●●●●● patch | view | raw | blame | history | |
ansible/roles/bastion/tasks/k8s.yml | ●●●●● patch | view | raw | blame | history | |
ansible/roles/bastion/tasks/main.yml | ●●●●● patch | view | raw | blame | history |
ansible/configs/ocp4-coreos-deployer/env_vars.yml
@@ -26,6 +26,9 @@ install_ipa_client: false install_student_user: false # install openshift python modules on bastion install_k8s_modules: true ## Automatically deploy ocp4 cluster using the installer install_ocp4: false ocp4_installer_version: "v0.16.1" ansible/configs/ocp4-shared/env_vars.yml
@@ -26,8 +26,11 @@ install_ipa_client: false install_student_user: false # install openshift modules on bastion install_k8s_modules: true ## Automatically deploy ocp4 cluster using the installer install_ocp4: false install_ocp4: true ocp4_installer_version: "v0.16.1" oc_client_version: "4.0.22" cluster_name: "cluster-{{ guid }}" ansible/configs/ocp4-workshop/env_vars.yml
@@ -26,8 +26,11 @@ install_ipa_client: false install_student_user: false # install openshift python modules on bastion install_k8s_modules: true ## Automatically deploy ocp4 cluster using the installer install_ocp4: false install_ocp4: true ocp4_installer_version: "v0.16.1" oc_client_version: "4.0.22" cluster_name: "cluster-{{ guid }}" ansible/roles/bastion/tasks/k8s.yml
New file @@ -0,0 +1,34 @@ --- - tags: - bastion_k8s block: - name: Download pip installer get_url: url: https://bootstrap.pypa.io/get-pip.py dest: /tmp/get-pip.py mode: 0440 - name: Run pip installer command: python /tmp/get-pip.py - name: Remove pip installer file: path: /tmp/get-pip.py state: absent - name: Install pip packages pip: name: - virtualenv - name: Upgrade pip packages pip: name: - setuptools extra_args: --upgrade - name: Install OpenShift pip package pip: name: - openshift extra_args: --ignore-installed ansible/roles/bastion/tasks/main.yml
@@ -100,35 +100,8 @@ when: ensuresshpresent.rc == 0 - name: Install Python pip/openshift/virtualenv for k8s module use on bastion tags: - bastion_k8s block: - name: Download pip installer get_url: url: https://bootstrap.pypa.io/get-pip.py dest: /tmp/get-pip.py mode: 0440 - name: Run pip installer command: python /tmp/get-pip.py - name: Remove pip installer file: path: /tmp/get-pip.py state: absent - name: Install pip packages pip: name: - virtualenv - name: Upgrade pip packages pip: name: - setuptools extra_args: --upgrade - name: Install OpenShift pip package pip: name: - openshift extra_args: --ignore-installed include_tasks: k8s.yml when: install_k8s_modules | default(false) - name: Install jq on the bastion get_url: