Skip to content

Commit

Permalink
add ocne2 repo and pkgs
Browse files Browse the repository at this point in the history
  • Loading branch information
bgraef committed Sep 23, 2024
1 parent 9e4c334 commit dfe949e
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
1 change: 1 addition & 0 deletions ocne2/default_vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ block_count: 1

ocne_type: libvirt
install_ocne_rpm: false
create_ocne_cluster: false
update_all: false
42 changes: 41 additions & 1 deletion ocne2/deploy_ocne_libvirt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,44 @@
append: true

- name: Reset ssh connection to allow user changes to affect 'current login user'
ansible.builtin.meta: reset_connection
ansible.builtin.meta: reset_connection

- name: Install repository and packages
when:
- install_ocne_rpm
block:
- name: Install ocne repository
ansible.builtin.dnf:
name: oracle-olcne-release-el8
state: present
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '8'

- name: Enable ocne repository
ansible.builtin.command:
cmd: dnf config-manager --enable ol8_ocne
register: dnf_result
changed_when: dnf_result.rc == 0
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '8'

- name: Install ocne repository
ansible.builtin.dnf:
name: oracle-olcne-release-el9
state: present
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '9'

- name: Enable ocne repository
ansible.builtin.command:
cmd: dnf config-manager --enable ol9_ocne
register: dnf_result
changed_when: dnf_result.rc == 0
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '9'

- name: Install ocne package
ansible.builtin.dnf:
name:
- ocne
- kubectl
state: present


# run ocne cluster start -- add string of flags

0 comments on commit dfe949e

Please sign in to comment.