copr-pulp: use pulp_installer collection

This commit is contained in:
Jakub Kadlcik 2023-08-20 13:36:38 +02:00
parent 17fc31ba63
commit 4c408d55e3

View file

@ -1,5 +1,5 @@
---
- name: install copr packages
- name: Install copr packages
dnf:
state: present
name:
@ -7,3 +7,51 @@
- copr-selinux
tags:
- packages
- name: FIXME Permissive SELinux to make our life easier
ansible.posix.selinux:
policy: targeted
state: permissive
- name: Use pulp_installer collection
collections:
- pulp.pulp_installer
roles:
- pulp_all_services
environment:
DJANGO_SETTINGS_MODULE: pulpcore.app.settings
vars:
pulp_settings:
# Production key is `copr_pulp_secret_key`
secret_key: "{{ copr_dev_pulp_secret_key }}"
content_origin: "https://{{ ansible_fqdn }}"
# Production key is `copr_pulp_default_admin_password`
pulp_default_admin_password: "{{ copr_dev_pulp_default_admin_password }}"
pulp_workers: 1
# pulp_configure_firewall: none
pulp_install_plugins:
# galaxy-ng:
# pulp-2to3-migration:
# pulp-ansible:
# pulp-certguard:
# pulp-container:
# pulp-cookbook:
# pulp-deb:
# pulp-file:
# pulp-gem:
# pulp-maven:
# pulp-npm:
# pulp-python:
pulp-rpm:
# We have some issue with
# ModuleNotFoundError: No module named 'selinux'
# and installing `python3-libselinux` or `selinux` inside of
# `source /usr/local/lib/pulp/bin/activate` doesn't help
pulp_install_selinux_policies: false