copr-be: install pulp certificates also on STG
This commit is contained in:
parent
a4985b880b
commit
661ddacb55
2 changed files with 6 additions and 7 deletions
|
@ -14,15 +14,14 @@
|
||||||
|
|
||||||
- name: Install Pulp auth certificates
|
- name: Install Pulp auth certificates
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
src: "{{ private }}/files/copr/pulp/{{ item }}"
|
src: "{{ private }}/files/copr/pulp/copr-pulp-{% if env == 'production' %}prod{% else %}stg{% endif %}.{{ item }}"
|
||||||
dest: "/home/copr/.config/pulp/"
|
dest: "/home/copr/.config/pulp/copr-pulp.{{ item }}"
|
||||||
owner: copr
|
owner: copr
|
||||||
group: copr
|
group: copr
|
||||||
mode: "0600"
|
mode: "0600"
|
||||||
with_items:
|
with_items:
|
||||||
- copr-pulp-prod.crt
|
- crt
|
||||||
- copr-pulp-prod.key
|
- key
|
||||||
when: env == "production"
|
|
||||||
|
|
||||||
- name: Install Pulp config file
|
- name: Install Pulp config file
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
|
|
|
@ -5,8 +5,8 @@ api_root = "/api/pulp/"
|
||||||
username = ""
|
username = ""
|
||||||
password = ""
|
password = ""
|
||||||
domain = "public-copr"
|
domain = "public-copr"
|
||||||
cert = "/home/copr/.config/pulp/copr-pulp-prod.crt"
|
cert = "/home/copr/.config/pulp/copr-pulp.crt"
|
||||||
key = "/home/copr/.config/pulp/copr-pulp-prod.key"
|
key = "/home/copr/.config/pulp/copr-pulp.key"
|
||||||
verify_ssl = true
|
verify_ssl = true
|
||||||
format = "json"
|
format = "json"
|
||||||
dry_run = false
|
dry_run = false
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue