Skip to content
This repository was archived by the owner on Mar 17, 2023. It is now read-only.

Commit 5f6d547

Browse files
committed
prepare for puppetforge release 3.1.0
1 parent 046ccf1 commit 5f6d547

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

Modulefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name 'dwerder-mongodb'
2-
version '3.1.0'
2+
version '3.2.0'
33
source 'git clone https://github.com/echocat/puppet-mongodb.git'
44
author 'echocat / Daniel Werdermann'
55
license 'Mozilla Public License Version 2.0'

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,22 @@ facter > 1.6.2
2020
puppet > 2.6.2
2121

2222
# Parameters:
23+
24+
### Global
25+
26+
Most global parameters are set in params.pp and should fit the most use cases.
27+
But you can also set them, when including class mongodb.
28+
Parameters:
29+
30+
dbdir = mongodb::params::dbdir,
31+
pidfilepath = mongodb::params::pidfilepath,
32+
logdir = mongodb::params::logdir,
33+
logrotatenumber = mongodb::params::logrotatenumber,
34+
ulimit_nofiles = mongodb::params::ulimit_nofiles,
35+
run_as_user = mongodb::params::run_as_user,
36+
run_as_group = mongodb::params::run_as_group,
37+
old_servicename = mongodb::params::old_servicename
38+
2339
### Starting mongod
2440

2541
mongod_instance = despription of mongd service (shard1, config, etc) (required)
@@ -108,6 +124,23 @@ puppet > 2.6.2
108124
node 'mongo4.my.domain' inherits mongo_sharding_default { }
109125
</pre>
110126

127+
## Change run as user and logdir path
128+
<pre>
129+
node mongod.my.domain {
130+
class { 'mongodb':
131+
run_as_user => mongod,
132+
run_as_group => wheel,
133+
logdir => '/nfsshare/mymongologs/'
134+
}
135+
mongodb::mongod {
136+
'my_mongod_instanceX':
137+
mongod_instance => 'mongodb1',
138+
mongod_replSet => 'mongoShard1',
139+
mongod_add_options => ['fastsync','slowms = 50']
140+
}
141+
}
142+
</pre>
143+
111144

112145
# Author
113146

0 commit comments

Comments
 (0)