Skip to content

Commit

Permalink
Merge "Fix placement of policy.json"
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed Dec 1, 2016
2 parents 44e11dd + b5d1e4b commit 0d234fe
Show file tree
Hide file tree
Showing 22 changed files with 129 additions and 23 deletions.
7 changes: 6 additions & 1 deletion ansible/roles/aodh/tasks/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@
- name: Copying over existing policy.json
template:
src: "{{ node_custom_config }}/aodh/policy.json"
dest: "{{ node_config_directory }}/aodh/policy.json"
dest: "{{ node_config_directory }}/{{ item }}/policy.json"
with_items:
- "aodh-api"
- "aodh-evaluator"
- "aodh-listener"
- "aodh-notifier"
when:
aodh_policy.stat.exists
6 changes: 5 additions & 1 deletion ansible/roles/barbican/tasks/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@
- name: Copying over existing policy.json
template:
src: "{{ node_custom_config }}/barbican/policy.json"
dest: "{{ node_config_directory }}/barbican/policy.json"
dest: "{{ node_config_directory }}/{{ item }}/policy.json"
with_items:
- "barbican-api"
- "barbican-keystone-listener"
- "barbican-worker"
when:
barbican_policy.stat.exists
8 changes: 7 additions & 1 deletion ansible/roles/ceilometer/tasks/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@
- name: Copying over existing policy.json
template:
src: "{{ node_custom_config }}/ceilometer/policy.json"
dest: "{{ node_config_directory }}/ceilometer/policy.json"
dest: "{{ node_config_directory }}/{{ item }}/policy.json"
with_items:
- "ceilometer-notification"
- "ceilometer-collector"
- "ceilometer-api"
- "ceilometer-central"
- "ceilometer-compute"
when:
ceilometer_policy.stat.exists
7 changes: 6 additions & 1 deletion ansible/roles/cinder/tasks/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,12 @@
- name: Copying over existing policy.json
template:
src: "{{ node_custom_config }}/cinder/policy.json"
dest: "{{ node_config_directory }}/cinder/policy.json"
dest: "{{ node_config_directory }}/{{ item }}/policy.json"
with_items:
- "cinder-api"
- "cinder-backup"
- "cinder-scheduler"
- "cinder-volume"
when:
cinder_policy.stat.exists

Expand Down
5 changes: 4 additions & 1 deletion ansible/roles/cloudkitty/tasks/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@
- name: Copying over existing policy.json
template:
src: "{{ node_custom_config }}/cloudkitty/policy.json"
dest: "{{ node_config_directory }}/cloudkitty/policy.json"
dest: "{{ node_config_directory }}/{{ item }}/policy.json"
with_items:
- "cloudkitty-api"
- "cloudkitty-processor"
when:
cloudkitty_policy.stat.exists
6 changes: 5 additions & 1 deletion ansible/roles/congress/tasks/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@
- name: Copying over existing policy.json
template:
src: "{{ node_custom_config }}/congress/policy.json"
dest: "{{ node_config_directory }}/congress/policy.json"
dest: "{{ node_config_directory }}/{{ item }}/policy.json"
with_items:
- "congress-api"
- "congress-policy-engine"
- "congress-datasource"
when:
congress_policy.stat.exists
6 changes: 4 additions & 2 deletions ansible/roles/glance/tasks/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
- name: Copying over existing policy.json
template:
src: "{{ node_custom_config }}/glance/policy.json"
dest: "{{ node_config_directory }}/glance/policy.json"
dest: "{{ node_config_directory }}/{{ item.service }}/policy.json"
when:
glance_policy.stat.exists
- inventory_hostname in groups[item.group]
- glance_policy.stat.exists
with_items: "{{ glance_service_groups }}"
6 changes: 5 additions & 1 deletion ansible/roles/gnocchi/tasks/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@
- name: Copying over existing policy.json
template:
src: "{{ node_custom_config }}/gnocchi/policy.json"
dest: "{{ node_config_directory }}/gnocchi/policy.json"
dest: "{{ node_config_directory }}/{{ item }}/policy.json"
with_items:
- "gnocchi-api"
- "gnocchi-statsd"
- "gnocchi-metricd"
when:
gnocchi_policy.stat.exists
6 changes: 5 additions & 1 deletion ansible/roles/heat/tasks/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@
- name: Copying over existing policy.json
template:
src: "{{ node_custom_config }}/heat/policy.json"
dest: "{{ node_config_directory }}/heat/policy.json"
dest: "{{ node_config_directory }}/{{ item }}/policy.json"
with_items:
- "heat-api"
- "heat-api-cfn"
- "heat-engine"
when:
heat_policy.stat.exists
7 changes: 6 additions & 1 deletion ansible/roles/ironic/tasks/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@
- name: Copying over existing policy.json
template:
src: "{{ node_custom_config }}/ironic/policy.json"
dest: "{{ node_config_directory }}/ironic/policy.json"
dest: "{{ node_config_directory }}/{{ item }}/policy.json"
with_items:
- "ironic-api"
- "ironic-conductor"
- "ironic-inspector"
- "ironic-pxe"
when:
ironic_policy.stat.exists
5 changes: 4 additions & 1 deletion ansible/roles/keystone/tasks/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@
- name: Copying over existing policy.json
template:
src: "{{ node_custom_config }}/keystone/policy.json"
dest: "{{ node_config_directory }}/keystone/policy.json"
dest: "{{ node_config_directory }}/{{ item }}/policy.json"
with_items:
- "keystone"
- "keystone-fernet"
when:
keystone_policy.stat.exists

Expand Down
5 changes: 4 additions & 1 deletion ansible/roles/magnum/tasks/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@
- name: Copying over existing policy.json
template:
src: "{{ node_custom_config }}/magnum/policy.json"
dest: "{{ node_config_directory }}/magnum/policy.json"
dest: "{{ node_config_directory }}/{{ item }}/policy.json"
with_items:
- "magnum-api"
- "magnum-conductor"
when:
magnum_policy.stat.exists
7 changes: 6 additions & 1 deletion ansible/roles/manila/tasks/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@
- name: Copying over existing policy.json
template:
src: "{{ node_custom_config }}/manila/policy.json"
dest: "{{ node_config_directory }}/manila/policy.json"
dest: "{{ node_config_directory }}/{{ item }}/policy.json"
with_items:
- "manila-api"
- "manila-data"
- "manila-scheduler"
- "manila-share"
when:
manila_policy.stat.exists
6 changes: 5 additions & 1 deletion ansible/roles/mistral/tasks/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@
- name: Copying over existing policy.json
template:
src: "{{ node_custom_config }}/mistral/policy.json"
dest: "{{ node_config_directory }}/mistral/policy.json"
dest: "{{ node_config_directory }}/{{ item }}/policy.json"
with_items:
- "mistral-api"
- "mistral-engine"
- "mistral-executor"
when:
mistral_policy.stat.exists
5 changes: 4 additions & 1 deletion ansible/roles/murano/tasks/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@
- name: Copying over existing policy.json
template:
src: "{{ node_custom_config }}/murano/policy.json"
dest: "{{ node_config_directory }}/murano/policy.json"
dest: "{{ node_config_directory }}/{{ item }}/policy.json"
with_items:
- "murano-api"
- "murano-engine"
when:
murano_policy.stat.exists
11 changes: 10 additions & 1 deletion ansible/roles/neutron/tasks/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,15 @@
- name: Copying over existing policy.json
template:
src: "{{ node_custom_config }}/neutron/policy.json"
dest: "{{ node_config_directory }}/neutron/policy.json"
dest: "{{ node_config_directory }}/{{ item }}/policy.json"
with_items:
- "neutron-dhcp-agent"
- "neutron-l3-agent"
- "neutron-linuxbridge-agent"
- "neutron-metadata-agent"
- "neutron-openvswitch-agent"
- "neutron-server"
- "neutron-lbaas-agent"
- "neutron-vpnaas-agent"
when:
neutron_policy.stat.exists
11 changes: 10 additions & 1 deletion ansible/roles/nova/tasks/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,15 @@
- name: Copying over existing policy.json
template:
src: "{{ node_custom_config }}/nova/policy.json"
dest: "{{ node_config_directory }}/nova/policy.json"
dest: "{{ node_config_directory }}/{{ item }}/policy.json"
with_items:
- "nova-api"
- "nova-compute"
- "nova-compute-ironic"
- "nova-conductor"
- "nova-consoleauth"
- "nova-novncproxy"
- "nova-scheduler"
- "nova-spicehtml5proxy"
when:
nova_policy.stat.exists
5 changes: 4 additions & 1 deletion ansible/roles/sahara/tasks/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@
- name: Copying over existing policy.json
template:
src: "{{ node_custom_config }}/sahara/policy.json"
dest: "{{ node_config_directory }}/sahara/policy.json"
dest: "{{ node_config_directory }}/{{ item }}/policy.json"
with_items:
- "sahara-api"
- "sahara-engine"
when:
sahara_policy.stat.exists
5 changes: 4 additions & 1 deletion ansible/roles/searchlight/tasks/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@
- name: Copying over existing policy.json
template:
src: "{{ node_custom_config }}/searchlight/policy.json"
dest: "{{ node_config_directory }}/searchlight/policy.json"
dest: "{{ node_config_directory }}/{{ item }}/policy.json"
with_items:
- "searchlight-api"
- "searchlight-listener"
when:
searchlight_policy.stat.exists
5 changes: 4 additions & 1 deletion ansible/roles/senlin/tasks/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@
- name: Copying over existing policy.json
template:
src: "{{ node_custom_config }}/senlin/policy.json"
dest: "{{ node_config_directory }}/senlin/policy.json"
dest: "{{ node_config_directory }}/{{ item }}/policy.json"
with_items:
- "senlin-api"
- "senlin-engine"
when:
senlin_policy.stat.exists
17 changes: 16 additions & 1 deletion ansible/roles/swift/tasks/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,21 @@
- name: Copying over existing policy.json
template:
src: "{{ node_custom_config }}/swift/policy.json"
dest: "{{ node_config_directory }}/swift/policy.json"
dest: "{{ node_config_directory }}/{{ item }}/policy.json"
with_items:
- "swift-account-auditor"
- "swift-account-reaper"
- "swift-account-replicator"
- "swift-account-server"
- "swift-container-auditor"
- "swift-container-replicator"
- "swift-container-server"
- "swift-container-updater"
- "swift-object-auditor"
- "swift-object-expirer"
- "swift-object-replicator"
- "swift-object-server"
- "swift-object-updater"
- "swift-proxy-server"
when:
swift_policy.stat.exists
6 changes: 5 additions & 1 deletion ansible/roles/watcher/tasks/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@
- name: Copying over existing policy.json
template:
src: "{{ node_custom_config }}/watcher/policy.json"
dest: "{{ node_config_directory }}/watcher/policy.json"
dest: "{{ node_config_directory }}/{{ item }}/policy.json"
with_items:
- "watcher-api"
- "watcher-engine"
- "watcher-applier"
when:
watcher_policy.stat.exists

0 comments on commit 0d234fe

Please sign in to comment.