-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtinyos.template.yaml
130 lines (130 loc) · 4.03 KB
/
tinyos.template.yaml
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
name: tinyos
display-name: tinyos
revision: 1
architecture: amd64
series: jammy
class: preinstalled
kernel: linux-generic-hwe-22.04
gadget:
url: file://./pc-gadget/
type: directory
rootfs:
components:
- main
- universe
- restricted
pocket: updates
seed:
urls:
- file://<|CURRENT_DIR|>/ubuntu-seeds/
branch: jammy
vcs: false
names:
- server
- server-minimal
- minimal
- cloud-image
sources-list-deb822: false
customization:
components:
- main
- universe
- restricted
pocket: updates
manual:
make-dirs:
- path: /opt/tinybox/
permissions: 0755
- path: /raid/
permissions: 0777
copy-file:
- source: ./build/
destination: /opt/tinybox/build/
execute:
- path: /opt/tinybox/build/in-chroot.sh
cloud-init:
user-data: |
#cloud-config
preserve_hostname: true
bootcmd:
- [ cloud-init-per, once, enabledisplayservice, systemctl, enable, displayservice.service ]
- [ cloud-init-per, always, startdisplayservice, systemctl, start, displayservice.service ]
- [ cloud-init-per, once, enablebuttonservice, systemctl, enable, buttonservice.service ]
- [ cloud-init-per, always, startbuttonservice, systemctl, start, buttonservice.service ]
mounts:
- [ /dev/md/0, /raid, auto, "defaults,noatime,nofail", "0", "2" ]
users: []
runcmd:
- [ cloud-init-per, once, enablesecondboot, systemctl, enable, secondboot.service ]
- [ cloud-init-per, once, enabledisplayservice, systemctl, enable, displayservice.service ]
- [ cloud-init-per, always, startdisplayservice, systemctl, start, displayservice.service ]
- [ cloud-init-per, once, firstboot, bash, /opt/tinybox/setup/firstboot.sh ]
- [ cloud-init-per, once, enablebuttonservice, systemctl, enable, buttonservice.service ]
- [ cloud-init-per, always, startbuttonservice, systemctl, start, buttonservice.service ]
- [ cloud-init-per, once, enableautoupdate, systemctl, enable, autoupdate-tinybox.service ]
- [ cloud-init-per, once, enabletinychat, systemctl, enable, tinychat.service ]
- [ cloud-init-per, once, enablepoweroff, systemctl, enable, poweroff.service ]
- [ cloud-init-per, once, enablereboot, systemctl, enable, reboot.service ]
- [ cloud-init-per, once, hostname, hostnamectl, hostname, tinybox ]
- [ cloud-init-per, once, ntp, timedatectl, set-ntp, "true" ]
- [ cloud-init-per, once, updateinitramfs, update-initramfs, -u ]
- [ cloud-init-per, once, setbmcpass, bash, /opt/tinybox/setup/setbmcpass.sh, "1" ]
- [ cloud-init-per, once, raidsetup, bash, /opt/tinybox/setup/raidsetup.sh ]
- [ cloud-init-per, once, fixdisk, bash, /opt/tinybox/setup/fixdisk.sh ]
- [ cloud-init-per, once, reboot, bash, /opt/tinybox/service/reboot.sh ]
power_state:
delay: now
mode: reboot
message: Rebooting after setup
condition: true
meta-data: |
dsmode: local
extra-packages:
# bootloader
- name: grub-efi-amd64-signed
- name: grub2-common
- name: shim-signed
# preinstalled
- name: bash-completion
- name: btop
- name: build-essential
- name: clang
- name: csvtool
- name: fd-find
- name: file
- name: git
- name: infiniband-diags
- name: ipmitool
- name: jc
- name: jq
- name: linux-tools-generic-hwe-22.04
- name: lm-sensors
- name: locales
- name: lshw
- name: lsof
- name: man-db
- name: nfs-common
- name: parallel
- name: rclone
- name: rdma-core
- name: ripgrep
- name: rsync
- name: systemd-journal-remote
- name: time
# for services
- name: netcat-openbsd
- name: python-is-python3
- name: python3
- name: python3-pip
- name: python3-venv
# mdns
- name: avahi-daemon
extra-snaps:
# required
- name: snapd
- name: core20
# preinstalled
- name: nvtop
artifacts:
img:
- name: <|ARTIFACT_NAME|>