Working terraform with flatcar on digitalocean.

This commit is contained in:
2025-08-10 21:30:22 -07:00
parent 89484886b1
commit 3685c2c055
3 changed files with 118 additions and 10 deletions

View File

@@ -0,0 +1,18 @@
---
variant: flatcar
version: 1.1.0
passwd:
users:
- name: core
ssh_authorized_keys: ${ssh_keys}
storage:
files:
- path: /home/core/works
mode: 0755
contents:
inline: |
#!/bin/bash
set -euo pipefail
# This script demonstrates how templating and variable substitution works when using Terraform templates for Container Linux Configs.
hostname="$(hostname)"
echo My name is ${name} and the hostname is $${hostname} and this is updated!