openstack-ansible-os_nova/templates
Jesse Pretorius 9a17ca682d Use dictionary for service group mappings
Change the 'nova_service_names' from a list to a dictionary mapping
of services, groups that install those services. This brings the
method into line with that used in the os_neutron role in order to
implement a more standardised method.

The init tasks have been updated to run once and loop through this
mapping rather than being included multiple times and re-run against
each host. This may potentially reduce role run times.

Currently the reload of upstart/systemd scripts may not happen if
only one script changes as the task uses a loop with only one result
register. This patch implements handlers to reload upstart/systemd
scripts to ensure that this happens when any one of the scripts
change.

The handler to reload the services now only tries to restart the
service if the host is in the group for the service according to the
service group mapping. This allows us to ensure that handler
failures are no longer ignored and that no execution time is wasted
trying to restart services which do not exist on the host.

Finally:
- Common variables shared by each service's template files have
  been updated to use the service namespaced variables.
- Unused handlers have been removed.
- Unused variables have been removed.

Change-Id: I53fb0ab1cc5762e3559d4ee2635d4cca532df7e3
2016-09-30 17:41:26 +00:00
..
api-paste.ini.j2 Update paste, policy and rootwrap configurations 2016-06-02 2016-06-02 19:09:49 +01:00
libvirtd.conf.j2 Enabled debug logging functionality for libvirt 2016-04-18 17:02:22 +01:00
lxd-init.sh.j2 Implement nova-lxd driver 2016-08-08 18:05:13 -04:00
nova-key-insert.sh.j2 Clean final newline when distributing SSH keys 2016-08-22 10:05:20 -03:00
nova-systemd-init.j2 Use dictionary for service group mappings 2016-09-30 17:41:26 +00:00
nova-systemd-tempfiles.j2 Use dictionary for service group mappings 2016-09-30 17:41:26 +00:00
nova-upstart-init.j2 Use dictionary for service group mappings 2016-09-30 17:41:26 +00:00
nova.conf.j2 Update ironic auth options for Keystone v3 auth 2016-09-29 05:58:06 +00:00
policy.json.j2 Update paste, policy and rootwrap configurations 2016-07-14 2016-07-18 21:34:37 +00:00
qemu.conf.j2 Configure qemu when Calico network type is set 2016-09-09 22:14:56 -05:00
rootwrap.conf.j2 Update role for stable/mitaka testing 2016-03-23 21:57:32 +00:00
sudoers.j2 Implement nova venv support 2015-10-17 00:44:03 -05:00