diff --git a/ansible/action_plugins/merge_configs.py b/ansible/action_plugins/merge_configs.py index da2ab8fb66..11462f4b3b 100644 --- a/ansible/action_plugins/merge_configs.py +++ b/ansible/action_plugins/merge_configs.py @@ -98,8 +98,6 @@ class ActionModule(action.ActionBase): def run(self, tmp=None, task_vars=None): - if task_vars is None: - task_vars = dict() result = super(ActionModule, self).run(tmp, task_vars) # NOTE(jeffrey4l): Ansible 2.1 add a remote_user param to the @@ -114,22 +112,15 @@ class ActionModule(action.ActionBase): tmp = self._make_tmp_path(remote_user) sources = self._task.args.get('sources', None) - extra_vars = self._task.args.get('vars', list()) if not isinstance(sources, list): sources = [sources] - temp_vars = task_vars.copy() - temp_vars.update(extra_vars) - config = OverrideConfigParser() - old_vars = self._templar._available_variables - self._templar.set_available_variables(temp_vars) for source in sources: self.read_config(source, config) - self._templar.set_available_variables(old_vars) # Dump configparser to string via an emulated file fakefile = StringIO() @@ -140,7 +131,6 @@ class ActionModule(action.ActionBase): fakefile.close() new_module_args = self._task.args.copy() - new_module_args.pop('vars', None) new_module_args.pop('sources', None) new_module_args.update( diff --git a/ansible/roles/aodh/tasks/config.yml b/ansible/roles/aodh/tasks/config.yml index ce986df30c..051e150763 100644 --- a/ansible/roles/aodh/tasks/config.yml +++ b/ansible/roles/aodh/tasks/config.yml @@ -25,9 +25,9 @@ - Restart aodh-notifier container - name: Copying over aodh.conf + vars: + service_name: "{{ item.key }}" merge_configs: - vars: - service_name: "{{ item.key }}" sources: - "{{ role_path }}/templates/aodh.conf.j2" - "{{ node_custom_config }}/global.conf" diff --git a/ansible/roles/barbican/tasks/config.yml b/ansible/roles/barbican/tasks/config.yml index 4fd0eb349b..d3309b845b 100644 --- a/ansible/roles/barbican/tasks/config.yml +++ b/ansible/roles/barbican/tasks/config.yml @@ -61,9 +61,9 @@ - Restart barbican-api container - name: Copying over barbican.conf + vars: + service_name: "{{ item.key }}" merge_configs: - vars: - service_name: "{{ item.key }}" sources: - "{{ role_path }}/templates/barbican.conf.j2" - "{{ node_custom_config }}/global.conf" diff --git a/ansible/roles/ceilometer/tasks/config.yml b/ansible/roles/ceilometer/tasks/config.yml index c829c08802..254cf0520f 100644 --- a/ansible/roles/ceilometer/tasks/config.yml +++ b/ansible/roles/ceilometer/tasks/config.yml @@ -43,9 +43,9 @@ - Restart ceilometer-api container - name: Copying over ceilometer.conf + vars: + service_name: "{{ item.key }}" merge_configs: - vars: - service_name: "{{ item.key }}" sources: - "{{ role_path }}/templates/ceilometer.conf.j2" - "{{ node_custom_config }}/global.conf" diff --git a/ansible/roles/ceph/tasks/config.yml b/ansible/roles/ceph/tasks/config.yml index d88e9645de..931444a8a3 100644 --- a/ansible/roles/ceph/tasks/config.yml +++ b/ansible/roles/ceph/tasks/config.yml @@ -19,9 +19,9 @@ - "ceph-rgw" - name: Copying over ceph.conf + vars: + service_name: "{{ item }}" merge_configs: - vars: - service_name: "{{ item }}" sources: - "{{ role_path }}/templates/ceph.conf.j2" - "{{ node_custom_config }}/ceph.conf" diff --git a/ansible/roles/cinder/tasks/ceph.yml b/ansible/roles/cinder/tasks/ceph.yml index 45d6790770..6cb41aafee 100644 --- a/ansible/roles/cinder/tasks/ceph.yml +++ b/ansible/roles/cinder/tasks/ceph.yml @@ -9,9 +9,9 @@ when: inventory_hostname in groups['cinder-volume'] - name: Copying over ceph.conf(s) + vars: + service_name: "{{ item }}" merge_configs: - vars: - service_name: "{{ item }}" sources: - "{{ role_path }}/../ceph/templates/ceph.conf.j2" - "{{ node_custom_config }}/ceph.conf" diff --git a/ansible/roles/cinder/tasks/config.yml b/ansible/roles/cinder/tasks/config.yml index 1a3d6da3e3..2faffab02c 100644 --- a/ansible/roles/cinder/tasks/config.yml +++ b/ansible/roles/cinder/tasks/config.yml @@ -44,9 +44,9 @@ - Restart cinder-api container - name: Copying over cinder.conf + vars: + service_name: "{{ item.key }}" merge_configs: - vars: - service_name: "{{ item.key }}" sources: - "{{ role_path }}/templates/cinder.conf.j2" - "{{ node_custom_config }}/global.conf" diff --git a/ansible/roles/cinder/tasks/external_ceph.yml b/ansible/roles/cinder/tasks/external_ceph.yml index 25b522cb63..4c78d17b96 100644 --- a/ansible/roles/cinder/tasks/external_ceph.yml +++ b/ansible/roles/cinder/tasks/external_ceph.yml @@ -10,9 +10,9 @@ - backup - name: Copying over ceph.conf for Cinder + vars: + service_name: "{{ item }}" merge_configs: - vars: - service_name: "{{ item }}" sources: - "{{ node_custom_config }}/cinder/ceph.conf" - "{{ node_custom_config }}/cinder/{{ item }}/ceph.conf" diff --git a/ansible/roles/cloudkitty/tasks/config.yml b/ansible/roles/cloudkitty/tasks/config.yml index da56b0c3ed..10923109f7 100644 --- a/ansible/roles/cloudkitty/tasks/config.yml +++ b/ansible/roles/cloudkitty/tasks/config.yml @@ -23,9 +23,9 @@ - Restart cloudkitty-processor container - name: Copying over cloudkitty.conf + vars: + service_name: "{{ item.key }}" merge_configs: - vars: - service_name: "{{ item.key }}" sources: - "{{ role_path }}/templates/cloudkitty.conf.j2" - "{{ node_custom_config }}/global.conf" diff --git a/ansible/roles/congress/tasks/config.yml b/ansible/roles/congress/tasks/config.yml index 1a3db435ee..b8ee831a46 100644 --- a/ansible/roles/congress/tasks/config.yml +++ b/ansible/roles/congress/tasks/config.yml @@ -20,9 +20,9 @@ - "Restart {{ item.key }} container" - name: Copying over congress.conf + vars: + service_name: "{{ item.key }}" merge_configs: - vars: - service_name: "{{ item.key }}" sources: - "{{ role_path }}/templates/congress.conf.j2" - "{{ node_custom_config }}/global.conf" diff --git a/ansible/roles/designate/tasks/config.yml b/ansible/roles/designate/tasks/config.yml index 7c333a6c30..cbe226f223 100644 --- a/ansible/roles/designate/tasks/config.yml +++ b/ansible/roles/designate/tasks/config.yml @@ -27,9 +27,9 @@ - Restart designate-worker container - name: Copying over designate.conf + vars: + service_name: "{{ item.key }}" merge_configs: - vars: - service_name: "{{ item.key }}" sources: - "{{ role_path }}/templates/designate.conf.j2" - "{{ node_custom_config }}/global.conf" diff --git a/ansible/roles/freezer/tasks/config.yml b/ansible/roles/freezer/tasks/config.yml index aef83f44b2..e455be67c4 100644 --- a/ansible/roles/freezer/tasks/config.yml +++ b/ansible/roles/freezer/tasks/config.yml @@ -34,9 +34,9 @@ - Restart freezer-api container - name: Copying over freezer-api.conf + vars: + service_name: "{{ item.key }}" merge_configs: - vars: - service_name: "{{ item.key }}" sources: - "{{ role_path }}/templates/freezer-api.conf.j2" - "{{ node_custom_config }}/global.conf" diff --git a/ansible/roles/glance/tasks/config.yml b/ansible/roles/glance/tasks/config.yml index db3c69362f..cfcde6c1c7 100644 --- a/ansible/roles/glance/tasks/config.yml +++ b/ansible/roles/glance/tasks/config.yml @@ -23,9 +23,9 @@ - Restart glance-registry container - name: Copying over glance-*.conf + vars: + service_name: "{{ item.key }}" merge_configs: - vars: - service_name: "{{ item.key }}" sources: - "{{ role_path }}/templates/{{ item.key }}.conf.j2" - "{{ node_custom_config }}/global.conf" diff --git a/ansible/roles/gnocchi/tasks/ceph.yml b/ansible/roles/gnocchi/tasks/ceph.yml index 79717c1ffa..eb6fefd357 100644 --- a/ansible/roles/gnocchi/tasks/ceph.yml +++ b/ansible/roles/gnocchi/tasks/ceph.yml @@ -10,9 +10,9 @@ - "gnocchi-statsd" - name: Copying over ceph.conf(s) + vars: + service_name: "{{ item }}" merge_configs: - vars: - service_name: "{{ item }}" sources: - "{{ role_path }}/../ceph/templates/ceph.conf.j2" - "{{ node_custom_config }}/ceph.conf" diff --git a/ansible/roles/gnocchi/tasks/config.yml b/ansible/roles/gnocchi/tasks/config.yml index afec2e4dc8..56d20a3c84 100644 --- a/ansible/roles/gnocchi/tasks/config.yml +++ b/ansible/roles/gnocchi/tasks/config.yml @@ -24,9 +24,9 @@ - Restart gnocchi-statsd container - name: Copying over gnocchi.conf + vars: + service_name: "{{ item.key }}" merge_configs: - vars: - service_name: "{{ item.key }}" sources: - "{{ role_path }}/templates/gnocchi.conf.j2" - "{{ node_custom_config }}/global.conf" diff --git a/ansible/roles/grafana/tasks/config.yml b/ansible/roles/grafana/tasks/config.yml index 6984ad3e9d..4cb50c3760 100644 --- a/ansible/roles/grafana/tasks/config.yml +++ b/ansible/roles/grafana/tasks/config.yml @@ -22,9 +22,9 @@ - Restart grafana container - name: Copying over grafana.ini + vars: + service_name: "{{ item.key }}" merge_configs: - vars: - service_name: "{{ item.key }}" sources: - "{{ role_path }}/templates/grafana.ini.j2" - "{{ node_custom_config }}/{{ item.key }}.ini" diff --git a/ansible/roles/heat/tasks/config.yml b/ansible/roles/heat/tasks/config.yml index cbdd938ac4..63fc5ed310 100644 --- a/ansible/roles/heat/tasks/config.yml +++ b/ansible/roles/heat/tasks/config.yml @@ -31,9 +31,9 @@ - "heat-engine" - name: Copying over heat.conf + vars: + service_name: "{{ item.key }}" merge_configs: - vars: - service_name: "{{ item.key }}" sources: - "{{ role_path }}/templates/heat.conf.j2" - "{{ node_custom_config }}/global.conf" diff --git a/ansible/roles/ironic/tasks/config.yml b/ansible/roles/ironic/tasks/config.yml index 57fad1ce49..b09fcf742b 100644 --- a/ansible/roles/ironic/tasks/config.yml +++ b/ansible/roles/ironic/tasks/config.yml @@ -23,9 +23,9 @@ - "ironic-dnsmasq" - name: Copying over ironic.conf + vars: + service_name: "{{ item }}" merge_configs: - vars: - service_name: "{{ item }}" sources: - "{{ role_path }}/templates/ironic.conf.j2" - "{{ node_custom_config }}/global.conf" @@ -40,9 +40,9 @@ - "ironic-conductor" - name: Copying over inspector.conf + vars: + service_name: "ironic-inspector" merge_configs: - vars: - service_name: "ironic-inspector" sources: - "{{ role_path }}/templates/ironic-inspector.conf.j2" - "{{ node_custom_config }}/global.conf" diff --git a/ansible/roles/karbor/tasks/config.yml b/ansible/roles/karbor/tasks/config.yml index 9c9bd60fd7..db72fd192c 100644 --- a/ansible/roles/karbor/tasks/config.yml +++ b/ansible/roles/karbor/tasks/config.yml @@ -24,9 +24,9 @@ - Restart karbor-operationengine container - name: Copying over karbor.conf + vars: + service_name: "{{ item.key }}" merge_configs: - vars: - service_name: "{{ item.key }}" sources: - "{{ role_path }}/templates/karbor.conf.j2" - "{{ node_custom_config }}/global.conf" diff --git a/ansible/roles/keystone/tasks/config.yml b/ansible/roles/keystone/tasks/config.yml index 6f9ce59158..0a1e6dfee3 100644 --- a/ansible/roles/keystone/tasks/config.yml +++ b/ansible/roles/keystone/tasks/config.yml @@ -34,9 +34,9 @@ - Restart keystone-fernet container - name: Copying over keystone.conf + vars: + service_name: "{{ item.key }}" merge_configs: - vars: - service_name: "{{ item.key }}" sources: - "{{ role_path }}/templates/keystone.conf.j2" - "{{ node_custom_config }}/global.conf" diff --git a/ansible/roles/kuryr/tasks/config.yml b/ansible/roles/kuryr/tasks/config.yml index b5f999ba88..2148780bbf 100644 --- a/ansible/roles/kuryr/tasks/config.yml +++ b/ansible/roles/kuryr/tasks/config.yml @@ -22,9 +22,9 @@ - Restart kuryr container - name: Copying over kuryr.conf + vars: + service_name: "{{ item.key }}" merge_configs: - vars: - service_name: "{{ item.key }}" sources: - "{{ role_path }}/templates/kuryr.conf.j2" - "{{ node_custom_config }}/global.conf" diff --git a/ansible/roles/magnum/tasks/config.yml b/ansible/roles/magnum/tasks/config.yml index 2203b6f99c..232099b6c6 100644 --- a/ansible/roles/magnum/tasks/config.yml +++ b/ansible/roles/magnum/tasks/config.yml @@ -23,9 +23,9 @@ - Restart magnum-conductor container - name: Copying over magnum.conf + vars: + service_name: "{{ item.key }}" merge_configs: - vars: - service_name: "{{ item.key }}" sources: - "{{ role_path }}/templates/magnum.conf.j2" - "{{ node_custom_config }}/global.conf" diff --git a/ansible/roles/manila/tasks/config.yml b/ansible/roles/manila/tasks/config.yml index 0b7927c053..4d730cd7ca 100644 --- a/ansible/roles/manila/tasks/config.yml +++ b/ansible/roles/manila/tasks/config.yml @@ -22,9 +22,9 @@ - "Restart {{ item.key }} container" - name: Copying over manila.conf + vars: + service_name: "{{ item.key }}" merge_configs: - vars: - service_name: "{{ item.key }}" sources: - "{{ role_path }}/templates/manila.conf.j2" - "{{ node_custom_config }}/global.conf" @@ -48,9 +48,8 @@ - name: Copying over manila-share.conf vars: service: "{{ manila_services['manila-share'] }}" + service_name: "{{ item }}" merge_configs: - vars: - service_name: "{{ item }}" sources: - "{{ role_path }}/templates/manila.conf.j2" - "{{ role_path }}/templates/manila-share.conf.j2" diff --git a/ansible/roles/mariadb/tasks/config.yml b/ansible/roles/mariadb/tasks/config.yml index a748c1adf0..5a0f36d5f8 100644 --- a/ansible/roles/mariadb/tasks/config.yml +++ b/ansible/roles/mariadb/tasks/config.yml @@ -15,9 +15,9 @@ - "mariadb" - name: Copying over galera.cnf + vars: + service_name: "{{ item }}" merge_configs: - vars: - service_name: "{{ item }}" sources: - "{{ role_path }}/templates/galera.cnf.j2" - "{{ node_custom_config }}/galera.cnf" diff --git a/ansible/roles/mistral/tasks/config.yml b/ansible/roles/mistral/tasks/config.yml index 717dc7073b..73f6c6fb7d 100644 --- a/ansible/roles/mistral/tasks/config.yml +++ b/ansible/roles/mistral/tasks/config.yml @@ -20,9 +20,9 @@ - Restart {{ item.key }} container - name: Copying over mistral.conf + vars: + service_name: "{{ item.key }}" merge_configs: - vars: - service_name: "{{ item.key }}" sources: - "{{ role_path }}/templates/mistral.conf.j2" - "{{ node_custom_config }}/global.conf" diff --git a/ansible/roles/murano/tasks/config.yml b/ansible/roles/murano/tasks/config.yml index 8f899fe6ce..da754df815 100644 --- a/ansible/roles/murano/tasks/config.yml +++ b/ansible/roles/murano/tasks/config.yml @@ -17,9 +17,9 @@ - "murano-engine" - name: Copying over murano.conf + vars: + service_name: "{{ item }}" merge_configs: - vars: - service_name: "{{ item }}" sources: - "{{ role_path }}/templates/murano.conf.j2" - "{{ node_custom_config }}/global.conf" diff --git a/ansible/roles/neutron/tasks/config-neutron-fake.yml b/ansible/roles/neutron/tasks/config-neutron-fake.yml index b8d6128d18..e890de4a94 100644 --- a/ansible/roles/neutron/tasks/config-neutron-fake.yml +++ b/ansible/roles/neutron/tasks/config-neutron-fake.yml @@ -18,9 +18,9 @@ - neutron_plugin_agent == "openvswitch" - name: Copying over neutron.conf + vars: + service_name: "{{ item }}" merge_configs: - vars: - service_name: "{{ item }}" sources: - "{{ role_path }}/templates/neutron.conf.j2" - "{{ node_custom_config }}/global.conf" @@ -37,9 +37,9 @@ - neutron_plugin_agent == "openvswitch" - name: Copying over ml2_conf.ini + vars: + service_name: "{{ item }}" merge_configs: - vars: - service_name: "{{ item }}" sources: - "{{ role_path }}/templates/ml2_conf.ini.j2" - "{{ node_custom_config }}/neutron/ml2_conf.ini" diff --git a/ansible/roles/nova/tasks/ceph.yml b/ansible/roles/nova/tasks/ceph.yml index 9bc09e8165..1d0df980f2 100644 --- a/ansible/roles/nova/tasks/ceph.yml +++ b/ansible/roles/nova/tasks/ceph.yml @@ -9,9 +9,9 @@ when: inventory_hostname in groups['compute'] - name: Copying over ceph.conf(s) + vars: + service_name: "{{ item }}" merge_configs: - vars: - service_name: "{{ item }}" sources: - "{{ role_path }}/../ceph/templates/ceph.conf.j2" - "{{ node_custom_config }}/ceph.conf" diff --git a/ansible/roles/nova/tasks/config-nova-fake.yml b/ansible/roles/nova/tasks/config-nova-fake.yml index 099b7fe944..5a7ccd14c2 100644 --- a/ansible/roles/nova/tasks/config-nova-fake.yml +++ b/ansible/roles/nova/tasks/config-nova-fake.yml @@ -17,9 +17,9 @@ - Restart nova-compute-fake containers - name: Copying over nova.conf + vars: + service_name: "{{ item }}" merge_configs: - vars: - service_name: "{{ item }}" sources: - "{{ role_path }}/templates/nova.conf.j2" - "{{ node_custom_config }}/global.conf" diff --git a/ansible/roles/nova/tasks/config.yml b/ansible/roles/nova/tasks/config.yml index 29f5bc6294..54083aaa46 100644 --- a/ansible/roles/nova/tasks/config.yml +++ b/ansible/roles/nova/tasks/config.yml @@ -45,9 +45,8 @@ - nova-serialproxy - nova-scheduler - nova-spicehtml5proxy + service_name: "{{ item.key }}" merge_configs: - vars: - service_name: "{{ item.key }}" sources: - "{{ role_path }}/templates/nova.conf.j2" - "{{ node_custom_config }}/global.conf" diff --git a/ansible/roles/octavia/tasks/config.yml b/ansible/roles/octavia/tasks/config.yml index 74ad142a83..93db2bcb32 100644 --- a/ansible/roles/octavia/tasks/config.yml +++ b/ansible/roles/octavia/tasks/config.yml @@ -22,9 +22,9 @@ - "Restart {{ item.key }} container" - name: Copying over octavia.conf + vars: + service_name: "{{ item.key }}" merge_configs: - vars: - service_name: "{{ item.key }}" sources: - "{{ role_path }}/templates/octavia.conf.j2" - "{{ node_custom_config }}/global.conf" diff --git a/ansible/roles/panko/tasks/config.yml b/ansible/roles/panko/tasks/config.yml index c79c265a2d..bb5741331d 100644 --- a/ansible/roles/panko/tasks/config.yml +++ b/ansible/roles/panko/tasks/config.yml @@ -22,9 +22,9 @@ - Restart panko-api container - name: Copying over panko.conf + vars: + service_name: "{{ item.key }}" merge_configs: - vars: - service_name: "{{ item.key }}" sources: - "{{ role_path }}/templates/panko.conf.j2" - "{{ node_custom_config }}/global.conf" diff --git a/ansible/roles/rally/tasks/config.yml b/ansible/roles/rally/tasks/config.yml index cd846cb308..c7daee602e 100644 --- a/ansible/roles/rally/tasks/config.yml +++ b/ansible/roles/rally/tasks/config.yml @@ -22,9 +22,9 @@ - Restart rally container - name: Copying over rally.conf + vars: + service_name: "{{ item.key }}" merge_configs: - vars: - service_name: "{{ item.key }}" sources: - "{{ role_path }}/templates/rally.conf.j2" - "{{ node_custom_config }}/rally.conf" diff --git a/ansible/roles/sahara/tasks/config.yml b/ansible/roles/sahara/tasks/config.yml index 785c9875fe..64c6990e3d 100644 --- a/ansible/roles/sahara/tasks/config.yml +++ b/ansible/roles/sahara/tasks/config.yml @@ -23,9 +23,9 @@ - Restart sahara-engine container - name: Copying over sahara.conf + vars: + service_name: "{{ item.key }}" merge_configs: - vars: - service_name: "{{ item.key }}" sources: - "{{ role_path }}/templates/sahara.conf.j2" - "{{ node_custom_config }}/global.conf" diff --git a/ansible/roles/searchlight/tasks/config.yml b/ansible/roles/searchlight/tasks/config.yml index 0e7f96809b..717521f68d 100644 --- a/ansible/roles/searchlight/tasks/config.yml +++ b/ansible/roles/searchlight/tasks/config.yml @@ -20,9 +20,9 @@ with_dict: "{{ searchlight_services }}" - name: Copying over searchlight.conf + vars: + service_name: "{{ item.key }}" merge_configs: - vars: - service_name: "{{ item.key }}" sources: - "{{ role_path }}/templates/searchlight.conf.j2" - "{{ node_custom_config }}/global.conf" diff --git a/ansible/roles/senlin/tasks/config.yml b/ansible/roles/senlin/tasks/config.yml index 76a1229c67..e4442ec4fe 100644 --- a/ansible/roles/senlin/tasks/config.yml +++ b/ansible/roles/senlin/tasks/config.yml @@ -23,9 +23,9 @@ - Restart senlin-engine container - name: Copying over senlin.conf + vars: + service_name: "{{ item.key }}" merge_configs: - vars: - service_name: "{{ item.key }}" sources: - "{{ role_path }}/templates/senlin.conf.j2" - "{{ node_custom_config }}/global.conf" diff --git a/ansible/roles/solum/tasks/config.yml b/ansible/roles/solum/tasks/config.yml index 28e097a393..7df07c41b4 100644 --- a/ansible/roles/solum/tasks/config.yml +++ b/ansible/roles/solum/tasks/config.yml @@ -25,9 +25,9 @@ - Restart solum-worker container - name: Copying over solum.conf + vars: + service_name: "{{ item.key }}" merge_configs: - vars: - service_name: "{{ item.key }}" sources: - "{{ role_path }}/templates/solum.conf.j2" - "{{ node_custom_config }}/global.conf" diff --git a/ansible/roles/swift/tasks/config.yml b/ansible/roles/swift/tasks/config.yml index 82fd47cc15..f66aa2b2d5 100644 --- a/ansible/roles/swift/tasks/config.yml +++ b/ansible/roles/swift/tasks/config.yml @@ -44,9 +44,9 @@ - "swift-rsyncd" - name: Copying over swift.conf + vars: + service_name: "swift-{{ item }}" merge_configs: - vars: - service_name: "swift-{{ item }}" sources: - "{{ role_path }}/templates/swift.conf.j2" - "{{ node_custom_config }}/global.conf" @@ -71,9 +71,9 @@ - "proxy-server" - name: Copying over account-*.conf + vars: + service_name: "swift-{{ item }}" merge_configs: - vars: - service_name: "swift-{{ item }}" sources: - "{{ role_path }}/templates/account.conf.j2" - "{{ node_custom_config }}/global.conf" @@ -88,9 +88,9 @@ - "account-server" - name: Copying over container-*.conf + vars: + service_name: "swift-{{ item }}" merge_configs: - vars: - service_name: "swift-{{ item }}" sources: - "{{ role_path }}/templates/container.conf.j2" - "{{ node_custom_config }}/global.conf" @@ -105,9 +105,9 @@ - "container-updater" - name: Copying over object-*.conf + vars: + service_name: "swift-{{ item }}" merge_configs: - vars: - service_name: "swift-{{ item }}" sources: - "{{ role_path }}/templates/object.conf.j2" - "{{ node_custom_config }}/global.conf" @@ -123,9 +123,9 @@ - "object-updater" - name: Copying over proxy-server.conf + vars: + service_name: "swift-{{ item }}" merge_configs: - vars: - service_name: "swift-{{ item }}" sources: - "{{ role_path }}/templates/proxy-server.conf.j2" - "{{ node_custom_config }}/global.conf" diff --git a/ansible/roles/tacker/tasks/config.yml b/ansible/roles/tacker/tasks/config.yml index 145300e582..fcfbc3416c 100644 --- a/ansible/roles/tacker/tasks/config.yml +++ b/ansible/roles/tacker/tasks/config.yml @@ -22,9 +22,9 @@ - Restart tacker container - name: Copying over tacker.conf + vars: + service_name: "{{ item.key }}" merge_configs: - vars: - service_name: "{{ item.key }}" sources: - "{{ role_path }}/templates/tacker.conf.j2" - "{{ node_custom_config }}/global.conf" diff --git a/ansible/roles/tempest/tasks/config.yml b/ansible/roles/tempest/tasks/config.yml index 6d45a22e78..80f02dc02f 100644 --- a/ansible/roles/tempest/tasks/config.yml +++ b/ansible/roles/tempest/tasks/config.yml @@ -22,9 +22,9 @@ - Restart tempest container - name: Copying over tempest.conf + vars: + project_name: "tempest" merge_configs: - vars: - project_name: "tempest" sources: - "{{ role_path }}/templates/tempest.conf.j2" - "{{ node_custom_config }}/tempest.conf" diff --git a/ansible/roles/trove/tasks/config.yml b/ansible/roles/trove/tasks/config.yml index 5359b5ff48..a05f5eaad6 100644 --- a/ansible/roles/trove/tasks/config.yml +++ b/ansible/roles/trove/tasks/config.yml @@ -36,9 +36,9 @@ - Restart trove-taskmanager container - name: Copying over trove.conf + vars: + service_name: "{{ item.key }}" merge_configs: - vars: - service_name: "{{ item.key }}" sources: - "{{ role_path }}/templates/trove.conf.j2" - "{{ node_custom_config }}/global.conf" diff --git a/ansible/roles/watcher/tasks/config.yml b/ansible/roles/watcher/tasks/config.yml index 7cb1ba0a06..d9d0858b6e 100644 --- a/ansible/roles/watcher/tasks/config.yml +++ b/ansible/roles/watcher/tasks/config.yml @@ -24,9 +24,9 @@ - Restart watcher-applier container - name: Copying over watcher.conf + vars: + service_name: "{{ item.key }}" merge_configs: - vars: - service_name: "{{ item.key }}" sources: - "{{ role_path }}/templates/watcher.conf.j2" - "{{ node_custom_config }}/global.conf" diff --git a/ansible/roles/zun/tasks/config.yml b/ansible/roles/zun/tasks/config.yml index 7935458606..7dca741689 100644 --- a/ansible/roles/zun/tasks/config.yml +++ b/ansible/roles/zun/tasks/config.yml @@ -21,9 +21,9 @@ - Restart zun-compute container - name: Copying over zun.conf + vars: + service_name: "{{ item.key }}" merge_configs: - vars: - service_name: "{{ item.key }}" sources: - "{{ role_path }}/templates/zun.conf.j2" - "{{ node_custom_config }}/global.conf"