Skip to content

Instantly share code, notes, and snippets.

@ns408
Created August 14, 2014 22:45
Show Gist options
  • Save ns408/a0c59e60f523ae37f40d to your computer and use it in GitHub Desktop.
Save ns408/a0c59e60f523ae37f40d to your computer and use it in GitHub Desktop.
class { '::mongodb::globals': manage_package_repo => $manage_package_repo, } ->
class { '::mongodb::server':
bind_ip => "0.0.0.0",
auth => true,
} ->
class { '::mongodb::client': }
$databasename = hiera('mongo_databasename', "mongo_databasename")
$databaseuser = hiera('mongo_databaseuser', "mongo_databaseuser")
$databasepass = hiera('mongo_databasepass', "mongo_databasepass")
mongodb::db { $databasename:
user => $databaseuser,
password => $databasepass,
require => Class['mongodb::server'],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment