Merge "[cfg01] salt-master: Sync cfg from reclass"
[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 parameters:
11   _param:
12     openstack_region: RegionOne
13     admin_email: root@localhost
14     cluster_public_protocol: http
15     cluster_public_host: ${_param:opnfv_openstack_control_node01_external_address}
16     neutron_public_protocol: http
17     neutron_control_dvr: 'False'
18     neutron_l3_ha: 'False'
19     neutron_global_physnet_mtu: 1500
20     neutron_external_mtu: 1500
21     neutron_gateway_dvr: 'False'
22     neutron_gateway_agent_mode: legacy
23     neutron_compute_dvr: 'False'
24     neutron_compute_agent_mode: legacy
25     neutron_compute_external_access: 'False'
26     galera_server_cluster_name: openstack_cluster
27     cluster_vip_address: ${_param:cluster_public_host}
28     cluster_local_address: ${_param:openstack_control_address}
29     cluster_node01_hostname: ctl01
30     cluster_node01_address: ${_param:opnfv_openstack_control_node01_address}
31     cluster_node02_hostname: ctl02
32     cluster_node02_address: ${_param:opnfv_openstack_control_node02_address}
33     cluster_node03_hostname: ctl03
34     cluster_node03_address: ${_param:opnfv_openstack_control_node03_address}
35     armband_repo_version: 'queens'  # ${_param:openstack_version}
36     glance_version: ${_param:openstack_version}
37     glance_service_host: ${_param:cluster_local_address}
38     keystone_version: ${_param:openstack_version}
39     keystone_service_host: ${_param:cluster_local_address}
40     heat_version: ${_param:openstack_version}
41     heat_service_host: ${_param:cluster_local_address}
42     ceilometer_version: ${_param:openstack_version}
43     ceilometer_service_host: ${_param:cluster_local_address}
44     ceilometer_database_host: ${_param:cluster_local_address}
45     cinder_version: ${_param:openstack_version}
46     cinder_service_host: ${_param:cluster_local_address}
47     nova_version: ${_param:openstack_version}
48     nova_service_host: ${_param:cluster_local_address}
49     nova_vncproxy_url: http://${_param:cluster_vip_address}:8060
50     neutron_version: ${_param:openstack_version}
51     neutron_service_host: ${_param:cluster_local_address}
52     mysql_admin_user: root
53     horizon_version: ${_param:openstack_version}
54     horizon_secret_key: opaesee8Que2yahJoh9fo0eefo1Aeyo6ahyei8zeiboh3aeth5loth7ieNa5xi5e
55     horizon_identity_host: ${_param:cluster_vip_address}
56     horizon_identity_encryption: none
57     horizon_identity_version: 3
58
59     barbican_version: ${_param:openstack_version}
60     barbican_service_host: ${_param:cluster_local_address}
61     apache_barbican_api_address: ${_param:single_address}
62     barbican_simple_crypto_kek: "YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXoxMjM0NTY="
63     barbican_integration_enabled: true
64
65 {%- if '-sfc-' in conf.MCP_DEPLOY_SCENARIO %}
66     tacker_service_host: ${_param:cluster_local_address}
67 {%- endif %}
68
69     aodh_version: ${_param:openstack_version}
70     aodh_service_host: ${_param:cluster_local_address}
71     gnocchi_version: 4.2
72     gnocchi_service_host: ${_param:cluster_local_address}
73     panko_version: ${_param:openstack_version}
74     panko_service_host: ${_param:cluster_local_address}
75     ceilometer_agent_default_polling_interval: 180
76     ceilometer_agent_default_polling_meters:
77       - "*"
78   linux:
79     system:
80       kernel:
81         sysctl:
82           net.ipv4.tcp_congestion_control: yeah
83           net.ipv4.tcp_slow_start_after_idle: 0
84           net.ipv4.tcp_fin_timeout: 30
85 {%- if 'aarch64' in nm.cluster.arch %}
86       repo:
87         armband_3:  # Should be in sync with the repo config generated via curtin/MaaS
88           source: "deb http://linux.enea.com/mcp-repos/${_param:armband_repo_version}/${_param:linux_system_codename} ${_param:armband_repo_version}-armband main"
89           key: ${_param:armband_key}
90           pin:
91             - pin: 'release a=${_param:armband_repo_version}-armband'
92               priority: 1201
93               package: '*'
94 {%- endif %}
95     network:
96       host:
97         ctl:
98           address: ${_param:openstack_control_address}
99           names:
100             - ctl
101             - ctl.${_param:cluster_domain}
102         ctl01:
103           address: ${_param:openstack_control_node01_address}
104           names:
105             - ctl01
106             - ctl01.${_param:cluster_domain}
107         gtw01:
108           address: ${_param:openstack_gateway_address}
109           names:
110             - gtw01
111             - gtw01.${_param:cluster_domain}
112 {#- For compute nodes, expand values in-place, bypassing reclass param expansion #}
113 {%- for cmp in range(1, nm.cmp_nodes + 1) %}
114   {%- set h = 'cmp%03d' | format(cmp) %}
115   {%- set mgmt = nm.net_mgmt_hosts | length + nm.start_ip[nm.net_mgmt] + loop.index %}
116         {{ h }}:
117           address: {{ nm.net_mgmt | ipnet_hostaddr(mgmt) }}
118           names:
119             - {{ h }}
120             - {{ h }}.${_param:cluster_domain}
121 {%- endfor %}