terraform-hcloud-kube-hetzner/templates/config.ign.tpl

32 lines
781 B
Smarty
Raw Normal View History

2022-02-05 01:22:35 +01:00
{
"ignition": {
"version": "3.0.0"
},
"passwd": {
"users": [
{
"name": "root",
"sshAuthorizedKeys": [
"${ssh_public_key}"
]
}
]
2022-02-05 18:59:14 +01:00
},
"storage": {
"files": [
{
2022-02-10 03:01:40 +01:00
"path": "/etc/sysconfig/network/ifcfg-eth1",
2022-02-05 18:59:14 +01:00
"mode": 420,
"overwrite": true,
2022-02-10 03:01:40 +01:00
"contents": { "source": "data:,BOOTPROTO%3D%27dhcp%27%0ASTARTMODE%3D%27auto%27" }
2022-02-05 18:59:14 +01:00
},
{
2022-02-10 03:01:40 +01:00
"path": "/etc/ssh/sshd_config.d/kube-hetzner.conf",
2022-02-05 18:59:14 +01:00
"mode": 420,
"overwrite": true,
2022-02-10 03:01:40 +01:00
"contents": { "source": "data:,PasswordAuthentication%20no%0AX11Forwarding%20no%0AMaxAuthTries%202%0AAllowTcpForwarding%20no%0AAllowAgentForwarding%20no%0AAuthorizedKeysFile%20.ssh%2Fauthorized_keys" }
2022-02-05 18:59:14 +01:00
}
]
2022-02-05 01:22:35 +01:00
}
}