Fix script environment variables Add Fefan configuration Fix gateway services file provisionning through ssh
46 lines
888 B
YAML
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} |