Working terraform with flatcar on digitalocean.
parent
89484886b1
commit
3685c2c055
@ -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!
|
@ -0,0 +1,7 @@
|
|||||||
|
do_token = "" # token from "API" settings on DigitalOcean
|
||||||
|
|
||||||
|
cluster_name = "mycluster"
|
||||||
|
machines = ["mynode"]
|
||||||
|
datacenter = "sfo3"
|
||||||
|
ssh_keys = [""] # paste contents of id_rsa.pub
|
||||||
|
flatcar_stable_version = "4230.2.1"
|
Loading…
Reference in New Issue