summaryrefslogtreecommitdiffstats
path: root/config/installers/daisy/pod_config.yaml.j2
blob: 3e4ab106c1f3eeca7193027292477f89ff8c84bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
##############################################################################
# Copyright (c) 2017 ZTE Corporation and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################

---

adapter: {{ conf['jumphost']['remote_params']['type'] }}
hosts:
  {%- set nodes_num = conf['nodes'] | length -%}
  {%- if nodes_num == 5 %}
  - name: 'controller01'
    roles:
      - 'CONTROLLER_LB'
    ipmi_ip: {{ conf['nodes'][0]['remote_management']['address'] }}
    ipmi_user: {{ conf['nodes'][0]['remote_management']['user'] }}
    ipmi_pass: {{ conf['nodes'][0]['remote_management']['pass'] }}
    mac_addresses:{% for nic in conf['nodes'][0]['interfaces'] %}
      - {{ nic['mac_address'] }}{% endfor %}
  - name: 'controller02'
    roles:
      - 'CONTROLLER_LB'
    ipmi_ip: {{ conf['nodes'][1]['remote_management']['address'] }}
    ipmi_user: {{ conf['nodes'][1]['remote_management']['user'] }}
    ipmi_pass: {{ conf['nodes'][1]['remote_management']['pass'] }}
    mac_addresses:{% for nic in conf['nodes'][1]['interfaces'] %}
      - {{ nic['mac_address'] }}{% endfor %}
  - name: 'controller03'
    roles:
      - 'CONTROLLER_LB'
    ipmi_ip: {{ conf['nodes'][2]['remote_management']['address'] }}
    ipmi_user: {{ conf['nodes'][2]['remote_management']['user'] }}
    ipmi_pass: {{ conf['nodes'][2]['remote_management']['pass'] }}
    mac_addresses:{% for nic in conf['nodes'][2]['interfaces'] %}
      - {{ nic['mac_address'] }}{% endfor %}
  - name: 'computer01'
    roles:
      - 'COMPUTER'
    ipmi_ip: {{ conf['nodes'][3]['remote_management']['address'] }}
    ipmi_user: {{ conf['nodes'][3]['remote_management']['user'] }}
    ipmi_pass: {{ conf['nodes'][3]['remote_management']['pass'] }}
    mac_addresses:{% for nic in conf['nodes'][3]['interfaces'] %}
      - {{ nic['mac_address'] }}{% endfor %}
  - name: 'computer02'
    roles:
      - 'COMPUTER'
    ipmi_ip: {{ conf['nodes'][4]['remote_management']['address'] }}
    ipmi_user: {{ conf['nodes'][4]['remote_management']['user'] }}
    ipmi_pass: {{ conf['nodes'][4]['remote_management']['pass'] }}
    mac_addresses:{% for nic in conf['nodes'][4]['interfaces'] %}
      - {{ nic['mac_address'] }}{% endfor %}
  {%- endif %}
  {%- if nodes_num == 3 %}
  - name: 'controller01'
    roles:
      - 'CONTROLLER_LB'
    ipmi_ip: {{ conf['nodes'][0]['remote_management']['address'] }}
    ipmi_user: {{ conf['nodes'][0]['remote_management']['user'] }}
    ipmi_pass: {{ conf['nodes'][0]['remote_management']['pass'] }}
    mac_addresses:{% for nic in conf['nodes'][0]['interfaces'] %}
      - {{ nic['mac_address'] }}{% endfor %}
  - name: 'computer01'
    roles:
      - 'COMPUTER'
    ipmi_ip: {{ conf['nodes'][1]['remote_management']['address'] }}
    ipmi_user: {{ conf['nodes'][1]['remote_management']['user'] }}
    ipmi_pass: {{ conf['nodes'][1]['remote_management']['pass'] }}
    mac_addresses:{% for nic in conf['nodes'][1]['interfaces'] %}
      - {{ nic['mac_address'] }}{% endfor %}
  - name: 'computer02'
    roles:
      - 'COMPUTER'
    ipmi_ip: {{ conf['nodes'][2]['remote_management']['address'] }}
    ipmi_user: {{ conf['nodes'][2]['remote_management']['user'] }}
    ipmi_pass: {{ conf['nodes'][2]['remote_management']['pass'] }}
    mac_addresses:{% for nic in conf['nodes'][2]['interfaces'] %}
      - {{ nic['mac_address'] }}{% endfor %}
  {%- endif %}
disks:
  daisy: 50
daisy_passwd: 'r00tme'
{% if 'fixed_ips' in conf['jumphost'] -%}
daisy_gateway: {{ conf['jumphost']['fixed_ips']['admin'] }}
{%- else -%}
daisy_gateway: {{ conf['jumphost']['interfaces'][0]['address'][0] }}
{%- endif %}
ceph_disk_name: '/dev/sdb'