beaker/server: copy idp-metadata.xml from its canonical location

Puiterwijk explains that we want to have a single location for storing
idp-metadata.xml, instead of copying it around into each role, so that
there is only one place to update it when keys need to be rolled over.
This commit is contained in:
Dan Callaghan
2016-04-14 17:26:40 +10:00
parent 4a921a129e
commit a2db32b857

View File

@@ -28,13 +28,20 @@
tags:
- beaker-server
- name: copy SAML identity provider metadata
copy: >
src="{{ private }}/files/saml2/idp-{{env}}.xml"
dest="/etc/httpd/saml2/{{ beaker_server_cname }}/idp-metadata.xml"
owner="apache" group="apache" mode=0600
tags:
- beaker-server
- name: copy SAML files
copy: >
src="{{ item }}" dest="/etc/httpd/{{ item }}"
owner="apache" group="apache" mode=0644
with_items:
- "saml2/{{ beaker_server_cname }}/metadata.xml"
- "saml2/{{ beaker_server_cname }}/idp-metadata.xml"
- "saml2/{{ beaker_server_cname }}/certificate.pem"
tags:
- beaker-server