Created
August 21, 2015 01:41
-
-
Save bradcypert/2c33c83058ef862312d5 to your computer and use it in GitHub Desktop.
Dat Puppet doe.
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
exec { 'update_packages': | |
command => 'apt-get update', | |
path => '/usr/bin', | |
} | |
# Install Leiningen to run tests and build project | |
exec { 'get_leiningen': | |
command => '/usr/bin/wget https://raw.github.com/technomancy/leiningen/stable/bin/lein -O /usr/bin/lein && /bin/chmod a+x /usr/bin/lein', | |
unless => '/usr/bin/which lein &>/dev/null', | |
} | |
class { 'postgresql::server': } | |
postgresql::server::db { 'hatchery_db': | |
user => 'hatchery_user', | |
password => postgresql_password('hatchery_user', 'larva'), | |
} | |
postgresql::server::db { 'restful_test': | |
user => 'restful_test', | |
password => postgresql_password('hatchery_test', 'larva'), | |
} | |
include java7 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
so what problem are you having exactly? there's nothing inherently wring with the syntax as far as I can tell.