-
Notifications
You must be signed in to change notification settings - Fork 0
/
ceph_cluster.yml
46 lines (45 loc) · 1.02 KB
/
ceph_cluster.yml
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
parameters:
nodes: 3
node_ip_offset: 100
pool: default
node_prefix_1: ceph
network_1: ceph-orch
ip_prefix_1: 192.168.100
netmask: 255.255.255.0
numcpus: 1
memory: 6144
image: fedora38
notify: false
admin_password: password
disks:
- 100
- 10
{% for number in range(0, nodes) %}
{{ node_prefix_1 }}-node-{{ '%d' % number }}:
image: {{ image }}
numcpus: {{ numcpus }}
memory: {{ memory }}
reserveip: true
reservedns: true
sharedkey: true
nets:
- name: {{ network_1 }}
ip: {{ ip_prefix_1 }}.{{ node_ip_offset + number }}
gateway: {{ ip_prefix_1 }}.1
mask: {{ netmask }}
dns: {{ ip_prefix_1 }}.1
disks: {{ disks }}
pool: {{ pool }}
{% if ceph_dev_folder is defined %}
sharedfolders: [{{ ceph_dev_folder }}]
{% endif %}
files:
- bootstrap-cluster.sh
cmds:
- dnf -y install python3 chrony lvm2 podman nano strace firewalld tcpdump
- sed -i "s/SELINUX=enforcing/SELINUX=permissive/" /etc/selinux/config
- setenforce 0
{% if number == 0 %}
- bash /root/bootstrap-cluster.sh
{% endif %}
{% endfor %}