Skip to content

Commit dfe949e

Browse files
author
William Graef
committed
add ocne2 repo and pkgs
1 parent 9e4c334 commit dfe949e

File tree

2 files changed

+42
-1
lines changed

2 files changed

+42
-1
lines changed

ocne2/default_vars.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ block_count: 1
1919

2020
ocne_type: libvirt
2121
install_ocne_rpm: false
22+
create_ocne_cluster: false
2223
update_all: false

ocne2/deploy_ocne_libvirt.yml

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,44 @@
100100
append: true
101101

102102
- name: Reset ssh connection to allow user changes to affect 'current login user'
103-
ansible.builtin.meta: reset_connection
103+
ansible.builtin.meta: reset_connection
104+
105+
- name: Install repository and packages
106+
when:
107+
- install_ocne_rpm
108+
block:
109+
- name: Install ocne repository
110+
ansible.builtin.dnf:
111+
name: oracle-olcne-release-el8
112+
state: present
113+
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '8'
114+
115+
- name: Enable ocne repository
116+
ansible.builtin.command:
117+
cmd: dnf config-manager --enable ol8_ocne
118+
register: dnf_result
119+
changed_when: dnf_result.rc == 0
120+
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '8'
121+
122+
- name: Install ocne repository
123+
ansible.builtin.dnf:
124+
name: oracle-olcne-release-el9
125+
state: present
126+
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '9'
127+
128+
- name: Enable ocne repository
129+
ansible.builtin.command:
130+
cmd: dnf config-manager --enable ol9_ocne
131+
register: dnf_result
132+
changed_when: dnf_result.rc == 0
133+
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '9'
134+
135+
- name: Install ocne package
136+
ansible.builtin.dnf:
137+
name:
138+
- ocne
139+
- kubectl
140+
state: present
141+
142+
143+
# run ocne cluster start -- add string of flags

0 commit comments

Comments
 (0)