diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-08-04 14:18:08 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-08-04 14:18:08 +0200 |
commit | 15b9dea7a95765f1f3c09fe0dcb2ea5b5cb669c1 (patch) | |
tree | c0c192e00c419ade1779ae62b3aed91bbb3e8778 /digitalocean/server/etc/cloud-init.cfg | |
parent | initial commit (diff) | |
download | infra-terraform-15b9dea7a95765f1f3c09fe0dcb2ea5b5cb669c1.tar.gz infra-terraform-15b9dea7a95765f1f3c09fe0dcb2ea5b5cb669c1.zip |
import some common modulesv0.0.1
Diffstat (limited to '')
-rw-r--r-- | digitalocean/server/etc/cloud-init.cfg | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/digitalocean/server/etc/cloud-init.cfg b/digitalocean/server/etc/cloud-init.cfg new file mode 100644 index 0000000..8ed371c --- /dev/null +++ b/digitalocean/server/etc/cloud-init.cfg @@ -0,0 +1,13 @@ +#cloud-config + +users: + - name: ${jsonencode(user)} + lock_passwd: false + hashed_passwd: '*' + sudo: ALL=(ALL) NOPASSWD:ALL + ssh_authorized_keys: ${jsonencode(ssh_keys)} + shell: /bin/bash + +write_files: + - path: /etc/ssh/sshd_config + content: ${jsonencode(sshd_config)} |