9
A cloud_init example for Harvester and Rocky/Ubuntu
source link: https://gist.github.com/clemenko/efcbaebc772f02bc541463c52ba61a0f
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
My current Cloud Init
In case you are curious the password hashed is "Pa22word".
from : https://cloudinit.readthedocs.io/en/latest/topics/examples.html
also cool : https://github.com/belgaied2/harvester-cli
#cloud-config
package_update: true
packages:
- qemu-guest-agent
- vim
- sudo
- cowsay
package_upgrade: false
runcmd:
- - systemctl
- enable
- '--now'
- qemu-guest-agent.service
users:
- name: root
hashed_passwd: $6$fgls6Nv/5eS$iozPi2/3f9SE7cR5mvTlriGkRZRSuhzFs0s6fVWzUXiL19E27hVgAo3mZwCdzlDsiUq1YRJeyPtql6FkPhMZP0
lock_passwd: false
shell: /bin/bash
ssh_authorized_keys:
- ssh-rsa %ADDYOURS%
- name: clemenko
hashed_passwd: $6$fgls6Nv/5eS$iozPi2/3f9SE7cR5mvTlriGkRZRSuhzFs0s6fVWzUXiL19E27hVgAo3mZwCdzlDsiUq1YRJeyPtql6FkPhMZP0
lock_passwd: false
shell: /bin/bash
sudo: ALL=(ALL) NOPASSWD:ALL
ssh_authorized_keys:
- ssh-rsa %ADDYOURS%
disable_root: false
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK