Skip to content

Commit

Permalink
Update roadshow-ocpvirt to dont use images (#7513)
Browse files Browse the repository at this point in the history
  • Loading branch information
agonzalezrh authored Dec 13, 2023
1 parent c3902b4 commit d360eaa
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 45 deletions.
1 change: 0 additions & 1 deletion ansible/configs/roadshow-ocpvirt/post_software.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
delay: 30

- name: Post tasks
when: not build_lab|bool
block:
- name: Make .kube directory
ansible.builtin.file:
Expand Down
84 changes: 41 additions & 43 deletions ansible/configs/roadshow-ocpvirt/pre_software.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,49 +137,47 @@
hosts: bastion-vm
gather_facts: false
tasks:
- when: build_lab|bool
block:
- include_role:
name: ocp4_aio_deploy_bastion
vars:
ocp4_aio_ssh_key: "{{ lookup('file', '{{ output_dir }}/{{ guid }}_id_rsa.pub' ) }}"
when: cloud_provider == 'equinix_metal'

- include_role:
name: ocp4_aio_deploy_bastion
vars:
ocp4_aio_ssh_key: "{{ lookup('file', hostvars['localhost']['env_authorized_key_path_pub']) }}"
when: cloud_provider == 'ec2'


- name: Copy letsencrypt files
copy:
src: "{{ output_dir }}/{{ item }}"
dest: "/root/{{ item }}"
loop:
- chain1.pem
- cert1.pem
- privkey1.pem

- name: Install httpd
yum:
name: httpd

- name: Start and enable httpd
service:
name: httpd
state: restarted
enabled: yes

- name: Download required files for the lab
get_url:
url: "https://www.opentlc.com/download/ocp4_virt_foundations/{{ item }}"
dest: "/var/www/html/{{ item }}"
owner: apache
group: apache
loop:
- Fedora35.qcow2
- Windows2019.iso
- include_role:
name: ocp4_aio_deploy_bastion
vars:
ocp4_aio_ssh_key: "{{ lookup('file', '{{ output_dir }}/{{ guid }}_id_rsa.pub' ) }}"
when: cloud_provider == 'equinix_metal'

- include_role:
name: ocp4_aio_deploy_bastion
vars:
ocp4_aio_ssh_key: "{{ lookup('file', hostvars['localhost']['env_authorized_key_path_pub']) }}"
when: cloud_provider == 'ec2'


- name: Copy letsencrypt files
copy:
src: "{{ output_dir }}/{{ item }}"
dest: "/root/{{ item }}"
loop:
- chain1.pem
- cert1.pem
- privkey1.pem

- name: Install httpd
yum:
name: httpd

- name: Start and enable httpd
service:
name: httpd
state: restarted
enabled: yes

- name: Download required files for the lab
get_url:
url: "https://www.opentlc.com/download/ocp4_virt_foundations/{{ item }}"
dest: "/var/www/html/{{ item }}"
owner: apache
group: apache
loop:
- Fedora35.qcow2
- Windows2019.iso


- name: PreSoftware flight-check
Expand Down
1 change: 0 additions & 1 deletion ansible/configs/roadshow-ocpvirt/software.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
setup:

- name: deploy OCP
when: build_lab|bool
include_role:
name: ocp4_aio_deploy_ocp
vars:
Expand Down

0 comments on commit d360eaa

Please sign in to comment.