Working terraform with flatcar on digitalocean.
This commit is contained in:
18
cl/machine-mynode.yaml.tmpl
Normal file
18
cl/machine-mynode.yaml.tmpl
Normal 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!
|
||||
Reference in New Issue
Block a user