Last active
November 16, 2016 12:12
-
-
Save deric/f48dd53ef7c16b56d442c8d9b6ccdd62 to your computer and use it in GitHub Desktop.
Script to reproduce bug #46 https://github.com/deric/puppet-accounts/issues/46
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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: | |
purge_ssh_keys: false | |
accounts::users: | |
account1: | |
manage_group: false | |
uid: 1417 | |
groups: | |
- staff | |
comment: 'test' | |
accounts::groups: | |
staff: | |
gid: 3000 | |
EOF | |
puppet apply -e "class{'::accounts': }" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment