-
Notifications
You must be signed in to change notification settings - Fork 1
/
iso-install.fcc
53 lines (50 loc) · 1.43 KB
/
iso-install.fcc
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
variant: fcos
version: 1.3.0
passwd:
users:
- name: core
ssh_authorized_keys:
- ssh-rsa <SSH KEY HERE>
systemd:
units:
- name: install.service
enabled: true
contents: |
[Unit]
Description=Run CoreOS Installer
Requires=coreos-installer-pre.target
After=coreos-installer-pre.target
OnFailure=emergency.target
OnFailureJobMode=replace-irreversibly
# Can be removed if install doesn't reference remote resources with
# --stream, --image-url, or --ignition-url
#After=network-online.target
#Wants=network-online.target
[Service]
Type=oneshot
ExecStart=/usr/bin/coreos-installer install /dev/vda -i /home/core/config.ign
ExecStart=/usr/bin/systemctl --no-block reboot
StandardOutput=kmsg+console
StandardError=kmsg+console
[Install]
RequiredBy=default.target
storage:
files:
- path: /home/core/config.ign
contents:
inline: |
{
"ignition": {
"version": "3.2.0"
},
"passwd": {
"users": [
{
"name": "core",
"sshAuthorizedKeys": [
"ssh-rsa <SSH KEY HERE>"
]
}
]
}
}