Merge "Remove deprecated hdp plugin and add ambari"
[apex-tripleo-heat-templates.git] / puppet / services / nova-base.yaml
1 heat_template_version: 2016-04-08
2
3 description: >
4   OpenStack Nova base service. Shared for all Nova services.
5
6 parameters:
7   EndpointMap:
8     default: {}
9     description: Mapping of service endpoint -> protocol. Typically set
10                  via parameter_defaults in the resource registry.
11     type: json
12   NovaPassword:
13     description: The password for the nova service and db account, used by nova-api.
14     type: string
15     hidden: true
16   NeutronPassword:
17     description: The password for the neutron service and db account, used by neutron agents.
18     type: string
19     hidden: true
20   RabbitPassword:
21     description: The password for RabbitMQ
22     type: string
23     hidden: true
24   RabbitUserName:
25     default: guest
26     description: The username for RabbitMQ
27     type: string
28   RabbitClientUseSSL:
29     default: false
30     description: >
31         Rabbit client subscriber parameter to specify
32         an SSL connection to the RabbitMQ host.
33     type: string
34   RabbitClientPort:
35     default: 5672
36     description: Set rabbit subscriber port, change this if using SSL
37     type: number
38   Debug:
39     type: string
40     default: ''
41     description: Set to True to enable debugging on all services.
42   EnableConfigPurge:
43     type: boolean
44     default: true
45     description: >
46         Remove configuration that is not generated by TripleO. Setting
47         to false may result in configuration remnants after updates/upgrades.
48
49 outputs:
50   role_data:
51     description: Role data for the Nova base service.
52     value:
53       service_name: nova_base
54       config_settings:
55         nova::rabbit_password: {get_param: RabbitPassword}
56         nova::rabbit_user: {get_param: RabbitUserName}
57         nova::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
58         nova::rabbit_port: {get_param: RabbitClientPort}
59         nova::database_connection:
60           list_join:
61             - ''
62             - - {get_param: [EndpointMap, MysqlInternal, protocol]}
63               - '://nova:'
64               - {get_param: NovaPassword}
65               - '@'
66               - {get_param: [EndpointMap, MysqlInternal, host]}
67               - '/nova'
68         nova::api_database_connection:
69           list_join:
70             - ''
71             - - {get_param: [EndpointMap, MysqlInternal, protocol]}
72               - '://nova_api:'
73               - {get_param: NovaPassword}
74               - '@'
75               - {get_param: [EndpointMap, MysqlInternal, host]}
76               - '/nova_api'
77         nova::db::mysql::password: {get_input: nova_password}
78         nova::db::mysql::user: nova
79         nova::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
80         nova::db::mysql::dbname: nova
81         nova::db::mysql::allowed_hosts:
82           - '%'
83           - "%{hiera('mysql_bind_host')}"
84         nova::db::mysql_api::password: {get_input: nova_password}
85         nova::db::mysql_api::user: nova_api
86         nova::db::mysql_api::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
87         nova::db::mysql_api::dbname: nova_api
88         nova::db::mysql_api::allowed_hosts:
89           - '%'
90           - "%{hiera('mysql_bind_host')}"
91         nova::debug: {get_param: Debug}
92         nova::purge_config: {get_param: EnableConfigPurge}
93         nova::network::neutron::neutron_project_name: 'service'
94         nova::network::neutron::neutron_username: 'neutron'
95         nova::network::neutron::dhcp_domain: ''
96         nova::network::neutron::neutron_password: {get_param: NeutronPassword}
97         nova::network::neutron::neutron_url: {get_param: [EndpointMap, NeutronInternal, uri]}
98         nova::network::neutron::neutron_auth_url: {get_param: [EndpointMap, KeystoneV3Admin, uri]}
99         nova::rabbit_heartbeat_timeout_threshold: 60
100         nova::cinder_catalog_info: 'volumev2:cinderv2:internalURL'
101         nova::host: '"%{::fqdn}"'    # NOTE: extra quoting is needed.
102         nova::notify_on_state_change: 'vm_and_task_state'
103         nova::notification_driver: messagingv2
104         nova::network::neutron::neutron_auth_type: 'v3password'
105         nova::db::mysql::user: nova
106         nova::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
107         nova::db::mysql::dbname: nova
108         nova::db::mysql::allowed_hosts:
109           - '%'
110           - "%{hiera('mysql_bind_host')}"
111         nova::db::mysql_api::user: nova_api
112         nova::db::mysql_api::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
113         nova::db::mysql_api::dbname: nova_api
114         nova::db::mysql_api::allowed_hosts:
115           - '%'
116           - "%{hiera('mysql_bind_host')}"
117         nova::db::database_db_max_retries: -1
118         nova::db::database_max_retries: -1