Skip to content

Instantly share code, notes, and snippets.

@davidalger
Last active July 21, 2020 14:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidalger/76262343777d3fc12f68e676245ad083 to your computer and use it in GitHub Desktop.
Save davidalger/76262343777d3fc12f68e676245ad083 to your computer and use it in GitHub Desktop.
Cloud config user data for creating VM with davidalger administrative user rather than 'centos' or 'ubuntu' user
#cloud-config
users:
- groups: adm, systemd-journal
name: davidalger
shell: /bin/bash
ssh_authorized_keys:
- |
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA4UTV2t+5Ze6JDiU7Ws9SLKUrh8oq+3lkAIXsx54w8bW8huk4TViqALb4PgYTWwH9eRFUjBzx/9dxTZMrkUPCeHRWxoKmUONTYaH8xz5vGcCbSw/qC/BVXZ6TofRB7vkFWOMDgq8Y57pN/kq7k8cvMUNWqZ+My/k1HPpZLBTHiSDaGb3AU1lXEyPzu0rCHbPeuJcRhIbixhbxTL9RgiKYDcz1UXoklqCnFVC2wP0Hd9LjxASZGJQYdjqHm2bnnEL9ztHDxnY2/9/kRDzXw3wEALDhJQq8/M5xiB9Ul3FVpm2qCqu7NKxZxzM8iH0fyKUz0CZ0pmqkfXSqaYhyH65FdQ== davidmalger@gmail.com
sudo: ALL=(ALL) NOPASSWD:ALL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment