blob: b28ee056815302774d482c66c342a3aa762d097d (
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
|
parameters:
nodes: {{ nodes }}
pool: default
network: default
domain: cephlab.com
prefix: ceph
numcpus: {{ numcpus }}
memory: {{ memory }}
image: {{ image }}
notify: false
admin_password: password
disks: {{ disks }}
{% raw %}
{% for number in range(0, nodes) %}
{{ prefix }}-node-0{{ number }}:
image: {{ image }}
numcpus: {{ numcpus }}
memory: {{ memory }}
reserveip: true
reservedns: true
sharedkey: true
domain: {{ domain }}
nets:
- {{ network }}
disks: {{ disks }}
pool: {{ pool }}
{% if ceph_dev_folder is defined %}
sharedfolders: [{{ ceph_dev_folder }}]
{% endif %}
cmds:
- yum -y install python3 chrony lvm2 podman
- sed -i "s/SELINUX=enforcing/SELINUX=permissive/" /etc/selinux/config
- echo "after installing the python3"
- setenforce 0
{% if number == 0 %}
scripts:
- bootstrap_cluster_dev.sh
{% endif %}
{% endfor %}
{% endraw %}
|