Merge "Enable mistral to run under mod_wsgi"
[apex-tripleo-heat-templates.git] / puppet / services / nova-base.yaml
1 heat_template_version: pike
2
3 description: >
4   OpenStack Nova base service. Shared for all Nova services.
5
6 parameters:
7   ServiceNetMap:
8     default: {}
9     description: Mapping of service_name -> network name. Typically set
10                  via parameter_defaults in the resource registry.  This
11                  mapping overrides those in ServiceNetMapDefaults.
12     type: json
13   DefaultPasswords:
14     default: {}
15     type: json
16   RoleName:
17     default: ''
18     description: Role name on which the service is applied
19     type: string
20   RoleParameters:
21     default: {}
22     description: Parameters specific to the role
23     type: json
24   EndpointMap:
25     default: {}
26     description: Mapping of service endpoint -> protocol. Typically set
27                  via parameter_defaults in the resource registry.
28     type: json
29   KeystoneRegion:
30     type: string
31     default: 'regionOne'
32     description: Keystone region for endpoint
33   NovaPassword:
34     description: The password for the nova service and db account, used by nova-api.
35     type: string
36     hidden: true
37   NeutronPassword:
38     description: The password for the neutron service and db account, used by neutron agents.
39     type: string
40     hidden: true
41   NovaOVSBridge:
42     default: 'br-int'
43     description: Name of integration bridge used by Open vSwitch
44     type: string
45   RabbitPassword:
46     description: The password for RabbitMQ
47     type: string
48     hidden: true
49   RabbitUserName:
50     default: guest
51     description: The username for RabbitMQ
52     type: string
53   RabbitClientUseSSL:
54     default: false
55     description: >
56         Rabbit client subscriber parameter to specify
57         an SSL connection to the RabbitMQ host.
58     type: string
59   RabbitClientPort:
60     default: 5672
61     description: Set rabbit subscriber port, change this if using SSL
62     type: number
63   DatabaseSyncTimeout:
64     default: 300
65     description: DB Sync Timeout default
66     type: number
67   Debug:
68     type: string
69     default: ''
70     description: Set to True to enable debugging on all services.
71   EnableConfigPurge:
72     type: boolean
73     default: false
74     description: >
75         Remove configuration that is not generated by TripleO. Used to avoid
76         configuration remnants after upgrades.
77   NovaIPv6:
78     default: false
79     description: Enable IPv6 features in Nova
80     type: boolean
81   UpgradeLevelNovaCompute:
82     type: string
83     description: Nova Compute upgrade level
84     default: ''
85   NovaCronArchiveDeleteRowsMinute:
86     type: string
87     description: >
88         Cron to move deleted instances to another table - Minute
89     default: '1'
90   NovaCronArchiveDeleteRowsHour:
91     type: string
92     description: >
93         Cron to move deleted instances to another table - Hour
94     default: '0'
95   NovaCronArchiveDeleteRowsMonthday:
96     type: string
97     description: >
98         Cron to move deleted instances to another table - Month Day
99     default: '*'
100   NovaCronArchiveDeleteRowsMonth:
101     type: string
102     description: >
103         Cron to move deleted instances to another table - Month
104     default: '*'
105   NovaCronArchiveDeleteRowsWeekday:
106     type: string
107     description: >
108         Cron to move deleted instances to another table - Week Day
109     default: '*'
110   NovaCronArchiveDeleteRowsMaxRows:
111     type: string
112     description: >
113         Cron to move deleted instances to another table - Max Rows
114     default: '100'
115   NovaCronArchiveDeleteRowsUser:
116     type: string
117     description: >
118         Cron to move deleted instances to another table - User
119     default: 'nova'
120   NovaCronArchiveDeleteRowsDestination:
121     type: string
122     description: >
123         Cron to move deleted instances to another table - Log destination
124     default: '/var/log/nova/nova-rowsflush.log'
125   NovaCronArchiveDeleteRowsUntilComplete:
126     type: boolean
127     description: >
128         Cron to move deleted instances to another table - Until complete
129     default: false
130   NovaPlacementAPIInterface:
131     type: string
132     description: >
133         Endpoint interface to be used for the placement API.
134     default: 'internal'
135
136 conditions:
137
138   compute_upgrade_level_empty: {equals : [{get_param: UpgradeLevelNovaCompute}, '']}
139
140 outputs:
141   role_data:
142     description: Role data for the Nova base service.
143     value:
144       service_name: nova_base
145       config_settings:
146         map_merge:
147         - nova::rabbit_password: {get_param: RabbitPassword}
148           nova::rabbit_userid: {get_param: RabbitUserName}
149           nova::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
150           nova::rabbit_port: {get_param: RabbitClientPort}
151           nova::placement::project_name: 'service'
152           nova::placement::password: {get_param: NovaPassword}
153           nova::placement::auth_url: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix]}
154           nova::placement::os_region_name: {get_param: KeystoneRegion}
155           nova::placement::os_interface: {get_param: NovaPlacementAPIInterface}
156           nova::database_connection:
157             make_url:
158               scheme: {get_param: [EndpointMap, MysqlInternal, protocol]}
159               username: nova
160               password: {get_param: NovaPassword}
161               host: {get_param: [EndpointMap, MysqlInternal, host]}
162               path: /nova
163               query:
164                 read_default_file: /etc/my.cnf.d/tripleo.cnf
165                 read_default_group: tripleo
166           nova::cell0_database_connection:
167             make_url:
168               scheme: {get_param: [EndpointMap, MysqlInternal, protocol]}
169               username: nova
170               password: {get_param: NovaPassword}
171               host: {get_param: [EndpointMap, MysqlInternal, host]}
172               path: /nova_cell0
173               query:
174                 read_default_file: /etc/my.cnf.d/tripleo.cnf
175                 read_default_group: tripleo
176           nova::api_database_connection:
177             make_url:
178               scheme: {get_param: [EndpointMap, MysqlInternal, protocol]}
179               username: nova_api
180               password: {get_param: NovaPassword}
181               host: {get_param: [EndpointMap, MysqlInternal, host]}
182               path: /nova_api
183               query:
184                 read_default_file: /etc/my.cnf.d/tripleo.cnf
185                 read_default_group: tripleo
186           nova::placement_database_connection:
187             make_url:
188               scheme: {get_param: [EndpointMap, MysqlInternal, protocol]}
189               username: nova_placement
190               password: {get_param: NovaPassword}
191               host: {get_param: [EndpointMap, MysqlInternal, host]}
192               path: /nova_placement
193               query:
194                 read_default_file: /etc/my.cnf.d/tripleo.cnf
195                 read_default_group: tripleo
196           nova::debug: {get_param: Debug}
197           nova::purge_config: {get_param: EnableConfigPurge}
198           nova::network::neutron::neutron_project_name: 'service'
199           nova::network::neutron::neutron_username: 'neutron'
200           nova::network::neutron::neutron_region_name: {get_param: KeystoneRegion}
201           nova::network::neutron::dhcp_domain: ''
202           nova::network::neutron::neutron_password: {get_param: NeutronPassword}
203           nova::network::neutron::neutron_url: {get_param: [EndpointMap, NeutronInternal, uri]}
204           nova::network::neutron::neutron_auth_url: {get_param: [EndpointMap, KeystoneV3Admin, uri]}
205           nova::rabbit_heartbeat_timeout_threshold: 60
206           nova::cinder_catalog_info: 'volumev2:cinderv2:internalURL'
207           nova::host: '%{::fqdn}'
208           nova::notify_on_state_change: 'vm_and_task_state'
209           nova::notification_driver: messagingv2
210           nova::network::neutron::neutron_auth_type: 'v3password'
211           nova::db::database_db_max_retries: -1
212           nova::db::database_max_retries: -1
213           nova::db::sync::db_sync_timeout: {get_param: DatabaseSyncTimeout}
214           nova::db::sync_api::db_sync_timeout: {get_param: DatabaseSyncTimeout}
215           nova::glance_api_servers: {get_param: [EndpointMap, GlanceInternal, uri]}
216           nova::use_ipv6: {get_param: NovaIPv6}
217           nova::network::neutron::neutron_ovs_bridge: {get_param: NovaOVSBridge}
218           nova::cron::archive_deleted_rows::minute: {get_param: NovaCronArchiveDeleteRowsMinute}
219           nova::cron::archive_deleted_rows::hour: {get_param: NovaCronArchiveDeleteRowsHour}
220           nova::cron::archive_deleted_rows::monthday: {get_param: NovaCronArchiveDeleteRowsMonthday}
221           nova::cron::archive_deleted_rows::month: {get_param: NovaCronArchiveDeleteRowsMonth}
222           nova::cron::archive_deleted_rows::weekday: {get_param: NovaCronArchiveDeleteRowsWeekday}
223           nova::cron::archive_deleted_rows::max_rows: {get_param: NovaCronArchiveDeleteRowsMaxRows}
224           nova::cron::archive_deleted_rows::user: {get_param: NovaCronArchiveDeleteRowsUser}
225           nova::cron::archive_deleted_rows::destination: {get_param: NovaCronArchiveDeleteRowsDestination}
226           nova::cron::archive_deleted_rows::until_complete: {get_param: NovaCronArchiveDeleteRowsUntilComplete}
227         -
228           if:
229           - compute_upgrade_level_empty
230           - {}
231           - nova::upgrade_level_compute: {get_param: UpgradeLevelNovaCompute}
232       service_config_settings:
233         mysql:
234           # NOTE(aschultz): this should be configurable if/when we support more
235           # complex cell v2 configurations. For now, this is the default cell
236           # created for the cell v2 configuration
237           nova::db::mysql_api::setup_cell0: true
238           nova::rabbit_password: {get_param: RabbitPassword}
239           nova::rabbit_userid: {get_param: RabbitUserName}
240           nova::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
241           nova::rabbit_port: {get_param: RabbitClientPort}