0b2cef079555e1fa7ee17342bb77a3e8941ec37a
[apex-tripleo-heat-templates.git] / puppet / services / neutron-base.yaml
1 heat_template_version: 2016-04-08
2
3 description: >
4   OpenStack Neutron base service. Shared for all Neutron agents.
5
6 parameters:
7   RabbitPassword:
8     description: The password for RabbitMQ
9     type: string
10     hidden: true
11   RabbitUserName:
12     default: guest
13     description: The username for RabbitMQ
14     type: string
15   RabbitClientUseSSL:
16     default: false
17     description: >
18         Rabbit client subscriber parameter to specify
19         an SSL connection to the RabbitMQ host.
20     type: string
21   RabbitClientPort:
22     default: 5672
23     description: Set rabbit subscriber port, change this if using SSL
24     type: number
25   NeutronDhcpAgentsPerNetwork:
26     type: number
27     default: 3
28     description: The number of neutron dhcp agents to schedule per network
29   NeutronCorePlugin:
30     default: 'ml2'
31     description: |
32         The core plugin for Neutron. The value should be the entrypoint to be loaded
33         from neutron.core_plugins namespace.
34     type: string
35   NeutronServicePlugins:
36     default: "router,qos,trunk"
37     description: |
38         Comma-separated list of service plugin entrypoints to be loaded from the
39         neutron.service_plugins namespace.
40     type: comma_delimited_list
41   Debug:
42     type: string
43     default: ''
44     description: Set to True to enable debugging on all services.
45   EnableConfigPurge:
46     type: boolean
47     default: true
48     description: >
49         Remove configuration that is not generated by TripleO. Setting
50         to false may result in configuration remnants after updates/upgrades.
51   NeutronGlobalPhysnetMtu:
52     type: number
53     default: 1500
54     description: |
55         MTU of the underlying physical network. Neutron uses this value to
56         calculate MTU for all virtual network components. For flat and VLAN
57         networks, neutron uses this value without modification. For overlay
58         networks such as VXLAN, neutron automatically subtracts the overlay
59         protocol overhead from this value.
60   ServiceNetMap:
61     default: {}
62     description: Mapping of service_name -> network name. Typically set
63                  via parameter_defaults in the resource registry.  This
64                  mapping overrides those in ServiceNetMapDefaults.
65     type: json
66   DefaultPasswords:
67     default: {}
68     type: json
69   EndpointMap:
70     default: {}
71     description: Mapping of service endpoint -> protocol. Typically set
72                  via parameter_defaults in the resource registry.
73     type: json
74
75 outputs:
76   role_data:
77     description: Role data for the Neutron base service.
78     value:
79       service_name: neutron_base
80       config_settings:
81         neutron::rabbit_password: {get_param: RabbitPassword}
82         neutron::rabbit_user: {get_param: RabbitUserName}
83         neutron::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
84         neutron::rabbit_port: {get_param: RabbitClientPort}
85         neutron::dhcp_agents_per_network: {get_param: NeutronDhcpAgentsPerNetwork}
86         neutron::core_plugin: {get_param: NeutronCorePlugin}
87         neutron::service_plugins:
88           str_replace:
89             template: PLUGINS
90             params:
91               PLUGINS: {get_param: NeutronServicePlugins}
92         neutron::debug: {get_param: Debug}
93         neutron::purge_config: {get_param: EnableConfigPurge}
94         neutron::allow_overlapping_ips: true
95         neutron::rabbit_heartbeat_timeout_threshold: 60
96         neutron::host: '"%{::fqdn}"'    #NOTE: extra quoting is needed
97         neutron::db::database_db_max_retries: -1
98         neutron::db::database_max_retries: -1
99         neutron::global_physnet_mtu: {get_param: NeutronGlobalPhysnetMtu}