Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save muhamad-ridwant-tech/2781e3b3da7c16eb933a8e298b5120f3 to your computer and use it in GitHub Desktop.
Save muhamad-ridwant-tech/2781e3b3da7c16eb933a8e298b5120f3 to your computer and use it in GitHub Desktop.
Openstack post installation script to set a password for root and cloud-user on CentOS / Redhat
#cloud-config
users:
- default
- name: user-01
gecos: Regular user
sudo: ["ALL=(ALL) NOPASSWD:ALL"]
groups: wheel
chpasswd:
list: |
root:p@ssw0rd!
user-01:p@ssw0rd!
expire: False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment