#cloud-config # remove this block entirely if not using password authentication password: ###PASSWORD### ssh_pwauth: True chpasswd: { expire: False } #package_upgrade: true #packages: #- git #- tmux #- wget # replace with your own public key (e.g. ~/.ssh/id_rsa.pub) ssh_authorized_keys: - ###SSH_KEY_1### - ###SSH_KEY_2### - ###SSH_KEY_3### users: - default - name: root ssh_authorized_keys: - ###SSH_KEY_1### - ###SSH_KEY_2### - ###SSH_KEY_3### runcmd: - [ "/usr/bin/curl" , "https://gist.githubusercontent.com/elico/aa7cf0bf563361b72afe9cadafdbf688/raw/7ca31701051cd3bfd8974cfd31eaaeaa32b4c4c0/rhel-create-swap-file.sh" , "-o" , "/usr/loca/bin/rhel-create-swap-file.sh" ] - [ "/bin/bash" , "/usr/loca/bin/rhel-create-swap-file.sh" ] - [ "/usr/bin/curl" , "http://www.ngtech.co.il/static/finihsed" , "-o" , "/dev/null" ] final_message: "The system is finally up, after $UPTIME seconds"