Skip to content

Instantly share code, notes, and snippets.

@rmueck
Created August 11, 2015 17:44
Show Gist options
  • Save rmueck/9ced4b1a5d4be4270ec1 to your computer and use it in GitHub Desktop.
Save rmueck/9ced4b1a5d4be4270ec1 to your computer and use it in GitHub Desktop.
generator mayhem
$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