Puppet Class: mongodb::mongos::config
- Defined in:
- manifests/mongos/config.pp
Overview
PRIVATE CLASS: do not call directly
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'manifests/mongos/config.pp', line 2
class mongodb::mongos::config (
$ensure = $mongodb::mongos::ensure,
$config = $mongodb::mongos::config,
$config_content = $mongodb::mongos::config_content,
$config_template = $mongodb::mongos::config_template,
$configdb = $mongodb::mongos::configdb,
) {
if ($ensure == 'present' or $ensure == true) {
#Pick which config content to use
if $config_content {
$config_content_real = $config_content
} elsif $config_template {
$config_content_real = template($config_template)
} else {
$config_content_real = template('mongodb/mongodb-shard.conf.erb')
}
file { $config:
content => $config_content_real,
owner => 'root',
group => 'root',
mode => '0644',
}
}
}
|