Merge "Deployment host can provide shibboleth SP key-pair"
This commit is contained in:
commit
15971abe85
@ -453,6 +453,14 @@ keystone_role_project_group: keystone_all
|
||||
# template engine and copied to the target host.
|
||||
# keystone_sso_callback_file_path: "/etc/openstack_deploy/keystone/sso_callback_template.html"
|
||||
|
||||
#: Tunable file-based overrides
|
||||
# The contents of these files, if they exist, are read from the
|
||||
# specified path on the deployment host, interpreted by the
|
||||
# template engine and copied to the target host. If they do
|
||||
# not exist then they will be generated on first playbook run.
|
||||
shibboleth_cert_user_file_path: "/etc/openstack_deploy/keystone/sp-cert.pem"
|
||||
shibboleth_key_user_file_path: "/etc/openstack_deploy/keystone/sp-key.pem"
|
||||
|
||||
#: Tunable var-based overrides
|
||||
# The contents of these are templated over the default files.
|
||||
keystone_keystone_conf_overrides: {}
|
||||
|
@ -26,11 +26,26 @@
|
||||
notify:
|
||||
- Restart Shibd
|
||||
|
||||
- name: Copy Shibboleth SP key-pair (if provided)
|
||||
copy:
|
||||
content: "{{ item.content }}"
|
||||
dest: "{{ item.dest }}"
|
||||
mode: "{{ item.mode|default('0640') }}"
|
||||
when:
|
||||
- inventory_hostname == groups['keystone_all'][0]
|
||||
- item.content != ''
|
||||
with_items:
|
||||
- { content: "{{ shibboleth_cert_user_content }}", dest: "/etc/shibboleth/sp-cert.pem" }
|
||||
- { content: "{{ shibboleth_key_user_content }}", dest: "/etc/shibboleth/sp-key.pem" }
|
||||
notify:
|
||||
- Manage LB
|
||||
- Restart web server
|
||||
- Restart Shibd
|
||||
|
||||
- name: Generate the Shibboleth SP key-pair
|
||||
command: "shib-keygen -h {{ external_lb_vip_address }} -y {{ keystone_sp.cert_duration_years }}"
|
||||
args:
|
||||
creates: "/etc/shibboleth/sp-cert.pem"
|
||||
changed_when: false
|
||||
when: inventory_hostname == groups['keystone_all'][0]
|
||||
notify:
|
||||
- Manage LB
|
||||
|
@ -38,3 +38,6 @@ keystone_package_list: |-
|
||||
|
||||
_keystone_bin: "/openstack/venvs/keystone-{{ keystone_venv_tag }}/bin"
|
||||
keystone_uwsgi_bin: "{{ _keystone_bin }}"
|
||||
# These vars find a file on the deployment node, if it exists - otherwise the result is empty.
|
||||
shibboleth_cert_user_content: "{{ lookup('pipe', 'cat ' ~ shibboleth_cert_user_file_path ~ ' 2>/dev/null || true') }}"
|
||||
shibboleth_key_user_content: "{{ lookup('pipe', 'cat ' ~ shibboleth_key_user_file_path ~ ' 2>/dev/null || true') }}"
|
||||
|
Loading…
Reference in New Issue
Block a user