diff --git a/playbooks/groups/osbs/aarch64/cluster_deployment.yml b/playbooks/groups/osbs/aarch64/cluster_deployment.yml index 96a688a3ff..3d0114d8a6 100644 --- a/playbooks/groups/osbs/aarch64/cluster_deployment.yml +++ b/playbooks/groups/osbs/aarch64/cluster_deployment.yml @@ -59,6 +59,44 @@ option: pipelining value: "True" +- name: Setup cluster masters pre-reqs + hosts: osbs-aarch64-masters-stg + tags: + - osbs-cluster-prereq + 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: ensure origin conf dir exists + file: + path: "/etc/origin" + state: "directory" + + - name: create cert dir for openshift public facing REST API SSL + file: + path: "/etc/origin/master/named_certificates" + state: "directory" + + - name: install cert for openshift public facing REST API SSL + copy: + src: "{{private}}/files/osbs/{{env}}/osbs-internal.pem" + dest: "/etc/origin/master/named_certificates/{{osbs_url}}.pem" + + - name: install key for openshift public facing REST API SSL + copy: + src: "{{private}}/files/osbs/{{env}}/osbs-internal.key" + dest: "/etc/origin/master/named_certificates/{{osbs_url}}.key" + + - name: place htpasswd file + copy: + src: "{{private}}/files/httpd/osbs-{{env}}.htpasswd" + dest: /etc/origin/htpasswd + - name: Setup cluster hosts pre-reqs hosts: osbs-aarch64-masters-stg tags: