Use git submodule foreach
Fix Puppet 2.6 compatibility, parse error with hash in function call
Ensure the terminal global is always set
Add create_resources from puppetlabs to make this work on 2.6