feat: cloudinig: create user, change passwd and add SSH key

This commit is contained in:
Aravinth Manivannan 2022-10-24 15:50:21 +05:30
parent ba02ec619c
commit 0919a9b40c
Signed by: realaravinth
GPG Key ID: AD9F0F08E855ED88
1 changed files with 31 additions and 2 deletions

View File

@ -12,8 +12,37 @@
# provided.
#
# Note: Content strings here are truncated for example purposes.
ssh_pwauth: True
#users:
# - default
## - name: root
#### plain_text_passwd: foobar12
## ssh_import_id:
## - gh:realaravinth
# - name: atm
# plain_text_passwd: foobar12
# gecos: Aravinth Manivannan
# groups: users, admin
# sudo: ALL=(ALL) NOPASSWD:ALL
# lock_password: false
# ssh_import_id:
# - gh:realaravinth
users:
- name: atm
gecos: Aravinth Manivannan
groups: users, admin
sudo: ALL=(ALL) NOPASSWD:ALL
shell: /bin/bash
lock_passwd: true
plain_text_passwd: fooabr12
ssh_authorized_keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC/wXdHpwpY/4ubhYTmuNdGepQpj1kchvTUTApxMZyfyVW4uzrPRTYsle1y9QbTBV35qLkNajRC/wmC5/xPchdXpsJpuD9st1HMhLeR8qwaPyptiYJYT+z/WisWw2k6oWhG3QKvPoRtBdW9nhZnkG+O6zkuGXiRHpS7j2VVboDPpWEe1UdELQFVCwfraRal2g3ENFZ/9V1UrW/4ahRnQnSxERplZUm/fgSxQtmXubTkW68ut7yasBsrKFffMm8JztW0tWgTlTKONd3LCjv4juM0t5+cJDotNDnUR86Tq2PG8io7no/h8BWtazmjdpfGgn02ibX26BkdU0LDEYbJt5q9/Fh9TGk2ZwcMQeyepO1AWQgkmHXZWZELqu6MLQpqdtsOjHp9k0MeSpuIbdwzgf10Ydy7vK1z8irS24tVNNnJaMBwOlVOPwfyztHRADPkFcv2lKSjS1uyKR0FIkV8Kvs4txaIjmwv2LfMg6lF5W6j3ZPLyeE4cplJP0DDjzorSanu31xVnqVb3A8V9awsJ/4H7d59bI99c7QHL4K3fBVP3O0gqd31xAVRsdGs5Tj2P+RpiI6o5JJiOa1+DuBdWzrVIXYchQ30ZjaJp1wTNsYLmAsjeYuQZE2tf1xvywdzD4MB4avugDEWikzRWN9V5PHDZr1bamTCCjOrb2PRCd7eSQ== aravinth7820@gmail.com
ssh_pwauth: true
chpasswd:
list: |
root:terraform-libvirt-linux
root:foobar12
atm:foobar12
expire: False