Skip to content

Instantly share code, notes, and snippets.

@deric
Last active November 16, 2016 13:14
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 deric/0b6fdbd43eb7b9fe711330ee4a8f39d9 to your computer and use it in GitHub Desktop.
Save deric/0b6fdbd43eb7b9fe711330ee4a8f39d9 to your computer and use it in GitHub Desktop.
#!/bin/sh
puppet module install deric-accounts
mkdir -p /etc/puppet/hieradata
cat <<EOF > /etc/puppet/hiera.yaml
---
:backends:
- yaml
:hierarchy:
- common
:yaml:
:datadir: /etc/puppet/hieradata
EOF
cat <<EOF > /etc/puppet/hieradata/common.yaml
accounts::user_defaults:
shell: /bin/bash
manage_group: true
accounts::users:
dalp:
uid: 1005
comment: dalp
groups:
- users
deployer:
uid: 1010
EOF
puppet apply -e "class{'::accounts': }"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment