diff options
| author | jackning <ningyougang@navercorp.com> | 2016-08-04 03:41:40 -0400 |
|---|---|---|
| committer | jackning <ningyougang@navercorp.com> | 2016-08-04 03:41:40 -0400 |
| commit | 1c0ba85d541abc77cce5eb1d8ae3ad2961ab95c2 (patch) | |
| tree | e0a6230185186f938530598aafe5a725ef110518 | |
| parent | f4a9667767467caa27f939e3fd1e2d630d31ff9b (diff) | |
| download | kolla-1c0ba85d541abc77cce5eb1d8ae3ad2961ab95c2.tar.gz kolla-1c0ba85d541abc77cce5eb1d8ae3ad2961ab95c2.zip | |
Replace keystone's wsgi config with custom config
Ansible's template action supports replacing keystone's wsgi default
config with custom config, it should only add with_first_found param
to config.yml to support this.
Change-Id: Id66302802db9a57188067982ea697f16faa1d8eb
Closes-Bug: #1609655
| -rw-r--r-- | ansible/roles/keystone/tasks/config.yml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ansible/roles/keystone/tasks/config.yml b/ansible/roles/keystone/tasks/config.yml index 12c3f47eb..cfca7dbad 100644 --- a/ansible/roles/keystone/tasks/config.yml +++ b/ansible/roles/keystone/tasks/config.yml @@ -62,5 +62,9 @@ - name: Copying over wsgi-keystone.conf template: - src: "wsgi-keystone.conf.j2" + src: "{{ item }}" dest: "{{ node_config_directory }}/keystone/wsgi-keystone.conf" + with_first_found: + - "{{ node_custom_config }}/keystone/{{ inventory_hostname }}/wsgi-keystone.conf" + - "{{ node_custom_config }}/keystone/wsgi-keystone.conf" + - "wsgi-keystone.conf.j2" |
