[compass4nfv] Use jump remote_management params
[pharos.git] / config / installers / compass4nfv / os-odl_l3-nofeature-ha.yml.j2
1 ##############################################################################
2 # Copyright (c) 2018 HUAWEI TECHNOLOGIES CO.,LTD and others.
3 #
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9 ---
10 TYPE: baremetal
11 FLAVOR: cluster
12 POWER_TOOL: '{{ conf['jumphost']['remote_management']['type'] }}tool'  # expects string ipmitool
13
14 ipmiUser: {{ conf['jumphost']['remote_management']['user'] }}
15 ipmiPass: {{ conf['jumphost']['remote_management']['pass'] }}
16 ipmiVer: '{{ conf['jumphost']['remote_management']['versions'][0] }}'
17
18 odl_l3_agent: "Enable"
19
20 hosts:
21   - name: {{ conf['nodes'][0]['name'] }}
22     mac: '{{ conf['nodes'][0]['remote_management']['mac_address'] }}'  # this is the ipmi mac address
23     interfaces:
24       - eth1: '{{ conf['nodes'][0]['interfaces'][0]['mac_address'] }}'
25       - eth2: '{{ conf['nodes'][0]['interfaces'][1]['mac_address'] }}'
26       - eth3: '{{ conf['nodes'][0]['interfaces'][2]['mac_address'] }}'
27     ipmiIp: {{ conf['nodes'][0]['remote_management']['address'] }}
28     roles:
29       - controller
30       - ha
31       - odl
32       - ceph-adm
33       - ceph-mon
34
35   - name: {{ conf['nodes'][1]['name'] }}
36     mac: '{{ conf['nodes'][1]['remote_management']['mac_address'] }}'  # this is the ipmi mac address
37     interfaces:
38       - eth1: '{{ conf['nodes'][1]['interfaces'][0]['mac_address'] }}'
39       - eth2: '{{ conf['nodes'][1]['interfaces'][1]['mac_address'] }}'
40       - eth3: '{{ conf['nodes'][1]['interfaces'][2]['mac_address'] }}'
41     ipmiIp: {{ conf['nodes'][1]['remote_management']['address'] }}
42     roles:
43       - controller
44       - ha
45       - odl
46       - ceph-mon
47
48   - name: {{ conf['nodes'][2]['name'] }}
49     mac: '{{ conf['nodes'][2]['remote_management']['mac_address'] }}'  # this is the ipmi mac address
50     interfaces:
51       - eth1: '{{ conf['nodes'][2]['interfaces'][0]['mac_address'] }}'
52       - eth2: '{{ conf['nodes'][2]['interfaces'][1]['mac_address'] }}'
53       - eth3: '{{ conf['nodes'][2]['interfaces'][2]['mac_address'] }}'
54     ipmiIp: {{ conf['nodes'][2]['remote_management']['address'] }}
55     roles:
56       - controller
57       - ha
58       - odl
59       - ceph-mon
60
61   - name: {{ conf['nodes'][3]['name'] }}
62     mac: '{{ conf['nodes'][3]['remote_management']['mac_address'] }}'  # this is the ipmi mac address
63     interfaces:
64       - eth1: '{{ conf['nodes'][3]['interfaces'][0]['mac_address'] }}'
65       - eth2: '{{ conf['nodes'][3]['interfaces'][1]['mac_address'] }}'
66       - eth3: '{{ conf['nodes'][3]['interfaces'][2]['mac_address'] }}'
67     ipmiIp: {{ conf['nodes'][3]['remote_management']['address'] }}
68     roles:
69       - compute
70       - ceph-osd
71
72   - name: {{ conf['nodes'][4]['name'] }}
73     mac: '{{ conf['nodes'][4]['remote_management']['mac_address'] }}'  # this is the ipmi mac address
74     interfaces:
75       - eth1: '{{ conf['nodes'][4]['interfaces'][0]['mac_address'] }}'
76       - eth2: '{{ conf['nodes'][4]['interfaces'][1]['mac_address'] }}'
77       - eth3: '{{ conf['nodes'][4]['interfaces'][2]['mac_address'] }}'
78     ipmiIp: {{ conf['nodes'][4]['remote_management']['address'] }}
79     roles:
80       - compute
81       - ceph-osd