Skip to content
This repository has been archived by the owner on May 14, 2021. It is now read-only.

adds a second yaml configuration file for cassandra 2.0.x #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
8 changes: 7 additions & 1 deletion manifests/config.pp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
class cassandra::config(
$config_path,
$package_name,
$max_heap_size,
$heap_newsize,
$jmx_port,
Expand Down Expand Up @@ -58,8 +59,13 @@
content => template("${module_name}/cassandra-env.sh.erb"),
}

$config_ver = $package_name ? {
'dsc20' => 'dsc20',
default => 'dsc12',
}

file { "${config_path}/cassandra.yaml":
ensure => file,
content => template("${module_name}/cassandra.yaml.erb"),
content => template("${module_name}/cassandra-${config_ver}.yaml.erb"),
}
}
1 change: 1 addition & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@

class { 'cassandra::config':
config_path => $config_path,
package_name => $package_name,
max_heap_size => $max_heap_size,
heap_newsize => $heap_newsize,
jmx_port => $jmx_port,
Expand Down
Loading