Merge "Add Docker service to all roles"
[apex-tripleo-heat-templates.git] / puppet / services / neutron-base.yaml
1 heat_template_version: ocata
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   NeutronCorePlugin:
34     default: 'ml2'
35     description: |
36         The core plugin for Neutron. The value should be the entrypoint to be loaded
37         from neutron.core_plugins namespace.
38     type: string
39   NeutronServicePlugins:
40     default: "router,qos,trunk"
41     description: |
42         Comma-separated list of service plugin entrypoints to be loaded from the
43         neutron.service_plugins namespace.
44     type: comma_delimited_list
45   Debug:
46     type: string
47     default: ''
48     description: Set to True to enable debugging on all services.
49   EnableConfigPurge:
50     type: boolean
51     default: false
52     description: >
53         Remove configuration that is not generated by TripleO. Used to avoid
54         configuration remnants after upgrades.
55   NeutronGlobalPhysnetMtu:
56     type: number
57     default: 1500
58     description: |
59         MTU of the underlying physical network. Neutron uses this value to
60         calculate MTU for all virtual network components. For flat and VLAN
61         networks, neutron uses this value without modification. For overlay
62         networks such as VXLAN, neutron automatically subtracts the overlay
63         protocol overhead from this value.
64   ServiceNetMap:
65     default: {}
66     description: Mapping of service_name -> network name. Typically set
67                  via parameter_defaults in the resource registry.  This
68                  mapping overrides those in ServiceNetMapDefaults.
69     type: json
70   DefaultPasswords:
71     default: {}
72     type: json
73   EndpointMap:
74     default: {}
75     description: Mapping of service endpoint -> protocol. Typically set
76                  via parameter_defaults in the resource registry.
77     type: json
78
79 conditions:
80   dhcp_agents_zero: {equals : [{get_param: NeutronDhcpAgentsPerNetwork}, 0]}
81
82 outputs:
83   role_data:
84     description: Role data for the Neutron base service.
85     value:
86       service_name: neutron_base
87       config_settings:
88         map_merge:
89           - neutron::rabbit_password: {get_param: RabbitPassword}
90             neutron::rabbit_user: {get_param: RabbitUserName}
91             neutron::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
92             neutron::rabbit_port: {get_param: RabbitClientPort}
93             neutron::core_plugin: {get_param: NeutronCorePlugin}
94             neutron::service_plugins: {get_param: NeutronServicePlugins}
95             neutron::debug: {get_param: Debug}
96             neutron::purge_config: {get_param: EnableConfigPurge}
97             neutron::allow_overlapping_ips: true
98             neutron::rabbit_heartbeat_timeout_threshold: 60
99             neutron::host: '%{::fqdn}'
100             neutron::db::database_db_max_retries: -1
101             neutron::db::database_max_retries: -1
102             neutron::db::sync::db_sync_timeout: {get_param: DatabaseSyncTimeout}
103             neutron::global_physnet_mtu: {get_param: NeutronGlobalPhysnetMtu}
104           - if:
105             - dhcp_agents_zero
106             - {}
107             - tripleo::profile::base::neutron::dhcp_agents_per_network: {get_param: NeutronDhcpAgentsPerNetwork}