Merge "[baremetal] cleanup: Parameterize VCP hostnames"
[fuel.git] / mcp / reclass / classes / cluster / baremetal-mcp-pike-common-ha / openstack_control.yml
1 ##############################################################################
2 # Copyright (c) 2017 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 ---
9 classes:
10   - system.ceilometer.client
11   - system.memcached.server.single
12   - system.keystone.server.cluster
13   - system.keystone.server.wsgi
14   - system.glance.control.cluster
15   - system.nova.control.cluster
16   - system.cinder.control.cluster
17   - system.cinder.control.backend.lvm
18   - system.heat.server.cluster
19   - system.designate.server.cluster
20   - system.designate.server.backend.bind
21   - system.bind.server.single
22   - system.haproxy.proxy.listen.openstack.nova-placement
23   - system.haproxy.proxy.listen.openstack.glare
24   - system.glusterfs.client.cluster
25   - system.glusterfs.client.volume.glance
26   - system.glusterfs.client.volume.keystone
27 parameters:
28   _param:
29     keepalived_vip_interface: ${_param:single_nic}
30     keepalived_vip_virtual_router_id: 50
31     cluster_vip_address: ${_param:openstack_control_address}
32     cluster_local_address: ${_param:single_address}
33     cluster_node01_hostname: ${_param:openstack_control_node01_hostname}
34     cluster_node01_address: ${_param:openstack_control_node01_address}
35     cluster_node02_hostname: ${_param:openstack_control_node02_hostname}
36     cluster_node02_address: ${_param:openstack_control_node02_address}
37     cluster_node03_hostname: ${_param:openstack_control_node03_hostname}
38     cluster_node03_address: ${_param:openstack_control_node03_address}
39     nova_vncproxy_url: https://${_param:cluster_public_host}:6080
40     dhcp_nic: ${_param:opnfv_vcp_vm_primary_interface}
41     single_nic: ${_param:opnfv_vcp_vm_secondary_interface}
42   linux:
43     network:
44       interface:
45         dhcp: ${_param:linux_dhcp_interface}
46         single: ${_param:linux_single_interface}
47   nova:
48     controller:
49       pkgs:
50         - nova-api
51         - nova-conductor
52         - nova-consoleauth
53         - nova-novncproxy
54         - nova-scheduler
55         - python-novaclient
56   neutron:
57     server:
58       vlan_aware_vms: true
59   keystone:
60     server:
61       cacert: /etc/ssl/certs/mcp_os_cacert
62   bind:
63     server:
64       control:
65         mgmt:
66           enabled: true
67           bind:
68             address: ${_param:single_address}
69             port: 953
70           allow:
71             - ${_param:openstack_control_node01_address}
72             - ${_param:openstack_control_node02_address}
73             - ${_param:openstack_control_node03_address}
74           keys:
75             - designate
76   designate:
77     server:
78       pools:
79         default:
80           description: 'test pool'
81           targets:
82             default:
83               description: 'test target1'
84             default1:
85               type: ${_param:designate_pool_target_type}
86               description: 'test target2'
87               masters: ${_param:designate_pool_target_masters}
88               options:
89                 host: ${_param:openstack_control_node02_address}
90                 port: 53
91                 rndc_host: ${_param:openstack_control_node02_address}
92                 rndc_port: 953
93                 rndc_key_file: /etc/designate/rndc.key
94             default2:
95               type: ${_param:designate_pool_target_type}
96               description: 'test target3'
97               masters: ${_param:designate_pool_target_masters}
98               options:
99                 host: ${_param:openstack_control_node03_address}
100                 port: 53
101                 rndc_host: ${_param:openstack_control_node03_address}
102                 rndc_port: 953
103                 rndc_key_file: /etc/designate/rndc.key