.
This commit is contained in:
commit
08c0e9c107
33 files changed
+4312
No files matched your search
@@ -0,0 +1,18 @@
|
||||
INFISICAL_ACCESS_TOKEN=
|
||||
INFISICAL_PROJECT_ID=
|
||||
INFISICAL_ENVIRONMENT=prod
|
||||
INFISICAL_SITE_URL=https://secret-manager.dahyeon.us/
|
||||
|
||||
METADATA_PORT=8675
|
||||
REFRESH_INTERVAL_SEC=60
|
||||
ALLOW_SECRETS_BUNDLE=false
|
||||
KNOWN_SECRET_KEYS=EXAMPLE_SECRET
|
||||
|
||||
MACHINE_ID=
|
||||
MACHINE_HOSTNAME=
|
||||
MACHINE_LOCAL_HOSTNAME=
|
||||
MACHINE_LOCAL_IPV4=
|
||||
MACHINE_MAC=
|
||||
MACHINE_ROLE=homelab-node
|
||||
MACHINE_TAGS=site=home,tier=dev
|
||||
USER_DATA=
|
||||
@@ -0,0 +1,26 @@
|
||||
[Unit]
|
||||
Description=Machine Env Metadata Service
|
||||
Documentation=https://github.com/dahyeon/machine-env-service
|
||||
After=network-online.target machine-env-setup-link-local.service
|
||||
Wants=network-online.target
|
||||
Requires=machine-env-setup-link-local.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=machine-env
|
||||
Group=machine-env
|
||||
WorkingDirectory=/opt/machine-env-service
|
||||
Environment=MACHINE_ENV_CONFIG=/etc/machine-env-service/env
|
||||
ExecStart=/usr/bin/node /opt/machine-env-service/dist/daemon/main.js
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
||||
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
|
||||
NoNewPrivileges=true
|
||||
ProtectSystem=strict
|
||||
ProtectHome=true
|
||||
PrivateTmp=true
|
||||
ReadWritePaths=/etc/machine-env-service
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Configure link-local IMDS address for Machine Env Service
|
||||
DefaultDependencies=no
|
||||
After=local-fs.target
|
||||
Before=network-online.target machine-env-service.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=true
|
||||
ExecStart=/opt/machine-env-service/deploy/scripts/setup-link-local-linux.sh
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in new issue
Block a user