Merge "config/installers: Add PDF installer adapters"
[pharos.git] / config / installers / compass4nfv / os-nosdn-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       - ceph-adm
31       - ceph-mon
32
33   - name: {{ conf['nodes'][1]['name'] }}
34     mac: '{{ conf['nodes'][1]['remote_management']['mac_address'] }}' #is this the ipmi mac address?
35     interfaces:
36       - eth1: '{{ conf['nodes'][1]['interfaces'][0]['mac_address'] }}'
37       - eth2: '{{ conf['nodes'][1]['interfaces'][1]['mac_address'] }}'
38       - eth3: '{{ conf['nodes'][1]['interfaces'][2]['mac_address'] }}'
39     ipmiIp: {{ conf['nodes'][0]['remote_management']['address'] }}
40     roles:
41       - controller
42       - ha
43       - ceph-mon
44
45   - name: {{ conf['nodes'][2]['name'] }}
46     mac: '{{ conf['nodes'][2]['remote_management']['mac_address'] }}' #is this the ipmi mac address?
47     interfaces:
48       - eth1: '{{ conf['nodes'][2]['interfaces'][0]['mac_address'] }}'
49       - eth2: '{{ conf['nodes'][2]['interfaces'][1]['mac_address'] }}'
50       - eth3: '{{ conf['nodes'][2]['interfaces'][2]['mac_address'] }}'
51     ipmiIp: {{ conf['nodes'][2]['remote_management']['address'] }}
52     roles:
53       - controller
54       - ha
55       - ceph-mon
56
57   - name: {{ conf['nodes'][3]['name'] }}
58     mac: '{{ conf['nodes'][3]['remote_management']['mac_address'] }}' #is this the ipmi mac address?
59     interfaces:
60       - eth1: '{{ conf['nodes'][3]['interfaces'][0]['mac_address'] }}'
61       - eth2: '{{ conf['nodes'][3]['interfaces'][1]['mac_address'] }}'
62       - eth3: '{{ conf['nodes'][3]['interfaces'][2]['mac_address'] }}'
63     ipmiIp: {{ conf['nodes'][3]['remote_management']['address'] }}
64     roles:
65       - compute
66       - ceph-osd
67
68   - name: {{ conf['nodes'][4]['name'] }}
69     mac: '{{ conf['nodes'][4]['remote_management']['mac_address'] }}' #is this the ipmi mac address?
70     interfaces:
71       - eth1: '{{ conf['nodes'][4]['interfaces'][0]['mac_address'] }}'
72       - eth2: '{{ conf['nodes'][4]['interfaces'][1]['mac_address'] }}'
73       - eth3: '{{ conf['nodes'][4]['interfaces'][2]['mac_address'] }}'
74     ipmiIp: {{ conf['nodes'][4]['remote_management']['address'] }}
75     roles:
76       - compute
77       - ceph-osd