Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Puppetfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ mod 'alup/rbenv'
mod 'nginx', git: 'https://github.com/jfryman/puppet-nginx'
mod 'puppetlabs/postgresql'
mod 'puppetlabs/mysql'
mod 'gini/cassandra', git: 'https://github.com/dcosson/puppet-cassandra.git'
mod 'apache', git: 'https://github.com/puppetlabs/puppetlabs-apache'
mod 'freighthop', path: 'local_modules/freighthop'
10 changes: 10 additions & 0 deletions Puppetfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@ FORGE
puppetlabs/stdlib (4.1.0)
ripienaar/concat (0.2.0)

GIT
remote: https://github.com/dcosson/puppet-cassandra.git
ref: master
sha: 1f83dbe45d1f715d6edec393a7b08c13ec3c3784
specs:
gini/cassandra (0.4.0)
puppetlabs/apt (~> 1)
puppetlabs/stdlib (>= 3.0.0)

GIT
remote: https://github.com/jfryman/puppet-nginx
ref: master
Expand Down Expand Up @@ -44,6 +53,7 @@ DEPENDENCIES
alup/rbenv (>= 0)
apache (>= 0)
freighthop (>= 0)
gini/cassandra (>= 0)
nginx (>= 0)
puppetlabs/apt (>= 0)
puppetlabs/mysql (>= 0)
Expand Down
3 changes: 3 additions & 0 deletions local_modules/freighthop/manifests/database.pp
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,7 @@
if member($servers, 'mysql') {
class { 'freighthop::database::mysql':}
}
if member($servers, 'cassandra') {
class { 'freighthop::database::cassandra':}
}
}
15 changes: 15 additions & 0 deletions local_modules/freighthop/manifests/database/cassandra.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
class freighthop::database::cassandra(
$cluster_name = 'freighthop',
$seeds = [ '127.0.0.1', ],
$listen_address = '127.0.0.1',
$package_name = 'dsc20',
$thread_stack_size = '256',
) {
class { '::cassandra':
package_name => $package_name,
cluster_name => $cluster_name,
seeds => $seeds,
thread_stack_size => $thread_stack_size,
listen_address => $listen_address
}
}