Skip to content

Commit af371b4

Browse files
committed
add podman playbook to ocne2
1 parent c6bc60b commit af371b4

File tree

3 files changed

+42
-1
lines changed

3 files changed

+42
-1
lines changed

ocne2/create_instance.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,10 @@
316316
install_type: "{{ ocne_type if ocne_type is defined else (lookup('file', 'default_vars.yml') | from_yaml).ocne_type | default('none') }}"
317317
ansible.builtin.import_playbook: "deploy_ocne_{{ install_type }}.yml"
318318

319+
- name: Provision Podman and Container Tools
320+
ansible.builtin.import_playbook: provision_podman.yml
321+
when: use_podman
322+
319323
- name: Print instances
320324
hosts: all
321325
become: true

ocne2/default_vars.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,5 @@ num_cp_nodes: 3
3030
num_wk_nodes: 3
3131
update_all: false
3232
#oci_yum_region: ".uk-london-1"
33-
use_fss: false
33+
use_fss: false
34+
use_podman: false

ocne2/provision_podman.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
# Copyright (c) 2024 Oracle and/or its affiliates.
3+
# This software is made available to you under the terms of the Universal Permissive License (UPL), Version 1.0.
4+
# The Universal Permissive License (UPL), Version 1.0 (see COPYING or https://oss.oracle.com/licenses/upl)
5+
# See LICENSE.TXT for details.
6+
7+
- name: Install Podman and Container Tools
8+
hosts: server
9+
vars_files:
10+
- default_vars.yml
11+
become: true
12+
13+
tasks:
14+
15+
- name: Install Oracle Linux 8 container tools packages
16+
ansible.builtin.dnf:
17+
name:
18+
- "@container-tools:ol8"
19+
- conntrack
20+
- curl
21+
state: present
22+
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '8'
23+
retries: 5
24+
delay: 10
25+
26+
- name: Install Oracle Linux 9 container tools packages
27+
ansible.builtin.dnf:
28+
name:
29+
- podman
30+
- podman-docker
31+
- conntrack
32+
- curl
33+
state: present
34+
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '9'
35+
retries: 5
36+
delay: 10

0 commit comments

Comments
 (0)