Skip to content

Commit 79748f7

Browse files
author
Johan De Wit
committed
[Doc] Move README doc into manifests round2
1 parent ad9148f commit 79748f7

File tree

7 files changed

+99
-5
lines changed

7 files changed

+99
-5
lines changed

lib/puppet/type/mongodb_conn_validator.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
purposes such as monitoring."
99

1010
ensurable do
11+
desc 'Ensure to verify the connection to mongodb'
1112
defaultvalues
1213
defaultto :present
1314
end

lib/puppet/type/mongodb_replset.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
@doc = 'Manage a MongoDB replicaSet'
99

1010
ensurable do
11+
desc 'Ensure the replicaset is iether present or absent'
1112
defaultto :present
1213

1314
newvalue(:present) do

lib/puppet/type/mongodb_shard.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
@doc = 'Manage a MongoDB Shard'
99

1010
ensurable do
11+
desc 'Ensure the shard is iether present or absent'
1112
defaultto :present
1213

1314
newvalue(:present) do

manifests/mongos.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# }
1010
#
1111
# @param config
12-
# Path of the config file. If not specified, the module will use the default for your OS distro.
12+
# Path of the config file. If not specified, the module will use the default for your OS distro.
1313
#
1414
# @param config_content
1515
# Config content if the default doesn't match one needs.
@@ -52,7 +52,7 @@
5252
#
5353
# @param package_name
5454
# This setting can be used to specify the name of the package that should be installed.
55-
# If not specified, the module will use whatever service name is the default for your OS distro.
55+
# If not specified, the module will use whatever service name is the default for your OS distro.
5656
#
5757
# @param unixsocketprefix
5858
# The path for the UNIX socket. If this option has no value, the mongos process creates a socket with /tmp as a prefix.

manifests/mongos/config.pp

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,48 @@
1-
# PRIVATE CLASS: do not call directly
1+
# @private
2+
# @summary Configs mongos
3+
#
4+
# @param package_ensure
5+
# This setting can be used to specify if puppet should install the package or not
6+
#
7+
# @param config
8+
# Path of the config file. If not specified, the module will use the default for your OS distro.
9+
#
10+
# @param config_content
11+
# Config content if the default doesn't match one needs.
12+
#
13+
# @param config_template
14+
# Path to the config template if the default doesn't match one needs.
15+
#
16+
# @param service_manage
17+
# Whether or not the MongoDB sharding service resource should be part of the catalog.
18+
#
19+
# @param configdb
20+
# Array of the config servers IP addresses the mongos should connect to.
21+
#
22+
# @param bind_ip
23+
# Set this option to configure the mongod or mongos process to bind to and listen for connections from applications on this address.
24+
# If not specified, the module will use the default for your OS distro.
25+
#
26+
# @param port
27+
# Specifies a TCP port for the server instance to listen for client connections.
28+
#
29+
# @param fork
30+
# Set to true to fork server process at launch time. The default setting depends on the operating system.
31+
#
32+
# @param pidfilepath
33+
# Specify a file location to hold the PID or process ID of the mongod process.
34+
# If not specified, the module will use the default for your OS distro.
35+
#
36+
# @param logpath
37+
# Specify the path to a file name for the log file that will hold all diagnostic logging information.
38+
# Unless specified, mongod will output all log information to the standard output.
39+
#
40+
# @param unixsocketprefix
41+
# The path for the UNIX socket. If this option has no value, the mongos process creates a socket with /tmp as a prefix.
42+
#
43+
# @param config_data
44+
# Hash containing key-value pairs to allow for additional configuration options to be set in user-provided templ ate.
45+
#
246
class mongodb::mongos::config (
347
$package_ensure = $mongodb::mongos::package_ensure,
448
$config = $mongodb::mongos::config,

manifests/mongos/install.pp

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
1-
# PRIVATE CLASS: do not call directly
1+
# @private
2+
#
3+
# @summary Installs mongos
4+
#
5+
# @param package_ensure
6+
# This setting can be used to specify if puppet should install the package or not
7+
#
8+
# @param package_name
9+
# This setting can be used to specify the name of the package that should be installed.
10+
# If not specified, the module will use whatever service name is the default for your OS distro.
11+
#
212
class mongodb::mongos::install (
313
$package_ensure = $mongodb::mongos::package_ensure,
414
$package_name = $mongodb::mongos::package_name,

manifests/mongos/service.pp

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,41 @@
1-
# PRIVATE CLASS: do not call directly
1+
# @private
2+
#
3+
# @summary Manages the mongos service.
4+
#
5+
# @param package_ensure
6+
# This setting can be used to specify if puppet should install the package or not.
7+
#
8+
# @param service_manage
9+
# Whether or not the MongoDB sharding service resource should be part of the catalog.
10+
#
11+
# @param service_name
12+
# This setting can be used to override the default Mongos service name.
13+
# If not specified, the module will use whatever service name is the default for your OS distro.
14+
#
15+
# @param service_enable
16+
# This setting can be used to specify if the service should be enable at boot.
17+
#
18+
# @param service_ensure
19+
# This setting can be used to specify if the service should be running.
20+
#
21+
# @param service_status
22+
# This setting can be used to override the default status check command for your Mongos service.
23+
# If not specified, the module will use whatever service name is the default for your OS distro.
24+
#
25+
# @param service_provider
26+
# This setting can be used to override the default Mongos service provider.
27+
# If not specified, the module will use whatever service provider is the default for your OS distro.
28+
#
29+
# @param bind_ip
30+
# Set this option to configure the mongod or mongos process to bind to and listen for connections from applicati ons on this address.
31+
# If not specified, the module will use the default for your OS distro.
32+
#
33+
# @param port
34+
# Specifies a TCP port for the server instance to listen for client connections.
35+
#
36+
# @param service_template
37+
# Path to the service template if the default doesn't match one needs.
38+
#
239
class mongodb::mongos::service (
340
$package_ensure = $mongodb::mongos::package_ensure,
441
$service_manage = $mongodb::mongos::service_manage,

0 commit comments

Comments
 (0)