summaryrefslogtreecommitdiffstats
path: root/src/pybind/mgr/dashboard/ci/cephadm/ceph_cluster.yml
blob: 5d9f0723d58d44cd8707428b8a601097cee1ef33 (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
parameters:
 nodes: 4
 node_ip_offset: 100
 pool: ceph-dashboard
 network: ceph-dashboard
 gateway: 192.168.100.1
 netmask: 255.255.255.0
 prefix: ceph
 numcpus: 1
 memory: 2048
 image: fedora34
 notify: false
 admin_password: password
 disks:
 - 15
 - 5
 - 5

{% for number in range(0, nodes) %}
{{ prefix }}-node-0{{ number }}:
 image: {{ image }}
 numcpus: {{ numcpus }}
 memory: {{ memory }}
 reserveip: true
 reservedns: true
 sharedkey: true
 nets:
  - name: {{ network }}
    ip: 192.168.100.{{ node_ip_offset + number }}
    gateway: {{ gateway }}
    mask: {{ netmask }}
    dns: {{ gateway }}
 disks: {{ disks }}
 pool: {{ pool }}
 sharedfolders: [{{ ceph_dev_folder }}]
 files:
  - bootstrap-cluster.sh
 cmds:
 - dnf -y install python3 chrony lvm2 podman
 - sed -i "s/SELINUX=enforcing/SELINUX=permissive/" /etc/selinux/config
 - setenforce 0
 {% if number == 0 %}
 - bash /root/bootstrap-cluster.sh
 {% endif %}
{% endfor %}