Merge "Remove redundant CLI arguments for neutron-db-manage"
[apex-tripleo-heat-templates.git] / puppet / services / nova-base.yaml
1 heat_template_version: ocata
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   EndpointMap:
17     default: {}
18     description: Mapping of service endpoint -> protocol. Typically set
19                  via parameter_defaults in the resource registry.
20     type: json
21   NovaPassword:
22     description: The password for the nova service and db account, used by nova-api.
23     type: string
24     hidden: true
25   NeutronPassword:
26     description: The password for the neutron service and db account, used by neutron agents.
27     type: string
28     hidden: true
29   NovaOVSBridge:
30     default: 'br-int'
31     description: Name of integration bridge used by Open vSwitch
32     type: string
33   RabbitPassword:
34     description: The password for RabbitMQ
35     type: string
36     hidden: true
37   RabbitUserName:
38     default: guest
39     description: The username for RabbitMQ
40     type: string
41   RabbitClientUseSSL:
42     default: false
43     description: >
44         Rabbit client subscriber parameter to specify
45         an SSL connection to the RabbitMQ host.
46     type: string
47   RabbitClientPort:
48     default: 5672
49     description: Set rabbit subscriber port, change this if using SSL
50     type: number
51   Debug:
52     type: string
53     default: ''
54     description: Set to True to enable debugging on all services.
55   EnableConfigPurge:
56     type: boolean
57     default: true
58     description: >
59         Remove configuration that is not generated by TripleO. Setting
60         to false may result in configuration remnants after updates/upgrades.
61   NovaIPv6:
62     default: false
63     description: Enable IPv6 features in Nova
64     type: boolean
65   UpgradeLevelNovaCompute:
66     type: string
67     description: Nova Compute upgrade level
68     default: ''
69 conditions:
70
71   compute_upgrade_level_empty: {equals : [{get_param: UpgradeLevelNovaCompute}, '']}
72
73 outputs:
74   role_data:
75     description: Role data for the Nova base service.
76     value:
77       service_name: nova_base
78       config_settings:
79         map_merge:
80         - nova::rabbit_password: {get_param: RabbitPassword}
81           nova::rabbit_userid: {get_param: RabbitUserName}
82           nova::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
83           nova::rabbit_port: {get_param: RabbitClientPort}
84           nova::database_connection:
85             list_join:
86               - ''
87               - - {get_param: [EndpointMap, MysqlInternal, protocol]}
88                 - '://nova:'
89                 - {get_param: NovaPassword}
90                 - '@'
91                 - {get_param: [EndpointMap, MysqlInternal, host]}
92                 - '/nova'
93                 - '?bind_address='
94                 - "%{hiera('tripleo::profile::base::database::mysql::client_bind_address')}"
95           nova::api_database_connection:
96             list_join:
97               - ''
98               - - {get_param: [EndpointMap, MysqlInternal, protocol]}
99                 - '://nova_api:'
100                 - {get_param: NovaPassword}
101                 - '@'
102                 - {get_param: [EndpointMap, MysqlInternal, host]}
103                 - '/nova_api'
104                 - '?bind_address='
105                 - "%{hiera('tripleo::profile::base::database::mysql::client_bind_address')}"
106           nova::placement_database_connection:
107             list_join:
108               - ''
109               - - {get_param: [EndpointMap, MysqlInternal, protocol]}
110                 - '://nova_placement:'
111                 - {get_param: NovaPassword}
112                 - '@'
113                 - {get_param: [EndpointMap, MysqlInternal, host]}
114                 - '/nova_placement'
115                 - '?bind_address='
116                 - "%{hiera('tripleo::profile::base::database::mysql::client_bind_address')}"
117           nova::debug: {get_param: Debug}
118           nova::purge_config: {get_param: EnableConfigPurge}
119           nova::network::neutron::neutron_project_name: 'service'
120           nova::network::neutron::neutron_username: 'neutron'
121           nova::network::neutron::dhcp_domain: ''
122           nova::network::neutron::neutron_password: {get_param: NeutronPassword}
123           nova::network::neutron::neutron_url: {get_param: [EndpointMap, NeutronInternal, uri]}
124           nova::network::neutron::neutron_auth_url: {get_param: [EndpointMap, KeystoneV3Admin, uri]}
125           nova::rabbit_heartbeat_timeout_threshold: 60
126           nova::cinder_catalog_info: 'volumev2:cinderv2:internalURL'
127           nova::host: '%{::fqdn}'
128           nova::notify_on_state_change: 'vm_and_task_state'
129           nova::notification_driver: messagingv2
130           nova::network::neutron::neutron_auth_type: 'v3password'
131           nova::db::database_db_max_retries: -1
132           nova::db::database_max_retries: -1
133           nova::glance_api_servers: {get_param: [EndpointMap, GlanceInternal, uri]}
134           nova::use_ipv6: {get_param: NovaIPv6}
135           nova::network::neutron::neutron_ovs_bridge: {get_param: NovaOVSBridge}
136         - 
137           if:
138           - compute_upgrade_level_empty
139           - {}
140           - nova::upgrade_level_compute: {get_param: UpgradeLevelNovaCompute}
141       service_config_settings:
142         mysql:
143           nova::rabbit_password: {get_param: RabbitPassword}
144           nova::rabbit_userid: {get_param: RabbitUserName}
145           nova::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
146           nova::rabbit_port: {get_param: RabbitClientPort}