|
|
|
@ -5,7 +5,7 @@
|
|
|
|
|
cloud_launcher_disable_job: true
|
|
|
|
|
|
|
|
|
|
# setup opendev CA
|
|
|
|
|
- hosts: bastion[0]
|
|
|
|
|
- hosts: prod_bastion[0]
|
|
|
|
|
become: true
|
|
|
|
|
tasks:
|
|
|
|
|
- name: Make temporary dir for CA generation
|
|
|
|
@ -57,9 +57,9 @@
|
|
|
|
|
creates: '{{ item.file }}'
|
|
|
|
|
loop:
|
|
|
|
|
- file: '/etc/opendev-ca/ca.key'
|
|
|
|
|
content: '{{ hostvars[groups["bastion"][0]]["_opendev_ca_key"]["content"] }}'
|
|
|
|
|
content: '{{ hostvars[groups["prod_bastion"][0]]["_opendev_ca_key"]["content"] }}'
|
|
|
|
|
- file: '/etc/opendev-ca/ca.crt'
|
|
|
|
|
content: '{{ hostvars[groups["bastion"][0]]["_opendev_ca_certificate"]["content"] }}'
|
|
|
|
|
content: '{{ hostvars[groups["prod_bastion"][0]]["_opendev_ca_certificate"]["content"] }}'
|
|
|
|
|
|
|
|
|
|
- name: Install and trust certificate
|
|
|
|
|
shell:
|
|
|
|
@ -67,7 +67,7 @@
|
|
|
|
|
cp /etc/opendev-ca/ca.crt /usr/local/share/ca-certificates/opendev-infra-ca.crt
|
|
|
|
|
update-ca-certificates
|
|
|
|
|
|
|
|
|
|
- hosts: bastion[0]
|
|
|
|
|
- hosts: prod_bastion[0]
|
|
|
|
|
become: true
|
|
|
|
|
tasks:
|
|
|
|
|
- name: Write inventory on bridge
|
|
|
|
@ -185,7 +185,7 @@
|
|
|
|
|
name: encrypt-logs
|
|
|
|
|
vars:
|
|
|
|
|
encrypt_logs_files: '{{ _run_playbooks_logs.files | map(attribute="path") | list }}'
|
|
|
|
|
encrypt_logs_artifact_path: '{{ groups["bastion"][0] }}/ansible'
|
|
|
|
|
encrypt_logs_artifact_path: '{{ groups["prod_bastion"][0] }}/ansible'
|
|
|
|
|
encrypt_logs_download_script_path: '/var/log/ansible'
|
|
|
|
|
|
|
|
|
|
- name: Run test playbook
|
|
|
|
@ -216,7 +216,7 @@
|
|
|
|
|
zuul:
|
|
|
|
|
artifacts:
|
|
|
|
|
- name: Screenshots
|
|
|
|
|
url: '{{ groups["bastion"][0] }}/screenshots'
|
|
|
|
|
url: '{{ groups["prod_bastion"][0] }}/screenshots'
|
|
|
|
|
|
|
|
|
|
- name: Allow PBR's git calls to operate in system-config, despite not owning it
|
|
|
|
|
command: git config --global safe.directory /home/zuul/src/opendev.org/opendev/system-config
|
|
|
|
@ -240,4 +240,4 @@
|
|
|
|
|
zuul:
|
|
|
|
|
artifacts:
|
|
|
|
|
- name: testinfra results
|
|
|
|
|
url: '{{ groups["bastion"][0] }}/test-results.html'
|
|
|
|
|
url: '{{ groups["prod_bastion"][0] }}/test-results.html'
|
|
|
|
|