Merge "config/pod1.yaml: Typo fixes, add 3 new nodes" into stable/euphrates
[pharos.git] / config / installers / compass4nfv / os-odl_l2-nofeature-ha.yml.j2
1 ##############################################################################
2 # Copyright (c) 2017 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 ---
11 TYPE: baremetal
12 FLAVOR: cluster
13 POWER_TOOL: '{{ conf['jumphost']['remote_params']['type'] }}tool'  #expects string ipmitool
14
15 ipmiUser: {{ conf['jumphost']['remote_params']['user'] }}
16 ipmiPass: {{ conf['jumphost']['remote_params']['pass'] }}
17 ipmiVer: '{{ conf['jumphost']['remote_params']['versions'][0] }}'
18
19 hosts:
20   - name: {{ conf['nodes'][0]['name'] }}
21     mac: '{{ conf['nodes'][0]['remote_management']['mac_address'] }}' #is this the ipmi mac address?
22     interfaces:
23       - eth1: '{{ conf['nodes'][0]['interfaces'][0]['mac_address'] }}'
24       - eth2: '{{ conf['nodes'][0]['interfaces'][1]['mac_address'] }}'
25       - eth3: '{{ conf['nodes'][0]['interfaces'][2]['mac_address'] }}'
26     ipmiIp: {{ conf['nodes'][0]['remote_management']['address'] }}
27     roles:
28       - controller
29       - ha
30       - odl
31       - ceph-adm
32       - ceph-mon
33
34   - name: {{ conf['nodes'][1]['name'] }}
35     mac: '{{ conf['nodes'][1]['remote_management']['mac_address'] }}' #is this the ipmi mac address?
36     interfaces:
37       - eth1: '{{ conf['nodes'][1]['interfaces'][0]['mac_address'] }}'
38       - eth2: '{{ conf['nodes'][1]['interfaces'][1]['mac_address'] }}'
39       - eth3: '{{ conf['nodes'][1]['interfaces'][2]['mac_address'] }}'
40     ipmiIp: {{ conf['nodes'][1]['remote_management']['address'] }}
41     roles:
42       - controller
43       - ha
44       - odl
45       - ceph-mon
46
47   - name: {{ conf['nodes'][2]['name'] }}
48     mac: '{{ conf['nodes'][2]['remote_management']['mac_address'] }}' #is this the ipmi mac address?
49     interfaces:
50       - eth1: '{{ conf['nodes'][2]['interfaces'][0]['mac_address'] }}'
51       - eth2: '{{ conf['nodes'][2]['interfaces'][1]['mac_address'] }}'
52       - eth3: '{{ conf['nodes'][2]['interfaces'][2]['mac_address'] }}'
53     ipmiIp: {{ conf['nodes'][2]['remote_management']['address'] }}
54     roles:
55       - controller
56       - ha
57       - odl
58       - ceph-mon
59
60   - name: {{ conf['nodes'][3]['name'] }}
61     mac: '{{ conf['nodes'][3]['remote_management']['mac_address'] }}' #is this the ipmi mac address?
62     interfaces:
63       - eth1: '{{ conf['nodes'][3]['interfaces'][0]['mac_address'] }}'
64       - eth2: '{{ conf['nodes'][3]['interfaces'][1]['mac_address'] }}'
65       - eth3: '{{ conf['nodes'][3]['interfaces'][2]['mac_address'] }}'
66     ipmiIp: {{ conf['nodes'][3]['remote_management']['address'] }}
67     roles:
68       - compute
69       - ceph-osd
70
71   - name: {{ conf['nodes'][4]['name'] }}
72     mac: '{{ conf['nodes'][4]['remote_management']['mac_address'] }}' #is this the ipmi mac address?
73     interfaces:
74       - eth1: '{{ conf['nodes'][4]['interfaces'][0]['mac_address'] }}'
75       - eth2: '{{ conf['nodes'][4]['interfaces'][1]['mac_address'] }}'
76       - eth3: '{{ conf['nodes'][4]['interfaces'][2]['mac_address'] }}'
77     ipmiIp: {{ conf['nodes'][4]['remote_management']['address'] }}
78     roles:
79       - compute
80       - ceph-osd