Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Puppet Mongoserver profile
class profile::mongoserver {
user { 'mongodb':
ensure => present,
shell => "/bin/false",
gid => "mongodb",
}
group { 'mongodb':
ensure => present,
}
file { '/data':
ensure => directory,
mode => 0755,
owner => 'root',
group => 'root',
}
class { '::mongodb::server':
port => 27017,
verbose => true,
replset => 'DPP',
dbpath => '/data/db/',
fork => true,
#keyfile => '/data/secret',
journal => true,
smallfiles => false,
#logappend => true - This defaults to true anyway.
logpath => '/var/log/mongodb/mongodb.log',
bind_ip => ["0.0.0.0"]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.