diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-08-04 14:31:08 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-08-04 14:31:08 +0200 |
commit | 0e87875de0f5bbbade1ad3515c72abaadbe46204 (patch) | |
tree | 26d141bd7968f7f34091cf245ae1f11d6d3b2ee8 /yandex/server/etc/cloud-init.cfg | |
parent | import some common modules (diff) | |
download | infra-terraform-0e87875de0f5bbbade1ad3515c72abaadbe46204.tar.gz infra-terraform-0e87875de0f5bbbade1ad3515c72abaadbe46204.zip |
import a couple of Yandex Cloud moduelsv0.0.2
Diffstat (limited to 'yandex/server/etc/cloud-init.cfg')
-rw-r--r-- | yandex/server/etc/cloud-init.cfg | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/yandex/server/etc/cloud-init.cfg b/yandex/server/etc/cloud-init.cfg new file mode 100644 index 0000000..8ed371c --- /dev/null +++ b/yandex/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)} |