Merge "Configurable policy.json for keystone"

This commit is contained in:
Jenkins 2016-07-21 09:41:03 +00:00 committed by Gerrit Code Review
commit 1fd6f79c8a
2 changed files with 18 additions and 0 deletions

View File

@ -1,4 +1,8 @@
--- ---
- name: Check if Policies shall be overwritten
local_action: stat path="{{ node_custom_config }}/keystone/policy.json"
register: keystone_policy
- name: Check if Keystone Domain specific settings enabled - name: Check if Keystone Domain specific settings enabled
local_action: stat path="{{ node_custom_config }}/keystone/domains" local_action: stat path="{{ node_custom_config }}/keystone/domains"
register: keystone_domain_cfg register: keystone_domain_cfg
@ -49,6 +53,13 @@
with_fileglob: with_fileglob:
- "{{ node_custom_config }}/keystone/domains/*" - "{{ node_custom_config }}/keystone/domains/*"
- name: Copying over existing policy.json
template:
src: "{{ node_custom_config }}/keystone/policy.json"
dest: "{{ node_config_directory }}/keystone/policy.json"
when:
keystone_policy.stat.exists
- name: Copying over wsgi-keystone.conf - name: Copying over wsgi-keystone.conf
template: template:
src: "wsgi-keystone.conf.j2" src: "wsgi-keystone.conf.j2"

View File

@ -16,6 +16,13 @@
"perm": "0600", "perm": "0600",
"optional": true "optional": true
}, },
{
"source": "{{ container_config_directory }}/policy.json",
"dest": "/etc/keystone/policy.json",
"owner": "keystone",
"perm": "0600",
"optional": true
},
{ {
"source": "{{ container_config_directory }}/wsgi-keystone.conf", "source": "{{ container_config_directory }}/wsgi-keystone.conf",
"dest": "/etc/{{ keystone_dir }}/wsgi-keystone.conf", "dest": "/etc/{{ keystone_dir }}/wsgi-keystone.conf",