~damien/infrastructure

fc706cdb693842591af276b749509bbc1539fce1 — Damien Radtke 9 months ago 1381433
Add better support for support-run services
M services/README.md => services/README.md +1 -1
@@ 1,1 1,1 @@
This folder contains systemd service definitions.
This folder contains systemd service definitions to be provisioned and run on cluster members.

A services/support/README.md => services/support/README.md +1 -0
@@ 0,0 1,1 @@
This folder contains systemd service definitions to be run on the support server.

A services/support/install.sh => services/support/install.sh +10 -0
@@ 0,0 1,10 @@
#!/usr/bin/env bash

cd "$(dirname "${BASH_SOURCE[0]}")"
for file in *.service; do
	echo "installing ${file}"
	sudo cp "${file}" /etc/systemd/system/
done

echo "reloading daemon"
sudo systemctl daemon-reload

A services/support/minio.service => services/support/minio.service +15 -0
@@ 0,0 1,15 @@
[Unit]
Description=Minio
Documentation=https://docs.minio.io/
Wants=network-online.target
After=network-online.target

[Service]
KillMode=process
KillSignal=SIGINT
# TODO: make this download the minio binary on startup?
ExecStart=/usr/local/bin/minio server /minio
User=artifacts

[Install]
WantedBy=multi-user.target

A services/support/multirootca.service => services/support/multirootca.service +10 -0
@@ 0,0 1,10 @@
[Unit]
Description="cfssl multirootca program"
Requires=network-online.target
After=network-online.target

[Service]
ExecStart=/usr/local/bin/multirootca -roots /etc/ssl/multirootca.conf

[Install]
WantedBy=multi-user.target