-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathkickstart.json
55 lines (55 loc) · 1.28 KB
/
kickstart.json
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
{
"hostname": "localhost",
"password": {
"crypted": true,
"text": "*",
"age": -1
},
"disk": "/dev/sda",
"partitions": [
{
"mountpoint": "/boot",
"size": 512,
"filesystem": "ext4"
},
{
"mountpoint": "/",
"size": 0,
"filesystem": "ext4",
"lvm": {
"vg_name": "root_vg",
"lv_name": "root"
}
},
{
"size": 2048,
"filesystem": "swap",
"lvm": {
"vg_name": "swap_vg",
"lv_name": "swap1"
}
}
],
"packages": [
"bash",
"linux",
"initramfs",
"lvm2",
"minimal",
"openssh-server",
"open-vm-tools",
"shadow",
"sudo"
],
"postinstall": [
"#!/bin/bash",
"useradd -U -d /home/builder -m --groups wheel builder && echo 'builder:builder' | chpasswd",
"echo 'builder ALL=(ALL) NOPASSWD: ALL' >/etc/sudoers.d/builder",
"chmod 440 /etc/sudoers.d/builder",
"useradd --system --no-create-home --home-dir=/var/lib/haproxy --user-group haproxy",
"mkdir -p /var/lib/haproxy && chown -R haproxy:haproxy /var/lib/haproxy",
"systemctl disable docker.service && systemctl mask docker.service",
"systemctl enable sshd.service",
"echo '\n\n[DHCP]\nClientIdentifier=mac' >> /etc/systemd/network/99-dhcp-en.network"
]
}