Skip to content
Snippets Groups Projects
Commit 8c9ea394 authored by Alessandro Costantini's avatar Alessandro Costantini
Browse files

Modified variable bind_ip

parent 5aa8e8e6
No related branches found
No related tags found
1 merge request!23Dev
class iaas::profile::mongodb ( class iaas::profile::mongodb (
$admin_interface = hiera('iaas::admin_interface', undef),
$hosts = hiera('iaas::mongo::endpoint::coordination', undef), $hosts = hiera('iaas::mongo::endpoint::coordination', undef),
$bootstrap = false, $bootstrap = false,
$master = false, $master = false,
...@@ -17,7 +18,7 @@ class iaas::profile::mongodb ( ...@@ -17,7 +18,7 @@ class iaas::profile::mongodb (
if $bootstrap { if $bootstrap {
class {'::mongodb::server': class {'::mongodb::server':
# bind_ip => ['127.0.0.1',$::facts["ipaddress_eth1"]], #[$::facts["ipaddress_${admin_interface}"]], # bind_ip => ['127.0.0.1',$::facts["ipaddress_eth1"]], #[$::facts["ipaddress_${admin_interface}"]],
bind_ip => ['127.0.0.1',$::facts["ipaddress_eth1"]], bind_ip => ['127.0.0.1',$::facts["ipaddress_${admin_interface}"]],
port => '27017', port => '27017',
auth => true, auth => true,
journal => 'true', journal => 'true',
...@@ -39,7 +40,7 @@ class iaas::profile::mongodb ( ...@@ -39,7 +40,7 @@ class iaas::profile::mongodb (
} else { } else {
class {'::mongodb::server': class {'::mongodb::server':
# bind_ip => ['127.0.0.1',$::facts["ipaddress_eth1"]], #[$::facts["ipaddress_${admin_interface}"]], # bind_ip => ['127.0.0.1',$::facts["ipaddress_eth1"]], #[$::facts["ipaddress_${admin_interface}"]],
bind_ip => ['127.0.0.1',$::facts["ipaddress_eth1"]], bind_ip => ['127.0.0.1',$::facts["ipaddress_${admin_interface}"]],
replset => 'rs0', replset => 'rs0',
replset_config => { 'rs0' => { ensure => present, members => $hosts } }, replset_config => { 'rs0' => { ensure => present, members => $hosts } },
port => '27017', port => '27017',
...@@ -58,7 +59,7 @@ class iaas::profile::mongodb ( ...@@ -58,7 +59,7 @@ class iaas::profile::mongodb (
class {'::mongodb::server': class {'::mongodb::server':
# bind_ip => ['127.0.0.1',$::facts["ipaddress_eth1"]], #[$::facts["ipaddress_${admin_interface}"]], # bind_ip => ['127.0.0.1',$::facts["ipaddress_eth1"]], #[$::facts["ipaddress_${admin_interface}"]],
bind_ip => ['127.0.0.1',$::facts["ipaddress_eth1"]], bind_ip => ['127.0.0.1',$::facts["ipaddress_${admin_interface}"]],
port => '27017', port => '27017',
auth => true, auth => true,
journal => 'true', journal => 'true',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment