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
|
||||
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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue