Skip to content

Commit aafd93b

Browse files
committed
Enable Assisted-installer to install CNV and LSO
1 parent 065623d commit aafd93b

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

ansible/roles/install-cluster/defaults/main/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ assisted_installer_port: 8090
99
registry_host: "{{ groups['bastion'][0] }}"
1010
registry_port: 5000
1111

12+
# Enables CNV and LSO install directly upon install via Assisted-installer
13+
enable_assisted_cnv_install: true
14+
1215
check_cluster_pause_seconds: 20
1316

1417
# Unmount virtual media on machines that report status as error in addition to "installing-pending-user-action"

ansible/roles/install-cluster/tasks/main.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,18 @@
2020
body: "{{ lookup('template', 'install-config-overrides.yml.j2') | from_yaml | to_json(ensure_ascii=False) | string | to_json(ensure_ascii=False) | string }}"
2121
register: get_install_config
2222

23+
- name: Enable CNV and LSO install
24+
uri:
25+
url: "http://{{ assisted_installer_host }}:{{ assisted_installer_port }}/api/assisted-install/v2/clusters/{{ ai_cluster_id }}"
26+
method: PATCH
27+
body_format: json
28+
status_code: [201]
29+
return_content: true
30+
body:
31+
olm_operators:
32+
- name: "cnv"
33+
when: enable_assisted_cnv_install
34+
2335
- name: Install cluster
2436
uri:
2537
url: "http://{{ assisted_installer_host }}:{{ assisted_installer_port }}/api/assisted-install/v2/clusters/{{ ai_cluster_id }}/actions/install"

0 commit comments

Comments
 (0)