Merge "Auto Generated INFO.yaml file"
[pharos.git] / config / installers / compass4nfv / os-nosdn-openo-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 ---
11 TYPE: baremetal
12 FLAVOR: cluster
13 POWER_TOOL: '{{ conf['jumphost']['remote_management']['type'] }}tool'  # expects string ipmitool
14
15 ipmiUser: {{ conf['jumphost']['remote_management']['user'] }}
16 ipmiPass: {{ conf['jumphost']['remote_management']['pass'] }}
17 ipmiVer: '{{ conf['jumphost']['remote_management']['versions'][0] }}'
18
19 deploy_options:
20   orchestrator:
21     type: open-o
22     version: 1.0.0
23
24   vnf:
25     type:
26
27 hosts:
28   - name: {{ conf['nodes'][0]['name'] }}
29     mac: '{{ conf['nodes'][0]['remote_management']['mac_address'] }}'  # this is the ipmi mac address
30     interfaces:
31       - eth1: '{{ conf['nodes'][0]['interfaces'][0]['mac_address'] }}'
32       - eth2: '{{ conf['nodes'][0]['interfaces'][1]['mac_address'] }}'
33       - eth3: '{{ conf['nodes'][0]['interfaces'][2]['mac_address'] }}'
34     ipmiIp: {{ conf['nodes'][0]['remote_management']['address'] }}
35     roles:
36       - controller
37       - ha
38       - ceph-adm
39       - ceph-mon
40
41   - name: {{ conf['nodes'][1]['name'] }}
42     mac: '{{ conf['nodes'][1]['remote_management']['mac_address'] }}'  # this is the ipmi mac address
43     interfaces:
44       - eth1: '{{ conf['nodes'][1]['interfaces'][0]['mac_address'] }}'
45       - eth2: '{{ conf['nodes'][1]['interfaces'][1]['mac_address'] }}'
46       - eth3: '{{ conf['nodes'][1]['interfaces'][2]['mac_address'] }}'
47     ipmiIp: {{ conf['nodes'][1]['remote_management']['address'] }}
48     roles:
49       - controller
50       - ha
51       - ceph-mon
52
53   - name: {{ conf['nodes'][2]['name'] }}
54     mac: '{{ conf['nodes'][2]['remote_management']['mac_address'] }}'  # this is the ipmi mac address
55     interfaces:
56       - eth1: '{{ conf['nodes'][2]['interfaces'][0]['mac_address'] }}'
57       - eth2: '{{ conf['nodes'][2]['interfaces'][1]['mac_address'] }}'
58       - eth3: '{{ conf['nodes'][2]['interfaces'][2]['mac_address'] }}'
59     ipmiIp: {{ conf['nodes'][2]['remote_management']['address'] }}
60     roles:
61       - controller
62       - ha
63       - ceph-mon
64
65   - name: {{ conf['nodes'][3]['name'] }}
66     mac: '{{ conf['nodes'][3]['remote_management']['mac_address'] }}'  # this is the ipmi mac address
67     interfaces:
68       - eth1: '{{ conf['nodes'][3]['interfaces'][0]['mac_address'] }}'
69       - eth2: '{{ conf['nodes'][3]['interfaces'][1]['mac_address'] }}'
70       - eth3: '{{ conf['nodes'][3]['interfaces'][2]['mac_address'] }}'
71     ipmiIp: {{ conf['nodes'][3]['remote_management']['address'] }}
72     roles:
73       - compute
74       - ceph-osd
75
76   - name: {{ conf['nodes'][4]['name'] }}
77     mac: '{{ conf['nodes'][4]['remote_management']['mac_address'] }}'  # this is the ipmi mac address
78     interfaces:
79       - eth1: '{{ conf['nodes'][4]['interfaces'][0]['mac_address'] }}'
80       - eth2: '{{ conf['nodes'][4]['interfaces'][1]['mac_address'] }}'
81       - eth3: '{{ conf['nodes'][4]['interfaces'][2]['mac_address'] }}'
82     ipmiIp: {{ conf['nodes'][4]['remote_management']['address'] }}
83     roles:
84       - compute
85       - ceph-osd