add modules for stash and a profile

This commit is contained in:
Nick Walker 2015-08-25 16:51:42 -07:00
parent 01baf7695a
commit 04f3239514
2 changed files with 32 additions and 10 deletions

View File

@ -8,6 +8,9 @@ mod "puppetlabs/stdlib", :latest
mod "puppetlabs/concat", :latest
mod "puppetlabs/ntp", :latest
mod "saz/ssh", :latest
mod "puppetlabs/postgresql", '4.5.0'
mod "puppetlabs/stash", '1.3.0'
mod "puppetlabs/java", '1.4.1'
#An example of using a specific forge module version instead of latest
#Notice the addition of single quotes
@ -30,13 +33,4 @@ mod 'r10k',
mod 'gms',
:git => 'https://github.com/abrader/abrader-gms',
:tag => '3d088c8ba8cef6d108236a8cee06ab7bedd6deeb'
#mod 'notifyme',
# :git => 'git://github.com/glarizza/puppet-notifyme',
# :ref => '50c01703b2e3e352520a9a2271ea4947fe17a51f'
#mod 'profiles',
# :git => 'git://github.com/glarizza/puppet-profiles',
# :ref => '3611ae4253ff01762f9bda1d93620edf8f9a3b22'
:tag => 'bb5bcaa4e0fbeb2dae08eedb09d7eec1681a6172'

View File

@ -0,0 +1,28 @@
class profile::stash {
class { 'java' :
version => present,
} ->
class { 'postgresql::globals':
manage_package_repo => true,
version => '9.4',
}->
class { 'postgresql::server': } ->
postgresql::server::db { 'stash':
user => 'stash',
password => postgresql_password('stash', 'password'),
} ->
class { 'stash':
javahome => '/etc/alternatives/java_sdk',
#dev.mode grants a 24-hour license for testing
java_opts => '-Datlassian.dev.mode=true',
}
file { '/opt/puppetlabs/bin/stash_mco.rb':
source => 'puppet:///modules/r10k/stash_mco.rb',
}
}