summaryrefslogtreecommitdiff
path: root/cloud-init
diff options
context:
space:
mode:
Diffstat (limited to 'cloud-init')
-rw-r--r--cloud-init/config.yaml29
1 files changed, 29 insertions, 0 deletions
diff --git a/cloud-init/config.yaml b/cloud-init/config.yaml
new file mode 100644
index 0000000..6fd28c2
--- /dev/null
+++ b/cloud-init/config.yaml
@@ -0,0 +1,29 @@
+config:
+ cloud-init.user-data: |+
+ #cloud-config
+ users:
+ - name: jerome
+ shell: /bin/bash
+ lock_passwd: false
+ passwd: "$6$KcUwVgsEi1tnNLfn$2kRWPp7kbZ19vB6J/L46fbulcOOcuw54ttOMXJtfrznlyXDdnepr2.pvYuzOs97tPK0aHr4bab1RQIUGtr8vc/"
+ sudo: ALL=(ALL) ALL
+ - name: ansible
+ shell: /bin/bash
+ ssh_authorized_keys: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCZJG/XcIIvW0JOJb6ftEpopS4szOo8dRehASGIOAswPRko6JFMT9QuAvl9YkmzgSorn0KpyQrqAxNTklADocMGPW2BJzKb/1fQyZYKY9bLXxyKaYZKbDZNaUJmW92ThDmUrIWPgjh5BhUxOTwRbDhTsRu/pvulnGw+8yOp7Tz8nUgAoJEZ/7fGkm7AaJPLmF/szQEhL/WSNqTtNdCHNYpQqgRIUZh5zqcb2jXa0pZ7GMnPmoSUMlz1OfAxMOIuziaP3i1J/KHVhXdxj4nrOtUjrUULfqk9vyfKkf7BLYKO3fO3BLR9H5HgeTlaB2aXNuDgRAQposNZ0FEK/VkWj+DQuqjuj9nYo57GbfMfhWr/dTKxTVj3xsbFdThDWtlp7sVI2jguqntwwlmhhexJp1fAYZn92KYkaxGHWLbR0bxLEWVjHXciVW2D12IUZfGWXh5wInoQN1gs1i6NUqgf1uDZhAax5H9G07YySR2fnM9TB5c5apyf7PFCg1kZAnqVHrE= jerome@parrot"
+ sudo: ALL=(ALL) NOPASSWD:ALL
+
+ package_upgrade: true
+ packages:
+ - openssh-server
+ write_files:
+ - path: /home/jerome/helloworld
+ content: |
+ #!/bin/bash
+ echo "Hello World !"
+ permissions: "0755"
+ runcmd:
+ - [sed, -i, s/PasswordAuthentication no/PasswordAuthentication yes/, /etc/ssh/sshd_config]
+ - [systemctl, start, sshd]
+ #bug rocky9 ???
+ - passwd -d ansible
+