diff --git a/roles/copr/backend/tasks/pulp.yml b/roles/copr/backend/tasks/pulp.yml index 3869f91faf..cd193c93f6 100644 --- a/roles/copr/backend/tasks/pulp.yml +++ b/roles/copr/backend/tasks/pulp.yml @@ -14,15 +14,14 @@ - name: Install Pulp auth certificates ansible.builtin.copy: - src: "{{ private }}/files/copr/pulp/{{ item }}" - dest: "/home/copr/.config/pulp/" + src: "{{ private }}/files/copr/pulp/copr-pulp-{% if env == 'production' %}prod{% else %}stg{% endif %}.{{ item }}" + dest: "/home/copr/.config/pulp/copr-pulp.{{ item }}" owner: copr group: copr mode: "0600" with_items: - - copr-pulp-prod.crt - - copr-pulp-prod.key - when: env == "production" + - crt + - key - name: Install Pulp config file ansible.builtin.template: diff --git a/roles/copr/backend/templates/pulp-cli.toml b/roles/copr/backend/templates/pulp-cli.toml index 83eedf49c5..f58f5bbe4b 100644 --- a/roles/copr/backend/templates/pulp-cli.toml +++ b/roles/copr/backend/templates/pulp-cli.toml @@ -5,8 +5,8 @@ api_root = "/api/pulp/" username = "" password = "" domain = "public-copr" -cert = "/home/copr/.config/pulp/copr-pulp-prod.crt" -key = "/home/copr/.config/pulp/copr-pulp-prod.key" +cert = "/home/copr/.config/pulp/copr-pulp.crt" +key = "/home/copr/.config/pulp/copr-pulp.key" verify_ssl = true format = "json" dry_run = false