From 6b471e468c7a22fe62734a52f2f086f34e657398 Mon Sep 17 00:00:00 2001 From: Hao Liu Date: Tue, 11 Oct 2022 22:12:35 -0400 Subject: [PATCH] add podman config role in instance install bundle related to https://github.com/ansible/receptor-collection/pull/20 configure podman to - use crun - use cgroupfs - force fully qualified image name Signed-off-by: Hao Liu --- .../instance_install_bundle/group_vars/all.yml | 10 ++++++---- .../instance_install_bundle/install_receptor.yml | 4 +++- .../templates/instance_install_bundle/requirements.yml | 2 +- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/awx/api/templates/instance_install_bundle/group_vars/all.yml b/awx/api/templates/instance_install_bundle/group_vars/all.yml index 7d6332ab84..d0eb00f6b9 100644 --- a/awx/api/templates/instance_install_bundle/group_vars/all.yml +++ b/awx/api/templates/instance_install_bundle/group_vars/all.yml @@ -1,3 +1,5 @@ +receptor_user: awx +receptor_group: awx receptor_verify: true receptor_tls: true receptor_work_commands: @@ -10,12 +12,12 @@ custom_worksign_public_keyfile: receptor/work-public-key.pem custom_tls_certfile: receptor/tls/receptor.crt custom_tls_keyfile: receptor/tls/receptor.key custom_ca_certfile: receptor/tls/ca/receptor-ca.crt -receptor_user: awx -receptor_group: awx receptor_protocol: 'tcp' receptor_listener: true receptor_port: {{ instance.listener_port }} receptor_dependencies: - - podman - - crun - python39-pip +{% verbatim %} +podman_user: "{{ receptor_user }}" +podman_group: "{{ receptor_group }}" +{% endverbatim %} diff --git a/awx/api/templates/instance_install_bundle/install_receptor.yml b/awx/api/templates/instance_install_bundle/install_receptor.yml index 0f0789df67..b6fc9f5d2d 100644 --- a/awx/api/templates/instance_install_bundle/install_receptor.yml +++ b/awx/api/templates/instance_install_bundle/install_receptor.yml @@ -9,10 +9,12 @@ shell: /bin/bash - name: Enable Copr repo for Receptor command: dnf copr enable ansible-awx/receptor -y + - import_role: + name: ansible.receptor.podman - import_role: name: ansible.receptor.setup - name: Install ansible-runner pip: name: ansible-runner executable: pip3.9 -{% endverbatim %} \ No newline at end of file +{% endverbatim %} diff --git a/awx/api/templates/instance_install_bundle/requirements.yml b/awx/api/templates/instance_install_bundle/requirements.yml index 515f3da2a4..3fed8496e0 100644 --- a/awx/api/templates/instance_install_bundle/requirements.yml +++ b/awx/api/templates/instance_install_bundle/requirements.yml @@ -1,4 +1,4 @@ --- collections: - name: ansible.receptor - version: 1.0.0 + version: 1.1.0