Merge "[repos] Replace keyserver accesses with pillar GPG" into stable/gambia
[fuel.git] / mcp / reclass / classes / cluster / mcp-common-noha / openstack_init.yml.j2
1 ##############################################################################
2 # Copyright (c) 2018 Mirantis Inc., Enea AB and others.
3 # All rights reserved. This program and the accompanying materials
4 # are made available under the terms of the Apache License, Version 2.0
5 # which accompanies this distribution, and is available at
6 # http://www.apache.org/licenses/LICENSE-2.0
7 ##############################################################################
8 {%- import 'net_map.j2' as nm with context %}
9 ---
10 classes:
11   - cluster.all-mcp-arch-common.uca_repo
12 parameters:
13   _param:
14     openstack_region: RegionOne
15     admin_email: root@localhost
16     cluster_public_protocol: http
17     cluster_public_host: ${_param:opnfv_openstack_control_node01_external_address}
18     neutron_public_protocol: http
19     neutron_control_dvr: 'False'
20     neutron_l3_ha: 'False'
21     neutron_global_physnet_mtu: 1500
22     neutron_external_mtu: 1500
23     neutron_gateway_dvr: 'False'
24     neutron_gateway_agent_mode: legacy
25     neutron_compute_dvr: 'False'
26     neutron_compute_agent_mode: legacy
27     neutron_compute_external_access: 'False'
28     galera_server_cluster_name: openstack_cluster
29     galera_server_maintenance_password: opnfv_secret
30     galera_server_admin_password: opnfv_secret
31     cluster_vip_address: ${_param:cluster_public_host}
32     cluster_local_address: ${_param:openstack_control_address}
33     cluster_node01_hostname: ctl01
34     cluster_node01_address: ${_param:opnfv_openstack_control_node01_address}
35     cluster_node02_hostname: ctl02
36     cluster_node02_address: ${_param:opnfv_openstack_control_node02_address}
37     cluster_node03_hostname: ctl03
38     cluster_node03_address: ${_param:opnfv_openstack_control_node03_address}
39     rabbitmq_secret_key: opnfv_secret
40     rabbitmq_admin_password: opnfv_secret
41     rabbitmq_openstack_password: opnfv_secret
42     rabbitmq_cold_password: opnfv_secret
43     glance_version: ${_param:openstack_version}
44     glance_service_host: ${_param:cluster_local_address}
45     keystone_version: ${_param:openstack_version}
46     keystone_service_host: ${_param:cluster_local_address}
47     heat_version: ${_param:openstack_version}
48     heat_service_host: ${_param:cluster_local_address}
49     heat_domain_admin_password: opnfv_secret
50     ceilometer_version: ${_param:openstack_version}
51     ceilometer_service_host: ${_param:cluster_local_address}
52     ceilometer_database_host: ${_param:cluster_local_address}
53     cinder_version: ${_param:openstack_version}
54     cinder_service_host: ${_param:cluster_local_address}
55     nova_version: ${_param:openstack_version}
56     nova_service_host: ${_param:cluster_local_address}
57     nova_vncproxy_url: http://${_param:cluster_vip_address}:8060
58     neutron_version: ${_param:openstack_version}
59     neutron_service_host: ${_param:cluster_local_address}
60     mysql_admin_user: root
61     mysql_admin_password: opnfv_secret
62     mysql_cinder_password: opnfv_secret
63     mysql_ceilometer_password: opnfv_secret
64     mysql_glance_password: opnfv_secret
65     mysql_grafana_password: opnfv_secret
66     mysql_heat_password: opnfv_secret
67     mysql_keystone_password: opnfv_secret
68     mysql_neutron_password: opnfv_secret
69     mysql_nova_password: opnfv_secret
70     mysql_aodh_password: opnfv_secret
71     keystone_service_token: opnfv_secret
72     keystone_admin_password: opnfv_secret
73     keystone_ceilometer_password: opnfv_secret
74     keystone_cinder_password: opnfv_secret
75     keystone_glance_password: opnfv_secret
76     keystone_heat_password: opnfv_secret
77     keystone_keystone_password: opnfv_secret
78     keystone_neutron_password: opnfv_secret
79     keystone_nova_password: opnfv_secret
80     ceilometer_secret_key: opnfv_secret
81     metadata_password: opnfv_secret
82     horizon_version: ${_param:openstack_version}
83     horizon_secret_key: opaesee8Que2yahJoh9fo0eefo1Aeyo6ahyei8zeiboh3aeth5loth7ieNa5xi5e
84     horizon_identity_host: ${_param:cluster_vip_address}
85     horizon_identity_encryption: none
86     horizon_identity_version: 3
87
88     barbican_version: ${_param:openstack_version}
89     barbican_service_host: ${_param:cluster_local_address}
90     apache_barbican_api_address: ${_param:single_address}
91     mysql_barbican_password: opnfv_secret
92     keystone_barbican_password: opnfv_secret
93     barbican_simple_crypto_kek: "YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXoxMjM0NTY="
94     barbican_integration_enabled: true
95
96 {%- if '-sfc-' in conf.MCP_DEPLOY_SCENARIO %}
97     tacker_service_host: ${_param:cluster_local_address}
98     keystone_tacker_password: opnfv_secret
99     mysql_tacker_password: opnfv_secret
100 {%- endif %}
101
102     aodh_version: ${_param:openstack_version}
103     keystone_aodh_password: opnfv_secret
104     aodh_service_host: ${_param:cluster_local_address}
105     gnocchi_version: 4.2
106     gnocchi_service_host: ${_param:cluster_local_address}
107     mysql_gnocchi_password: opnfv_secret
108     keystone_gnocchi_password: opnfv_secret
109     panko_version: ${_param:openstack_version}
110     panko_service_host: ${_param:cluster_local_address}
111     mysql_panko_password: opnfv_secret
112     keystone_panko_password: opnfv_secret
113     ceilometer_agent_default_polling_interval: 180
114     ceilometer_agent_default_polling_meters:
115       - "*"
116   linux:
117     system:
118       kernel:
119         sysctl:
120           net.ipv4.tcp_congestion_control: yeah
121           net.ipv4.tcp_slow_start_after_idle: 0
122           net.ipv4.tcp_fin_timeout: 30
123       repo:
124         uca:
125           pin:
126             - pin: 'release o=Canonical'
127               priority: 1200
128               package: 'openvswitch* python-openvswitch ovn* dpdk* libdpdk*'
129     network:
130       host:
131         ctl:
132           address: ${_param:openstack_control_address}
133           names:
134             - ctl
135             - ctl.${_param:cluster_domain}
136         ctl01:
137           address: ${_param:openstack_control_node01_address}
138           names:
139             - ctl01
140             - ctl01.${_param:cluster_domain}
141         gtw01:
142           address: ${_param:openstack_gateway_address}
143           names:
144             - gtw01
145             - gtw01.${_param:cluster_domain}
146 {#- For compute nodes, expand values in-place, bypassing reclass param expansion #}
147 {%- for cmp in range(1, nm.cmp_nodes + 1) %}
148   {%- set h = 'cmp%03d' | format(cmp) %}
149   {%- set mgmt = nm.net_mgmt_hosts | length + nm.start_ip[nm.net_mgmt] + loop.index %}
150         {{ h }}:
151           address: {{ nm.net_mgmt | ipnet_hostaddr(mgmt) }}
152           names:
153             - {{ h }}
154             - {{ h }}.${_param:cluster_domain}
155 {%- endfor %}