diff --git a/playbooks/groups/copr-pulp.yml b/playbooks/groups/copr-pulp.yml deleted file mode 100644 index dad0eb0638..0000000000 --- a/playbooks/groups/copr-pulp.yml +++ /dev/null @@ -1,146 +0,0 @@ ---- -- name: Check/create instance - hosts: copr_pulp_dev_aws:copr_pulp_aws - gather_facts: false - - vars_files: - - /srv/web/infra/ansible/vars/global.yml - - "/srv/private/ansible/vars.yml" - - handlers: - - import_tasks: "{{ handlers_path }}/restart_services.yml" - - tasks: - # - import_tasks: "{{ tasks_path }}/persistent_cloud.yml" - # when: datacenter != 'aws' - - - import_tasks: "{{ tasks_path }}/aws_cloud.yml" - when: datacenter == 'aws' - vars: - temporary_remote_user: ec2-user - - - import_tasks: "{{ tasks_path }}/swap.yml" - when: - - swap_file_size_mb is defined - - # TODO Remove in favor of base/tasks/main.yml - - name: Install platform-python - ansible.builtin.package: name={{ item }} state=present - with_items: - - platform-python - become: true - - # TODO Remove in favor of base/tasks/main.yml - - name: Symlink /usr/bin/python to /usr/bin/python3 - alternatives: - name: python - link: /usr/bin/python - path: /usr/bin/python3 - become: true - - # TODO Move this to base/tasks/main.yml - - name: Install iptables-services - ansible.builtin.package: name=iptables-services state=present - become: true - - # TODO Postfix should have probably been installed by base/tasks/main.yml - # but it wasn't for this instance - - name: Install postfix - ansible.builtin.package: name=postfix state=present - become: true - - - name: Temporarily dump keys so we can add them to bitwarden - ansible.builtin.copy: - content: "{{ copr_dev_pulp_default_admin_password }}" - dest: /tmp/pulp_default_admin_password - mode: "000" - -- name: Cloud basic setup - hosts: copr_pulp_dev_aws:copr_pulp_aws - become: true - gather_facts: true - - vars_files: - - /srv/web/infra/ansible/vars/global.yml - - "/srv/private/ansible/vars.yml" - - pre_tasks: - - import_tasks: "{{ tasks_path }}/yumrepos.yml" - - tasks: - - import_tasks: "{{ tasks_path }}/cloud_setup_basic.yml" - - name: Set hostname (required by some services, at least postfix need it) - hostname: name="{{copr_hostbase}}.cloud.fedoraproject.org" - when: datacenter != "aws" - -- name: Provision instance - hosts: copr_pulp_dev_aws:copr_pulp_aws - become: true - gather_facts: true - - vars_files: - - /srv/web/infra/ansible/vars/global.yml - - "/srv/private/ansible/vars.yml" - - /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml - - roles: - - copr/pre - - base - - nagios_client - - copr/pulp - - -- name: Use pulp_installer collection - hosts: copr_pulp_dev_aws:copr_pulp_aws - become: true - gather_facts: true - - collections: - - pulp.pulp_installer - - roles: - - pulp_all_services - - environment: - DJANGO_SETTINGS_MODULE: pulpcore.app.settings - - vars_files: - - /srv/web/infra/ansible/vars/global.yml - - "/srv/private/ansible/vars.yml" - - /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml - - 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_api_bind: "0.0.0.0:24817" - pulp_content_bind: "0.0.0.0:24816" - - 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 diff --git a/playbooks/manual/copr/copr-pulp-upgrade.yml b/playbooks/manual/copr/copr-pulp-upgrade.yml deleted file mode 100644 index 5c92f8852e..0000000000 --- a/playbooks/manual/copr/copr-pulp-upgrade.yml +++ /dev/null @@ -1,27 +0,0 @@ ---- -- name: Upgrade copr pulp - hosts: copr_pulp_dev_aws:copr_pulp_aws - user: root - gather_facts: true - - vars_files: - - /srv/web/infra/ansible/vars/global.yml - - "/srv/private/ansible/vars.yml" - - /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml - - tasks: - - name: Generic upgrade tasks for copr servers - import_tasks: _generic_tasks.yml - - - name: Upgrade copr-pulp packages - dnf: - state: latest - name: - - copr-selinux - - python3-copr-common - update_cache: true - notify: - - Restart haveged - - handlers: - - import_tasks: "{{ handlers_path }}/restart_services.yml" diff --git a/roles/copr/pulp/meta/main.yml b/roles/copr/pulp/meta/main.yml deleted file mode 100644 index a774579b1d..0000000000 --- a/roles/copr/pulp/meta/main.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -dependencies: - - { role: copr/base } diff --git a/roles/copr/pulp/tasks/main.yml b/roles/copr/pulp/tasks/main.yml deleted file mode 100644 index a7b5afe36d..0000000000 --- a/roles/copr/pulp/tasks/main.yml +++ /dev/null @@ -1,14 +0,0 @@ ---- -- name: Install copr packages - dnf: - state: present - name: - - python3-copr-common - - copr-selinux - tags: - - packages - -- name: FIXME Permissive SELinux to make our life easier - ansible.posix.selinux: - policy: targeted - state: permissive