# mkdir -p /var/lib/puppet/modules/{production,testing,development}
# cd /var/lib/puppet/modules/
# for environment in production testing development; do \
cd $environment; \
for module in git puppet webserver; do \
git clone git://git.puppetmanaged.org/puppet-module-$module $module; \
cd $module; \
git checkout -b $environment origin/$environment; \
cd ..; \
done; \
cd ..; \
done