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