-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup-veilid.yaml
18 lines (16 loc) · 906 Bytes
/
setup-veilid.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#cloud-config
# sets up veilid to run automatically
runcmd:
- wget -O- https://packages.veilid.net/gpg/veilid-packages-key.public | sudo gpg --dearmor -o /usr/share/keyrings/veilid-packages-keyring.gpg
- echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/veilid-packages-keyring.gpg] https://packages.veilid.net/apt stable main" | sudo tee /etc/apt/sources.list.d/veilid.list 1>/dev/null
- apt update
- sudo apt install veilid-server veilid-cli
- sudo systemctl enable --now veilid-server.service
- sudo systemctl start veilid-server.service
# set up automatic updates just for these two packages every wednesday at 5AM
write_files:
- owner: root:root
path: /etc/crontab
content: |
0 5 * * 3 root /usr/bin/apt update -y
5 5 * * 3 root DEBIAN_FRONTEND=noninteractive /usr/bin/apt install --only-upgrade veilid-server veilid-cli -y