Skip to content

Instantly share code, notes, and snippets.

@trlinkin
Created July 29, 2014 02:33
Show Gist options
  • Select an option

  • Save trlinkin/bfabae10f6d0efb0b170 to your computer and use it in GitHub Desktop.

Select an option

Save trlinkin/bfabae10f6d0efb0b170 to your computer and use it in GitHub Desktop.
for i in $( cat /tmp/nodelist_20140711 )
puppet_env=$(/opt/puppet/bin/rake environment=production -f /opt/puppet/share/puppet-dashboard/Rakefile node:listgroups[$i]| grep 'DEV\|QA\|UAT' | tr '[:upper:]' '[:lower:]')
/opt/puppet/bin/rake environment=production -f /opt/puppet/share/puppet-dashboard/Rakefile node:variables[$i,cppib_env=${puppet_env}]
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment