Files
terraform/modules/apps/gateway/cloud-init/service.yaml
JulienAldon 1de2fe9ab4 Add common module managing common services and scripts (act_runner, create/restore backups)
Fix script environment variables
Add Fefan configuration
Fix gateway services file provisionning through ssh
2026-01-20 15:42:17 +01:00

46 lines
888 B
YAML

#cloud-config
hostname: ${hostname}
local-hostname: ${hostname}
fqdn: ${hostname}.${domain}
manage_etc_hosts: true
users:
- default
- name: ${hostname}
groups: sudo
shell: /bin/bash
sudo: ALL=(ALL) NOPASSWD:ALL
ssh_authorized_keys:
- ${ssh_key}
disable_root: true
package_update: true
package_upgrade: false
packages:
- git
- nfs-common
- curl
- python3-flask
- gunicorn
write_files:
- path: /opt/environment/.env
permissions: "0644"
content: |
${env-file-content}
- path: /opt/gateway/install-traefik.sh
permissions: "0755"
content: |
${install-traefik-script}
- path: /etc/systemd/system/traefik.service
permissions: "0755"
content: |
${traefik-service}
runcmd:
- /opt/gateway/install-traefik.sh
final_message: |
Base system ready for ${hostname}