diff --git a/gitpull.sh b/gitpull.sh deleted file mode 100644 index b07a568..0000000 --- a/gitpull.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env bash -# ------------------------------------------------------------ -# firstrun.sh – One‑shot VM bootstrap script. -# -# Run this via a systemd unit on first boot. The script will: -# • Check /apps/firstrun (marker file) to skip if already ran -# • Clone a repo into /apps/$HOSTNAME -# • Execute an Ansible playbook that installs Docker -# • Restore data from /data if it is empty/missing -# • Create a systemd service that runs docker‑compose -# • Log everything to /apps/firstrun.log -# • Optionally send a Discord webhook (placeholder) -# -# ------------------------------------------------------------ -set -euo pipefail - -APP_DIR="/apps/" - -cd $APP_DIR -GIT_SSH_COMMAND="ssh -i ~/.ssh/github_ro" git pull - -bash ./firstsetup.sh \ No newline at end of file diff --git a/playbooks/openbao/docker-compose.env b/playbooks/openbao/docker-compose.env new file mode 100644 index 0000000..5822e7e --- /dev/null +++ b/playbooks/openbao/docker-compose.env @@ -0,0 +1 @@ +# Unused \ No newline at end of file diff --git a/playbooks/openbao/docker-compose.yml b/playbooks/openbao/docker-compose.yml new file mode 100644 index 0000000..25832f6 --- /dev/null +++ b/playbooks/openbao/docker-compose.yml @@ -0,0 +1,13 @@ +services: + server: + image: quay.io/openbao/openbao:latest + container_name: openbao + restart: always + volumes: + - ./config/openbao.hcl:/bao/config/openbao.hcl + - ../data:/openbao/file + cap_add: + - IPC_LOCK + ports: + - "8200:8200" + entrypoint: ["bao", "server", "-config=/bao/config/openbao.hcl"] \ No newline at end of file