mirror of
https://github.com/outbackdingo/matchbox.git
synced 2026-01-27 10:19:35 +00:00
contrib/systemd: Update bootcfg systemd units
This commit is contained in:
24
contrib/systemd/bootcfg-for-tectonic.service
Normal file
24
contrib/systemd/bootcfg-for-tectonic.service
Normal file
@@ -0,0 +1,24 @@
|
||||
[Unit]
|
||||
Description=CoreOS bootcfg Server
|
||||
Documentation=https://github.com/coreos/coreos-baremetal
|
||||
|
||||
[Service]
|
||||
Environment="IMAGE=quay.io/coreos/bootcfg"
|
||||
Environment="VERSION=v0.4.1"
|
||||
Environment="BOOTCFG_ADDRESS=0.0.0.0:8080"
|
||||
Environment="BOOTCFG_RPC_ADDRESS=0.0.0.0:8081"
|
||||
Environment="BOOTCFG_LOG_LEVEL=debug"
|
||||
ExecStartPre=/usr/bin/mkdir -p /etc/bootcfg
|
||||
ExecStartPre=/usr/bin/mkdir -p /var/lib/bootcfg/assets
|
||||
ExecStart=/usr/bin/rkt run \
|
||||
--net=host \
|
||||
--inherit-env \
|
||||
--trust-keys-from-https \
|
||||
--mount volume=data,target=/var/lib/bootcfg \
|
||||
--mount volume=config,target=/etc/bootcfg \
|
||||
--volume data,kind=host,source=/var/lib/bootcfg \
|
||||
--volume config,kind=host,source=/etc/bootcfg \
|
||||
${IMAGE}:${VERSION}
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
16
contrib/systemd/bootcfg-local.service
Normal file
16
contrib/systemd/bootcfg-local.service
Normal file
@@ -0,0 +1,16 @@
|
||||
[Unit]
|
||||
Description=CoreOS bootcfg Server
|
||||
Documentation=https://github.com/coreos/coreos-baremetal
|
||||
|
||||
[Service]
|
||||
User=bootcfg
|
||||
Group=bootcfg
|
||||
Environment="BOOTCFG_ADDRESS=0.0.0.0:8080"
|
||||
ExecStart=/usr/local/bin/bootcfg
|
||||
|
||||
# systemd.exec
|
||||
ProtectHome=yes
|
||||
ProtectSystem=full
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -3,20 +3,20 @@ Description=CoreOS bootcfg Server
|
||||
Documentation=https://github.com/coreos/coreos-baremetal
|
||||
|
||||
[Service]
|
||||
Environment="IMAGE=quay.io/coreos/bootcfg"
|
||||
Environment="VERSION=v0.4.1"
|
||||
Environment="BOOTCFG_ADDRESS=0.0.0.0:8080"
|
||||
ExecStartPre=/usr/bin/mkdir -p /etc/bootcfg
|
||||
ExecStartPre=/usr/bin/mkdir -p /var/lib/bootcfg/assets
|
||||
ExecStart=/usr/bin/rkt run \
|
||||
--net=host \
|
||||
--inherit-env \
|
||||
--trust-keys-from-https \
|
||||
--mount volume=data,target=/var/lib/bootcfg \
|
||||
--mount volume=config,target=/etc/bootcfg \
|
||||
--volume data,kind=host,source=/var/lib/bootcfg \
|
||||
--volume config,kind=host,source=/etc/bootcfg \
|
||||
quay.io/coreos/bootcfg:v0.4.1 -- -address=0.0.0.0:8080 -rpc-address=0.0.0.0:8081 -log-level=debug
|
||||
|
||||
# systemd.exec
|
||||
ProtectHome=yes
|
||||
ProtectSystem=full
|
||||
ReadOnlyPaths=/etc/bootcfg
|
||||
ReadWritePaths=/var/lib/bootcfg
|
||||
${IMAGE}:${VERSION}
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
@@ -5,13 +5,12 @@ Documentation=https://github.com/coreos/coreos-baremetal
|
||||
[Service]
|
||||
User=bootcfg
|
||||
Group=bootcfg
|
||||
ExecStart=/usr/local/bin/bootcfg -address=0.0.0.0:8080 -rpc-address=0.0.0.0:8081 -log-level=debug
|
||||
Environment="BOOTCFG_ADDRESS=0.0.0.0:8080"
|
||||
ExecStart=/usr/bin/bootcfg
|
||||
|
||||
# systemd.exec
|
||||
ProtectHome=yes
|
||||
ProtectSystem=full
|
||||
ReadOnlyPaths=/etc/bootcfg
|
||||
ReadWritePaths=/var/lib/bootcfg
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user