-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdevstack.yml
More file actions
43 lines (42 loc) · 923 Bytes
/
Copy pathdevstack.yml
File metadata and controls
43 lines (42 loc) · 923 Bytes
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
parameters:
nodes: 1
pool: default
network: default
domain: devstack.local
prefix: devstack
numcpus: 4
memory: 16384
disk: 50
osd_disk: 20
image: ubuntu2404
notify: false
ssh_key: ~/.ssh/id_rsa.pub
{% for number in range(0, nodes) %}
{{ prefix }}-node-0{{ number }}:
image: {{ image }}
numcpus: {{ numcpus }}
memory: {{ memory }}
reservedns: true
sharedkey: true
domain: {{ domain }}
keys:
- {{ ssh_key }}
nets:
- {{ network }}
disks:
- size: {{ disk }}
- size: {{ osd_disk }}
- size: {{ osd_disk }}
pool: {{ pool }}
files:
- path: /etc/sudoers.d/stack
content: "stack ALL=(ALL) NOPASSWD: ALL"
mode: "0440"
cmds:
- useradd -s /bin/bash -d /opt/stack -m stack || true
- chmod +x /opt/stack
- hostnamectl set-hostname {{ prefix }}-node-0{{ number }}
- hostnamectl set-hostname --transient {{ prefix }}-node-0{{ number }}
scripts:
- bootstrap.sh
{% endfor %}