40 lines
1.2 KiB
JSON
40 lines
1.2 KiB
JSON
{
|
|
"name": "base-qcow2",
|
|
"base": "1f663f817473ffa5b01241b17adbd71bc734962313f5d4eef230073c0ac5884e",
|
|
"stages": [
|
|
{
|
|
"name": "io.weldr.script",
|
|
"options": {
|
|
"script": "echo root | passwd --stdin root; echo 'SELINUX=disabled' > /etc/selinux/config;"
|
|
}
|
|
},
|
|
{
|
|
"name": "io.weldr.script",
|
|
"options": {
|
|
"script": "mkdir -p /var/web; echo 'hello, world!' > /var/web/index; echo -e \"[Unit]\\nDescription=Testing web server\\nAfter=network.target\\n\\n[Service]\\nType=simple\\nExecStart=python3 -m http.server 8888\\nWorkingDirectory=/var/web/\\n\\n[Install]\\nWantedBy=multi-user.target\" > /etc/systemd/system/web-server.service;"
|
|
}
|
|
},
|
|
{
|
|
"name": "io.weldr.systemd",
|
|
"options": {
|
|
"enabled_services": [
|
|
"NetworkManager",
|
|
"web-server"
|
|
],
|
|
"disabled_services": [
|
|
"firewalld"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "io.weldr.grub2",
|
|
"systemResourcesFromEtc": [
|
|
"/etc/grub.d"
|
|
],
|
|
"options": {
|
|
"root_fs_uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
|
|
"partition_table_id": "0xdeadbeef"
|
|
}
|
|
}
|
|
]
|
|
}
|