diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-08-09 09:36:56 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-08-09 09:36:56 +0200 |
commit | b89df1a61a2bae8b1f4de4c6d238c9034c2cf326 (patch) | |
tree | fb4fd1097c3cdecf66470941a2131c186f563bf7 /etc/cloud-init.cfg | |
parent | add README.md (diff) | |
download | infra-terraform-b89df1a61a2bae8b1f4de4c6d238c9034c2cf326.tar.gz infra-terraform-b89df1a61a2bae8b1f4de4c6d238c9034c2cf326.zip |
move common config files to etc/
Diffstat (limited to 'etc/cloud-init.cfg')
-rw-r--r-- | etc/cloud-init.cfg | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/etc/cloud-init.cfg b/etc/cloud-init.cfg new file mode 100644 index 0000000..8ed371c --- /dev/null +++ b/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)} |