Last active
August 29, 2015 14:10
-
-
Save jpadams/fa151e35b4d850355538 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| #! /bin/bash | |
| PUPPET='/opt/puppet/bin/puppet' | |
| $PUPPET module install stahnma-epel --version '0.0.6' | |
| $PUPPET module install elasticsearch-elasticsearch --version '0.3.2' | |
| $PUPPET module install gini-archive --version '0.2.0' | |
| $PUPPET module install dwerder-graphite --version '5.3.3' | |
| cd `$PUPPET config print modulepath | cut -d: -f1` | |
| $PUPPET apply -e "package {'git': ensure => 'installed',}" | |
| git clone https://github.com/jpadams/grafanadash.git | |
| $PUPPET apply -e 'include grafanadash' |
Author
Thanks, dgrstl! I've reworked the script to address your two concerns:
- I reordered the script to run puppet module install first so the modules dir is created, if needed.
- I added your line to install git.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Couple of observations: 1) L4 fails if there are no locally installed modules as /etc/puppetlabs/puppet/modules does not exist and 2) L9 will fail as git isn't installed on our demo images by default (at least not centos65a) so should probably add a puppet apply -e "package {'git': ensure => 'installed',}"