Created
August 11, 2015 17:44
-
-
Save rmueck/9ced4b1a5d4be4270ec1 to your computer and use it in GitHub Desktop.
generator mayhem
This file contains 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
$login_groupsarray = hiera_array($portal_flavour) | |
$login_groups = shellquote($login_groupsarray) | |
$login_users = generate('/bin/bash', '-c', '/usr/local/bin/getusersfromgroups.sh', $login_groups) | |
this is working under Debian ...but not under RHEL 6.x | |
the script is simply: | |
GROUPS=$1 | |
getent group $1|cut -d':' -f4-|paste -s -d ',' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment