Merge "Fix cidr get_attr in custom networks"
[apex-tripleo-heat-templates.git] / puppet / services / neutron-base.yaml
1 heat_template_version: pike
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   DatabaseSyncTimeout:
26     default: 300
27     description: DB Sync Timeout default
28     type: number
29   NeutronDhcpAgentsPerNetwork:
30     type: number
31     default: 0
32     description: The number of neutron dhcp agents to schedule per network
33   NeutronDnsDomain:
34     type: string
35     default: openstacklocal
36     description: Domain to use for building the hostnames.
37   NeutronCorePlugin:
38     default: 'ml2'
39     description: |
40         The core plugin for Neutron. The value should be the entrypoint to be loaded
41         from neutron.core_plugins namespace.
42     type: string
43   NeutronServicePlugins:
44     default: "router,qos,trunk"
45     description: |
46         Comma-separated list of service plugin entrypoints to be loaded from the
47         neutron.service_plugins namespace.
48     type: comma_delimited_list
49   Debug:
50     type: string
51     default: ''
52     description: Set to True to enable debugging on all services.
53   NeutronDebug:
54     default: ''
55     description: Set to True to enable debugging Neutron services.
56     type: string
57   EnableConfigPurge:
58     type: boolean
59     default: false
60     description: >
61         Remove configuration that is not generated by TripleO. Used to avoid
62         configuration remnants after upgrades.
63   NeutronGlobalPhysnetMtu:
64     type: number
65     default: 1500
66     description: |
67         MTU of the underlying physical network. Neutron uses this value to
68         calculate MTU for all virtual network components. For flat and VLAN
69         networks, neutron uses this value without modification. For overlay
70         networks such as VXLAN, neutron automatically subtracts the overlay
71         protocol overhead from this value.
72   NeutronDBSyncExtraParams:
73     default: ''
74     description: |
75         String of extra command line parameters to append to the neutron-db-manage
76         upgrade head command.
77     type: string
78   ServiceData:
79     default: {}
80     description: Dictionary packing service data
81     type: json
82   ServiceNetMap:
83     default: {}
84     description: Mapping of service_name -> network name. Typically set
85                  via parameter_defaults in the resource registry.  This
86                  mapping overrides those in ServiceNetMapDefaults.
87     type: json
88   DefaultPasswords:
89     default: {}
90     type: json
91   RoleName:
92     default: ''
93     description: Role name on which the service is applied
94     type: string
95   RoleParameters:
96     default: {}
97     description: Parameters specific to the role
98     type: json
99   EndpointMap:
100     default: {}
101     description: Mapping of service endpoint -> protocol. Typically set
102                  via parameter_defaults in the resource registry.
103     type: json
104   NotificationDriver:
105     type: string
106     default: 'messagingv2'
107     description: Driver or drivers to handle sending notifications.
108     constraints:
109       - allowed_values: [ 'messagingv2', 'noop' ]
110
111 conditions:
112   dhcp_agents_zero: {equals : [{get_param: NeutronDhcpAgentsPerNetwork}, 0]}
113   service_debug_unset: {equals : [{get_param: NeutronDebug}, '']}
114
115 outputs:
116   role_data:
117     description: Role data for the Neutron base service.
118     value:
119       service_name: neutron_base
120       config_settings:
121         map_merge:
122           - neutron::rabbit_password: {get_param: RabbitPassword}
123             neutron::rabbit_user: {get_param: RabbitUserName}
124             neutron::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
125             neutron::rabbit_port: {get_param: RabbitClientPort}
126             neutron::notification_driver: {get_param: NotificationDriver}
127             neutron::core_plugin: {get_param: NeutronCorePlugin}
128             neutron::service_plugins: {get_param: NeutronServicePlugins}
129             neutron::debug:
130               if:
131               - service_debug_unset
132               - {get_param: Debug }
133               - {get_param: NeutronDebug }
134             neutron::purge_config: {get_param: EnableConfigPurge}
135             neutron::allow_overlapping_ips: true
136             neutron::dns_domain: {get_param: NeutronDnsDomain}
137             neutron::rabbit_heartbeat_timeout_threshold: 60
138             neutron::host: '%{::fqdn}'
139             neutron::db::database_db_max_retries: -1
140             neutron::db::database_max_retries: -1
141             neutron::db::sync::db_sync_timeout: {get_param: DatabaseSyncTimeout}
142             neutron::global_physnet_mtu: {get_param: NeutronGlobalPhysnetMtu}
143             neutron::db::sync::extra_params: {get_param: NeutronDBSyncExtraParams}
144           - if:
145             - dhcp_agents_zero
146             - {}
147             - tripleo::profile::base::neutron::dhcp_agents_per_network: {get_param: NeutronDhcpAgentsPerNetwork}