@@ -43,11 +43,11 @@ instance, without sharding functionality.
4343### Beginning with MongoDB
4444
4545If you just want a server installation with the default options you can run
46- ` include ':: mongodb::server' ` . If you need to customize configuration
46+ ` include mongodb::server ` . If you need to customize configuration
4747options you need to do the following:
4848
4949``` puppet
50- class {':: mongodb::server':
50+ class {'mongodb::server':
5151 port => 27018,
5252 verbose => true,
5353}
@@ -56,7 +56,7 @@ class {'::mongodb::server':
5656For Red Hat family systems, the client can be installed in a similar fashion:
5757
5858``` puppet
59- class {':: mongodb::client':}
59+ class {'mongodb::client':}
6060```
6161
6262Note that for Debian/Ubuntu family systems the client is installed with the
@@ -66,7 +66,7 @@ If one plans to configure sharding for a Mongo deployment, the module offer
6666the ` mongos ` installation. ` mongos ` can be installed the following way :
6767
6868``` puppet
69- class {':: mongodb::mongos' :
69+ class {'mongodb::mongos' :
7070 configdb => ['configsvr1.example.com:27018'],
7171}
7272```
@@ -77,37 +77,37 @@ packages are outdated and not appropriate for a production environment.
7777To install MongoDB from 10gen repository:
7878
7979``` puppet
80- class {':: mongodb::globals':
80+ class {'mongodb::globals':
8181 manage_package_repo => true,
82- }->
83- class {':: mongodb::client': } ->
84- class {':: mongodb::server': }
82+ }
83+ -> class {'mongodb::client': }
84+ -> class {'mongodb::server': }
8585```
8686
8787If you don't want to use the 10gen/MongoDB software repository or the OS packages,
8888you can point the module to a custom one.
8989To install MongoDB from a custom repository:
9090
9191``` puppet
92- class {':: mongodb::globals':
92+ class {'mongodb::globals':
9393 manage_package_repo => true,
9494 repo_location => 'http://example.com/repo'
95- }->
96- class {':: mongodb::server': }->
97- class {':: mongodb::client': }
95+ }
96+ -> class {'mongodb::server': }
97+ -> class {'mongodb::client': }
9898```
9999
100100Having a local copy of MongoDB repository (that is managed by your private modules)
101101you can still enjoy the charms of ` mongodb::params ` that manage packages.
102102To disable managing of repository, but still enable managing packages:
103103
104104``` puppet
105- class {':: mongodb::globals':
105+ class {'mongodb::globals':
106106 manage_package_repo => false,
107107 manage_package => true,
108- }->
109- class {':: mongodb::server': }->
110- class {':: mongodb::client': }
108+ }
109+ -> class {'mongodb::server': }
110+ -> class {'mongodb::client': }
111111```
112112
113113## Usage
@@ -124,7 +124,7 @@ On its own it does nothing.
124124To install MongoDB server, create database "testdb" and user "user1" with password "pass1".
125125
126126``` puppet
127- class {':: mongodb::server':
127+ class {'mongodb::server':
128128 auth => true,
129129}
130130
0 commit comments