Add minor variablilization for service fefan and bookshelf
This commit is contained in:
@@ -6,6 +6,7 @@ ACT_RUNNER_VERSION=0.2.13
|
||||
ACT_RUNNER_LOCATION=/usr/local/bin
|
||||
ACT_RUNNER_USER=act_runner
|
||||
GITEA_RUNNER_REGISTRATION_TOKEN=<gitea-repository-runner-token>
|
||||
USERNAME=bookshelf
|
||||
|
||||
# gitea instance
|
||||
GITEA_INSTANCE_URL=https://gitea.aldon.fr
|
||||
@@ -23,9 +24,6 @@ SERVICE_ORIGIN=https://bookshelf.aldon.fr
|
||||
SERVICE_ROOT_FQDN=https://bookshelf.aldon.fr/api
|
||||
SERVICE_DATABASE_CONTAINER_NAME=bookshelf-database
|
||||
|
||||
# VM
|
||||
USERNAME=bookshelf
|
||||
|
||||
# Backup specifics
|
||||
SERVICE_BACKUPS_DIR=/backups/bookshelf
|
||||
SERVICE_BACKUPS_PREFIX=bookshelf-dump
|
||||
|
||||
@@ -58,11 +58,11 @@ write_files:
|
||||
permissions: "0644"
|
||||
content: |
|
||||
${act_runner-service}
|
||||
- path: /opt/bookshelf/install-runner.sh
|
||||
- path: /opt/${hostname}/install-runner.sh
|
||||
permissions: "0755"
|
||||
content: |
|
||||
${act_runner-install-script}
|
||||
- path: /opt/bookshelf/install-service.sh
|
||||
- path: /opt/${hostname}/install-service.sh
|
||||
permissions: "0755"
|
||||
content: |
|
||||
${service-install-script}
|
||||
@@ -77,12 +77,12 @@ runcmd:
|
||||
- systemctl start docker
|
||||
- usermod -aG docker ${hostname}
|
||||
# Act_runner install
|
||||
- /opt/bookshelf/install-runner.sh
|
||||
- /opt/${hostname}/install-runner.sh
|
||||
- systemctl daemon-reload
|
||||
- systemctl enable act_runner.service
|
||||
- systemctl start act_runner.service
|
||||
# Bookshelf install
|
||||
- /opt/bookshelf/install-service.sh
|
||||
# ${hostname} install
|
||||
- /opt/${hostname}/install-service.sh
|
||||
|
||||
|
||||
final_message: |
|
||||
|
||||
@@ -15,7 +15,7 @@ module "vm" {
|
||||
|
||||
ssh_public_key = var.ssh_public_key
|
||||
proxmox_host_ip = var.proxmox_host_ip
|
||||
|
||||
|
||||
cloudinit_config = templatefile(
|
||||
"${path.module}/cloud-init/service.yaml",
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user