docker build: Update saltstack repo URL, locale
[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     glance_version: ${_param:openstack_version}
36     glance_service_host: ${_param:cluster_local_address}
37     keystone_version: ${_param:openstack_version}
38     keystone_service_host: ${_param:cluster_local_address}
39     heat_version: ${_param:openstack_version}
40     heat_service_host: ${_param:cluster_local_address}
41     ceilometer_version: ${_param:openstack_version}
42     ceilometer_service_host: ${_param:cluster_local_address}
43     ceilometer_database_host: ${_param:cluster_local_address}
44     cinder_version: ${_param:openstack_version}
45     cinder_service_host: ${_param:cluster_local_address}
46     nova_version: ${_param:openstack_version}
47     nova_service_host: ${_param:cluster_local_address}
48     nova_vncproxy_url: http://${_param:cluster_vip_address}:8060
49     neutron_version: ${_param:openstack_version}
50     neutron_service_host: ${_param:cluster_local_address}
51     mysql_admin_user: root
52     horizon_version: ${_param:openstack_version}
53     horizon_secret_key: opaesee8Que2yahJoh9fo0eefo1Aeyo6ahyei8zeiboh3aeth5loth7ieNa5xi5e
54     horizon_identity_host: ${_param:cluster_vip_address}
55     horizon_identity_encryption: none
56     horizon_identity_version: 3
57     horizon_public_protocol: http
58     horizon_public_port: 80
59     apache_mods_status_enabled: false
60     nginx_server_site_nginx_proxy_openstack_web_enabled: true
61     nginx_proxy_ssl:
62       enabled: false
63
64     barbican_version: ${_param:openstack_version}
65     barbican_service_host: ${_param:cluster_local_address}
66     apache_barbican_api_address: ${_param:single_address}
67     barbican_simple_crypto_kek: "YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXoxMjM0NTY="
68     barbican_integration_enabled: true
69
70 {%- if '-sfc-' in conf.MCP_DEPLOY_SCENARIO %}
71     tacker_service_host: ${_param:cluster_local_address}
72 {%- endif %}
73
74     aodh_version: ${_param:openstack_version}
75     aodh_service_host: ${_param:cluster_local_address}
76     gnocchi_version: 4.3
77     gnocchi_service_host: ${_param:cluster_local_address}
78     panko_version: ${_param:openstack_version}
79     panko_service_host: ${_param:cluster_local_address}
80     ceilometer_agent_default_polling_interval: 180
81     ceilometer_agent_default_polling_meters:
82       - "*"
83   linux:
84     system:
85       kernel:
86         sysctl:
87           net.ipv4.tcp_congestion_control: yeah
88           net.ipv4.tcp_slow_start_after_idle: 0
89           net.ipv4.tcp_fin_timeout: 30
90 {%- if 'aarch64' in nm.cluster.arch %}
91       repo:
92         armband_3:  # Should be in sync with the repo config generated via curtin/MaaS
93           source: "deb http://linux.enea.com/mcp-repos/${_param:armband_repo_version}/xenial ${_param:armband_repo_version}-armband main"
94           key: ${_param:armband_key}
95           pinning:
96             15:
97               enabled: true
98               pin: 'release a=${_param:armband_repo_version}-armband'
99               priority: 15
100               package: '*'
101             1200:
102               enabled: true
103               pin: 'release a=${_param:armband_repo_version}-armband'
104               priority: 1200
105               package: 'qemu-efi'
106 {%- endif %}
107     network:
108       host:
109         ctl:
110           address: ${_param:openstack_control_address}
111           names:
112             - ctl
113             - ctl.${_param:cluster_domain}
114         ctl01:
115           address: ${_param:openstack_control_node01_address}
116           names:
117             - ctl01
118             - ctl01.${_param:cluster_domain}
119         gtw01:
120           address: ${_param:openstack_gateway_address}
121           names:
122             - gtw01
123             - gtw01.${_param:cluster_domain}
124 {#- For compute nodes, expand values in-place, bypassing reclass param expansion #}
125 {%- for cmp in range(1, nm.cmp_nodes + 1) %}
126   {%- set h = 'cmp%03d' | format(cmp) %}
127   {%- set mgmt = nm.net_mgmt_hosts | length + nm.start_ip[nm.net_mgmt] + loop.index %}
128         {{ h }}:
129           address: {{ nm.net_mgmt | ipnet_hostaddr(mgmt) }}
130           names:
131             - {{ h }}
132             - {{ h }}.${_param:cluster_domain}
133 {%- endfor %}