-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoblong.bu
130 lines (122 loc) · 4.77 KB
/
oblong.bu
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
variant: fcos
version: 1.5.0
systemd:
units:
- name: qemu-guest-agent.service
enabled: true
contents: |
[Unit]
Description=Run QEMU Guest Agent
After=default.target
[Service]
ExecStartPre=/usr/bin/docker rm --force qemu-ga
ExecStart=/usr/bin/docker run --name qemu-ga -v /dev:/dev -v /etc/os-release:/etc/os-release:ro -v /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket -v /sys/fs/cgroup:/sys/fs/cgroup -v /sbin/shutdown:/sbin/shutdown -v /bin/systemctl:/bin/systemctl -v /usr/lib/systemd:/usr/lib/systemd -v /lib64:/lib64 --privileged --uts=host --net=host docker.io/danskadra/qemu-ga -v
ExecStop=/usr/bin/docker stop qemu-ga
[Install]
WantedBy=multi-user.target
- name: caddy.service
enabled: true
contents: |
[Unit]
Description=Run Caddy
After=network.target
[Service]
WorkingDirectory=/var/caddy/
ExecStart=/usr/local/bin/docker-compose up
ExecStop=/usr/local/bin/docker-compose down
[Install]
WantedBy=multi-user.target
- name: mobilizon.service
enabled: true
contents: |
[Unit]
Description=Run Mobilizon
After=network.target
[Service]
WorkingDirectory=/var/mobilizon/
ExecStart=/usr/local/bin/docker-compose up
ExecStop=/usr/local/bin/docker-compose down
[Install]
WantedBy=multi-user.target
- name: chatwoot.service
enabled: true
contents: |
[Unit]
Description=Run Chatwoot
After=network.target
[Service]
WorkingDirectory=/var/chatwoot/
ExecStart=/usr/local/bin/docker-compose up
ExecStop=/usr/local/bin/docker-compose down
[Install]
WantedBy=multi-user.target
passwd:
users:
- name: reesericci
password_hash: $y$j9T$PXcOUHzBWH43oFsHsyasD/$nmp3XmDQiAq3xlIN.rX49zA/UtDzmlJzlGSVsie6U4/
groups:
- wheel
- sudo
ssh_authorized_keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDtJXJ1jH0J8/JseqadIYP2TkzqMQHTJWm7D7ycYnZP8IbYspyoCKheIkGkkW7pMSnK29KwvVWg4VN0vn+kGLbOu8fgoudGNkHgW8rt+/T7DdmjXWEoCOp4Sv8HIjANt/mbGLr8a7mF/fb/EvvOGuJHt0qb9dlrO227tXwLrs1isOqZiA55gFI56ua3gg0SIW7enJiNGx5AE8toeL9MZIA2cuSiCWoe1V8yidCk5bcXNZQdJtjtlHzXU9TfRGE3lwALsLZG7gbU6ww3t0YC9WcV9JsCCsj1vlMU3B5N6ElRVKkFNJS1BgGtN80VkWIgBQlEru6Vdjs7UaPHrO2lnvRpxC4hxMk5PmMP5iIqsiwwQabN93tqIuuiTG6VF7GTFcDxfwUv6s8JiDQEtif/Li5aKfoH0DoJRm2+drijFbZBFgU55DENLRvKynOG5lkmjcQ34D5ZHDpaZgMciK7IatojtIWzQRQ0RtTWwrY/RmN84Kx43s2bnko16+Bz4lpH2aU= reesericci@poptop
storage:
files:
- path: /var/home/reesericci/.local/bin/reprovision
contents:
inline: |
#!/bin/bash
set -eux -o pipefail
install_dev='sda'
install_ignition='https://raw.githubusercontent.com/obl-ong/infra/main/remote.ign'
coreos-installer download -f pxe
kernel=$(ls fedora-coreos-*-live-kernel-x86_64)
initramfs=$(ls fedora-coreos-*-live-initramfs.*.img)
rootfs=$(ls fedora-coreos-*-live-rootfs.*.img)
cat $initramfs $rootfs > combined.img
sudo kexec -l $kernel --initrd=./combined.img --command-line="coreos.inst.install_dev=${install_dev} coreos.inst.ignition_url=${install_ignition} console=ttyS0"
sudo systemctl kexec
mode: 0770
overwrite: true
user:
name: reesericci
group:
name: reesericci
- path: /var/mobilizon/docker-compose.yml
overwrite: true
contents:
source: https://raw.githubusercontent.com/obl-ong/infra/main/mobilizon/docker-compose.yml
- path: /var/mobilizon/config.exs
overwrite: true
contents:
source: https://raw.githubusercontent.com/obl-ong/infra/main/mobilizon/config.exs
- path: /usr/local/bin/docker-compose
overwrite: true
mode: 0777
contents:
source: https://github.com/docker/compose/releases/download/v2.14.1/docker-compose-linux-x86_64
- path: /var/caddy/Caddyfile
overwrite: true
contents:
source: https://raw.githubusercontent.com/obl-ong/infra/main/caddy/Caddyfile
- path: /var/caddy/docker-compose.yml
overwrite: true
contents:
source: https://raw.githubusercontent.com/obl-ong/infra/main/caddy/docker-compose.yml
- path: /var/chatwoot/docker-compose.yml
overwrite: true
contents:
source: https://raw.githubusercontent.com/obl-ong/infra/main/chatwoot/docker-compose.yml
disks:
- device: /dev/disk/by-id/coreos-boot-disk
wipe_table: false
- device: /dev/sdb
wipe_table: true
partitions:
- number: 0
label: var
size_mib: 0
filesystems:
- path: /var
device: /dev/disk/by-partlabel/var
format: ext4
with_mount_unit: true