Puppet Class: openstack::profile::mongodb

Defined in:
manifests/profile/mongodb.pp

Overview

The profile to install an OpenStack specific MongoDB server



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'manifests/profile/mongodb.pp', line 2

class openstack::profile::mongodb {
  $management_network = hiera('openstack::network::management')
  $inferred_address = ip_for_network($management_network)
  $explicit_address = hiera('openstack::controller::address::management')

  if $inferred_address != $explicit_address {
    fail("MongoDB setup failed. The inferred location of the database based on the
    openstack::network::management hiera value is ${inferred_address}. The
    explicit address from openstack::controller::address::management
    is ${explicit_address}. Please correct this difference.")
  }

  class { '::mongodb::server':
    bind_ip => ['127.0.0.1', hiera('openstack::controller::address::management')],
  }

  class { '::mongodb::client': }
}