diff --git a/defaults/main.yml b/defaults/main.yml index 554d3790..97960e7d 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -102,6 +102,9 @@ neutron_dns_domain: "openstacklocal." neutron_dhcp_config: log-facility: "/var/log/neutron/neutron-dnsmasq.log" +# Set the neutron lbaasv2 user group, defaults from os specific vars +neutron_lbaasv2_user_group: "{{ _neutron_lbaasv2_user_group }}" + ### ### Tunable Overrides (Sorted alphabetically) ### diff --git a/releasenotes/notes/lbaasv2-options-ae992286abfa689f.yaml b/releasenotes/notes/lbaasv2-options-ae992286abfa689f.yaml new file mode 100644 index 00000000..824df227 --- /dev/null +++ b/releasenotes/notes/lbaasv2-options-ae992286abfa689f.yaml @@ -0,0 +1,5 @@ +--- +features: + - An option has been added allowing the user to define the `user_group` + LBaaSv2 uses. The new option is ``neutron_lbaasv2_user_group`` and + is set within the OS specific value by default. diff --git a/templates/lbaas_agent.ini.j2 b/templates/lbaas_agent.ini.j2 index 24656297..43081c0a 100644 --- a/templates/lbaas_agent.ini.j2 +++ b/templates/lbaas_agent.ini.j2 @@ -29,7 +29,7 @@ device_driver = {{ neutron_lbaasv2_device_driver }} # loadbalancer_state_path = $state_path/lbaas # The user group -user_group = nogroup +user_group = {{ neutron_lbaasv2_user_group }} # When delete and re-add the same vip, send this many gratuitous ARPs to flush # the ARP cache in the Router. Set it below or equal to 0 to disable this feature. diff --git a/vars/redhat-7.yml b/vars/redhat-7.yml index 42885932..05977e62 100644 --- a/vars/redhat-7.yml +++ b/vars/redhat-7.yml @@ -30,6 +30,7 @@ neutron_distro_packages: - iptables - iputils - keepalived + - net-tools - radvd - which @@ -49,3 +50,4 @@ neutron_remove_distro_packages: [] neutron_lbaasv2_initscript_path: "/etc/init/neutron-lbaasv2-agent.conf" neutron_lbaasv2_agent_servicename: "neutron-lbaasv2-agent" +_neutron_lbaasv2_user_group: haproxy diff --git a/vars/suse-42.yml b/vars/suse-42.yml index 12422338..c237caac 100644 --- a/vars/suse-42.yml +++ b/vars/suse-42.yml @@ -41,6 +41,7 @@ neutron_distro_packages: - iptables - iputils - keepalived + - net-tools - radvd - which @@ -60,3 +61,4 @@ neutron_remove_distro_packages: [] neutron_lbaasv2_initscript_path: "/etc/init/neutron-lbaasv2-agent.conf" neutron_lbaasv2_agent_servicename: "neutron-lbaasv2-agent" +_neutron_lbaasv2_user_group: nogroup diff --git a/vars/ubuntu-16.04.yml b/vars/ubuntu-16.04.yml index b7a34910..a9fe9dc1 100644 --- a/vars/ubuntu-16.04.yml +++ b/vars/ubuntu-16.04.yml @@ -38,6 +38,7 @@ neutron_distro_packages: - ipset - iptables - iputils-arping + - net-tools - keepalived - radvd @@ -58,3 +59,4 @@ neutron_remove_distro_packages: neutron_lbaasv2_initscript_path: "/etc/init/neutron-lbaasv2-agent.conf" neutron_lbaasv2_agent_servicename: "neutron-lbaasv2-agent" +_neutron_lbaasv2_user_group: nogroup