
This patch implements the LBAAS agent using haproxy into the neutron_agents container group. The neutron-lbaas-agent service is disabled by default but can be enabled by setting neutron_plugin_base in user_variables to include 'neutron.services.loadbalancer.plugin.LoadBalancerPlugin'. The LBaaS Agent conf file entries can be set using the dict 'neutron_lbaas_agent_ini_overrides' DocImpact Closes-Bug: #1491968 Change-Id: I0aacdde6001836b7c0d881d935a5531d3ce04590 Co-Authored-By: Serge van Ginderachter <serge@vanginderachter.be>
113 lines
4.5 KiB
YAML
113 lines
4.5 KiB
YAML
---
|
|
# Copyright 2014, Rackspace US, Inc.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
- include: neutron_upstart_common_init.yml
|
|
vars:
|
|
program_name: "{{ neutron_services['neutron-server'].service_name }}"
|
|
program_config_options: "{{ neutron_services['neutron-server'].config_options }}"
|
|
service_name: "{{ neutron_service_name }}"
|
|
system_user: "{{ neutron_system_user_name }}"
|
|
system_group: "{{ neutron_system_group_name }}"
|
|
service_home: "{{ neutron_system_home_folder }}"
|
|
when:
|
|
- inventory_hostname in groups['neutron_server']
|
|
- neutron_services['neutron-server'].service_en | bool
|
|
tags:
|
|
- upstart-init
|
|
|
|
- include: neutron_upstart_common_init.yml
|
|
vars:
|
|
program_name: "{{ neutron_services['neutron-dhcp-agent'].service_name }}"
|
|
program_config_options: "{{ neutron_services['neutron-dhcp-agent'].config_options }}"
|
|
service_name: "{{ neutron_service_name }}"
|
|
system_user: "{{ neutron_system_user_name }}"
|
|
system_group: "{{ neutron_system_group_name }}"
|
|
service_home: "{{ neutron_system_home_folder }}"
|
|
when:
|
|
- inventory_hostname in groups['neutron_agent']
|
|
- neutron_services['neutron-dhcp-agent'].service_en | bool
|
|
tags:
|
|
- upstart-init
|
|
|
|
- include: neutron_upstart_common_init.yml
|
|
vars:
|
|
program_name: "{{ neutron_services['neutron-l3-agent'].service_name }}"
|
|
program_config_options: "{{ neutron_services['neutron-l3-agent'].config_options }}"
|
|
service_name: "{{ neutron_service_name }}"
|
|
system_user: "{{ neutron_system_user_name }}"
|
|
system_group: "{{ neutron_system_group_name }}"
|
|
service_home: "{{ neutron_system_home_folder }}"
|
|
when:
|
|
- inventory_hostname in groups['neutron_agent']
|
|
- neutron_services['neutron-l3-agent'].service_en | bool
|
|
tags:
|
|
- upstart-init
|
|
|
|
- include: neutron_upstart_common_init.yml
|
|
vars:
|
|
program_name: "{{ neutron_services['neutron-linuxbridge-agent'].service_name }}"
|
|
program_config_options: "{{ neutron_services['neutron-linuxbridge-agent'].config_options }}"
|
|
service_name: "{{ neutron_service_name }}"
|
|
system_user: "{{ neutron_system_user_name }}"
|
|
system_group: "{{ neutron_system_group_name }}"
|
|
service_home: "{{ neutron_system_home_folder }}"
|
|
when:
|
|
- inventory_hostname in groups['neutron_linuxbridge_agent']
|
|
- neutron_services['neutron-linuxbridge-agent'].service_en | bool
|
|
tags:
|
|
- upstart-init
|
|
|
|
- include: neutron_upstart_common_init.yml
|
|
vars:
|
|
program_name: "{{ neutron_services['neutron-metadata-agent'].service_name }}"
|
|
program_config_options: "{{ neutron_services['neutron-metadata-agent'].config_options }}"
|
|
service_name: "{{ neutron_service_name }}"
|
|
system_user: "{{ neutron_system_user_name }}"
|
|
system_group: "{{ neutron_system_group_name }}"
|
|
service_home: "{{ neutron_system_home_folder }}"
|
|
when:
|
|
- inventory_hostname in groups['neutron_agent']
|
|
- neutron_services['neutron-metadata-agent'].service_en | bool
|
|
tags:
|
|
- upstart-init
|
|
|
|
- include: neutron_upstart_common_init.yml
|
|
vars:
|
|
program_name: "{{ neutron_services['neutron-metering-agent'].service_name }}"
|
|
program_config_options: "{{ neutron_services['neutron-metering-agent'].config_options }}"
|
|
service_name: "{{ neutron_service_name }}"
|
|
system_user: "{{ neutron_system_user_name }}"
|
|
system_group: "{{ neutron_system_group_name }}"
|
|
service_home: "{{ neutron_system_home_folder }}"
|
|
when:
|
|
- inventory_hostname in groups['neutron_agent']
|
|
- neutron_services['neutron-metering-agent'].service_en | bool
|
|
tags:
|
|
- upstart-init
|
|
|
|
- include: neutron_upstart_common_init.yml
|
|
vars:
|
|
program_name: "{{ neutron_services['neutron-lbaas-agent'].service_name }}"
|
|
program_config_options: "{{ neutron_services['neutron-lbaas-agent'].config_options }}"
|
|
service_name: "{{ neutron_service_name }}"
|
|
system_user: "{{ neutron_system_user_name }}"
|
|
system_group: "{{ neutron_system_group_name }}"
|
|
service_home: "{{ neutron_system_home_folder }}"
|
|
when:
|
|
- inventory_hostname in groups['neutron_agent']
|
|
- neutron_services['neutron-lbaas-agent'].service_en | bool
|
|
tags:
|
|
- upstart-init
|