adding install script
This commit is contained in:
parent
d2562a66df
commit
ead6298aa7
@ -25,13 +25,20 @@
|
||||
"source": "http://192.168.40.3/leader.json"
|
||||
},
|
||||
"mode": 448
|
||||
},
|
||||
{
|
||||
"path": "/opt/ckube-install",
|
||||
"contents": {
|
||||
"source": "http://192.168.40.3/ckube-install"
|
||||
},
|
||||
"mode": 448
|
||||
}
|
||||
]
|
||||
},
|
||||
"systemd": {
|
||||
"units": [
|
||||
{
|
||||
"contents": "[Unit]\nRequires=network-online.target\nAfter=network-online.target\n[Service]\nType=forking\nTimeoutStartSec=600\nRemainAfterExit=yes\nExecStart=/usr/bin/sh -c \"flatcar-install -d /dev/vda -i /opt/ignition.json \u0026\u0026 udevadm settle \u0026\u0026 systemctl reboot\"\n[Install]\nWantedBy=multi-user.target\n",
|
||||
"contents": "[Unit]\nRequires=network-online.target\nAfter=network-online.target\n[Service]\nType=forking\nTimeoutStartSec=600\nRemainAfterExit=yes\nExecStart=/usr/bin/sh -c \"/opt/ckube-install\"\n[Install]\nWantedBy=multi-user.target\n",
|
||||
"enabled": true,
|
||||
"name": "installer.service"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user