nosql: convert bind_ip to array

Close bug #170

Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>
This commit is contained in:
Emilien Macchi
2014-02-06 17:45:56 +01:00
parent 74cf957d24
commit 6cf51bd08b

View File

@@ -21,13 +21,15 @@ class cloud::database::nosql(
$bind_ip = $os_params::api_eth,
) {
# bind_ip should be an array
$bind_ip_real = any2array($bind_ip)
# use mongo's own repo instead of the distro's
class { 'mongodb::globals':
manage_package_repo => true
}->
class { 'mongodb':
bind_ip => [$bind_ip],
bind_ip => $bind_ip_real,
}
}