Skip to content

Instantly share code, notes, and snippets.

@patrickkelso
Created June 9, 2015 21:56
Show Gist options
  • Save patrickkelso/915079248012c6749c79 to your computer and use it in GitHub Desktop.
Save patrickkelso/915079248012c6749c79 to your computer and use it in GitHub Desktop.
Puppet profile to create a DB and replica set
class profile::mongomaster {
mongodb_replset { DPP:
ensure => present,
members => ['10.20.1.19:27017', '10.20.1.20:27017', '10.20.1.21:27017'],
}
mongodb_database { 'InsightDBQA':
ensure => present,
tries => 10,
require => Class['mongodb::server'],
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment