Skip to content

Instantly share code, notes, and snippets.

Created January 5, 2018 20:03
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save kingdonb/57314e657ed2ad6d18adca452952bacf to your computer and use it in GitHub Desktop.
local-hostname: cloudimg
# vim:syntax=yaml
# A user by the name ec2-user is created in the image by default.
- default
# Following entry create user1 and assigns password specified in plain text.
# Please not use of plain text password is not recommended from security best
# practises standpoint
- name: user1
groups: sudo
plain_text_passwd: password
lock_passwd: false
# Following entry creates user2 and attaches a hashed passwd to the user. Hashed
# passwords can be generated with:
# python -c 'import crypt,getpass; print crypt.crypt(getpass.getpass())'
# - name: user2
# passwd: < hashed password here >
# lock_passwd: false
# Following entry creates user3, disables password based login and enables an SSH public key
# - name: user3
# ssh-authorized-keys:
# - < ssh public key here >
# lock_passwd: true
list: |
Copy link

sclan commented Mar 22, 2019

is the file name "user-info" correct? I ask because the official page uses user-data instead:

But I had trouble getting seed.iso based on the info from that page to work, and init.iso worked like a charm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment