Skip to content

Commit 3aa0a20

Browse files
committed
move class master::config parameter reference to pp
1 parent 315359f commit 3aa0a20

File tree

3 files changed

+155
-147
lines changed

3 files changed

+155
-147
lines changed

README.md

-107
Original file line numberDiff line numberDiff line change
@@ -383,113 +383,6 @@ from managing that file, and you’ll need to manage it yourself.
383383
puppetdb_port => 8081,
384384
}
385385

386-
**Parameters within `puppetdb::master::config`:**
387-
388-
#### `puppetdb_server`
389-
390-
The dns name or ip of the PuppetDB server. Defaults to the hostname of the
391-
current node, i.e. `$::fqdn`.
392-
393-
#### `puppetdb_port`
394-
395-
The port that the PuppetDB server is running on. Defaults to `8081`.
396-
397-
#### `puppetdb_disable_ssl`
398-
399-
If true, use plain HTTP to talk to PuppetDB. Defaults to the value of
400-
`disable_ssl` if PuppetDB is on the same server as the Puppet Master, or else
401-
false. If you set this, you probably need to set `puppetdb_port` to match the HTTP
402-
port of the PuppetDB.
403-
404-
#### `puppetdb_soft_write_failure`
405-
406-
Boolean to fail in a soft manner if PuppetDB is not accessible for command
407-
submission Defaults to `false`.
408-
409-
#### `manage_routes`
410-
411-
If `true`, the module will overwrite the Puppet master's routes file to
412-
configure it to use PuppetDB. Defaults to `true`.
413-
414-
#### `manage_storeconfigs`
415-
416-
If `true`, the module will manage the Puppet master's storeconfig settings.
417-
Defaults to `true`.
418-
419-
#### `manage_report_processor`
420-
421-
If `true`, the module will manage the 'reports' field in the puppet.conf file to
422-
enable or disable the PuppetDB report processor. Defaults to `false`.
423-
424-
#### `manage_config`
425-
426-
If `true`, the module will store values from `puppetdb_server` and `puppetdb_port`
427-
parameters in the PuppetDB configuration file. If `false`, an existing PuppetDB
428-
configuration file will be used to retrieve server and port values.
429-
430-
#### `create_puppet_service_resource`
431-
432-
If `true`, AND if `restart_puppet` is true, then the module will create a service
433-
resource for `puppet_service_name` if it has not been defined. Defaults to `true`.
434-
If you are already declaring the `puppet_service_name` service resource in another
435-
part of your code, setting this to `false` will avoid creation of that service
436-
resource by this module, avoiding potential duplicate resource errors.
437-
438-
#### `strict_validation`
439-
440-
If `true`, the module will fail if PuppetDB is not reachable, otherwise it will
441-
preconfigure PuppetDB without checking.
442-
443-
#### `enable_reports`
444-
445-
Ignored unless `manage_report_processor` is `true`, in which case this setting
446-
will determine whether or not the PuppetDB report processor is enabled (`true`)
447-
or disabled (`false`) in the puppet.conf file.
448-
449-
#### `enable_storeconfigs`
450-
451-
Ignored unless `manage_storeconfigs` is `true`, in which case this setting
452-
will determine whether or not client configuration storage is enabled (`true`)
453-
or disabled (`false`) in the puppet.conf file.
454-
455-
#### `puppet_confdir`
456-
457-
Puppet's config directory. Defaults to `/etc/puppet`.
458-
459-
#### `puppet_conf`
460-
461-
Puppet's config file. Defaults to `/etc/puppet/puppet.conf`.
462-
463-
#### `masterless`
464-
465-
A boolean switch to enable or disable the masterless setup of PuppetDB. Defaults
466-
to `false`.
467-
468-
#### `terminus_package`
469-
470-
Name of the package to use that represents the PuppetDB terminus code. Defaults
471-
to `puppetdb-termini`, when `puppetdb_version` is set to `<= 2.3.x` the default
472-
changes to `puppetdb-terminus`.
473-
474-
#### `puppet_service_name`
475-
476-
Name of the service that represents Puppet. You can change this to `apache2` or
477-
`httpd` depending on your operating system, if you plan on having Puppet run
478-
using Apache/Passenger for example.
479-
480-
#### `puppetdb_startup_timeout`
481-
482-
The maximum amount of time that the module should wait for PuppetDB to start up.
483-
This is most important during the initial install of PuppetDB (defaults to 15
484-
seconds).
485-
486-
#### `restart_puppet`
487-
488-
If `true`, the module will restart the Puppet master when PuppetDB configuration
489-
files are changed by the module. Defaults to `true`. If set to `false`, you
490-
must restart the service manually in order to pick up changes to the config
491-
files (other than `puppet.conf`).
492-
493386
### puppetdb::database::postgresql
494387

495388
The `puppetdb::database::postgresql` class manages a PostgreSQL server for use

REFERENCE.md

+69-40
Original file line numberDiff line numberDiff line change
@@ -1145,37 +1145,38 @@ The following parameters are available in the `puppetdb::master::config` class:
11451145
* [`puppetdb_server`](#-puppetdb--master--config--puppetdb_server)
11461146
* [`puppetdb_port`](#-puppetdb--master--config--puppetdb_port)
11471147
* [`puppetdb_disable_ssl`](#-puppetdb--master--config--puppetdb_disable_ssl)
1148-
* [`masterless`](#-puppetdb--master--config--masterless)
11491148
* [`puppetdb_soft_write_failure`](#-puppetdb--master--config--puppetdb_soft_write_failure)
11501149
* [`manage_routes`](#-puppetdb--master--config--manage_routes)
11511150
* [`manage_storeconfigs`](#-puppetdb--master--config--manage_storeconfigs)
1152-
* [`enable_storeconfigs`](#-puppetdb--master--config--enable_storeconfigs)
11531151
* [`manage_report_processor`](#-puppetdb--master--config--manage_report_processor)
11541152
* [`manage_config`](#-puppetdb--master--config--manage_config)
11551153
* [`create_puppet_service_resource`](#-puppetdb--master--config--create_puppet_service_resource)
11561154
* [`strict_validation`](#-puppetdb--master--config--strict_validation)
11571155
* [`enable_reports`](#-puppetdb--master--config--enable_reports)
1156+
* [`enable_storeconfigs`](#-puppetdb--master--config--enable_storeconfigs)
11581157
* [`puppet_confdir`](#-puppetdb--master--config--puppet_confdir)
11591158
* [`puppet_conf`](#-puppetdb--master--config--puppet_conf)
1159+
* [`masterless`](#-puppetdb--master--config--masterless)
11601160
* [`terminus_package`](#-puppetdb--master--config--terminus_package)
11611161
* [`puppet_service_name`](#-puppetdb--master--config--puppet_service_name)
11621162
* [`puppetdb_startup_timeout`](#-puppetdb--master--config--puppetdb_startup_timeout)
1163-
* [`test_url`](#-puppetdb--master--config--test_url)
11641163
* [`restart_puppet`](#-puppetdb--master--config--restart_puppet)
1164+
* [`test_url`](#-puppetdb--master--config--test_url)
11651165

11661166
##### <a name="-puppetdb--master--config--puppetdb_server"></a>`puppetdb_server`
11671167

11681168
Data type: `Any`
11691169

1170-
1170+
The dns name or ip of the PuppetDB server. Defaults to the hostname of the
1171+
current node, i.e. `$::fqdn`.
11711172

11721173
Default value: `fact('networking.fqdn')`
11731174

11741175
##### <a name="-puppetdb--master--config--puppetdb_port"></a>`puppetdb_port`
11751176

11761177
Data type: `Any`
11771178

1178-
1179+
The port that the PuppetDB server is running on. Defaults to `8081`.
11791180

11801181
Default value:
11811182

@@ -1192,7 +1193,10 @@ defined(Class['puppetdb']) ? {
11921193

11931194
Data type: `Any`
11941195

1195-
1196+
If true, use plain HTTP to talk to PuppetDB. Defaults to the value of
1197+
`disable_ssl` if PuppetDB is on the same server as the Puppet Master, or else
1198+
false. If you set this, you probably need to set `puppetdb_port` to match the HTTP
1199+
port of the PuppetDB.
11961200

11971201
Default value:
11981202

@@ -1202,141 +1206,166 @@ defined(Class['puppetdb']) ? {
12021206
default => false
12031207
```
12041208

1205-
##### <a name="-puppetdb--master--config--masterless"></a>`masterless`
1206-
1207-
Data type: `Any`
1208-
1209-
1210-
1211-
Default value: `$puppetdb::params::masterless`
1212-
12131209
##### <a name="-puppetdb--master--config--puppetdb_soft_write_failure"></a>`puppetdb_soft_write_failure`
12141210

12151211
Data type: `Any`
12161212

1217-
1213+
Boolean to fail in a soft manner if PuppetDB is not accessible for command
1214+
submission Defaults to `false`.
12181215

12191216
Default value: `false`
12201217

12211218
##### <a name="-puppetdb--master--config--manage_routes"></a>`manage_routes`
12221219

12231220
Data type: `Any`
12241221

1225-
1222+
If `true`, the module will overwrite the Puppet master's routes file to
1223+
configure it to use PuppetDB. Defaults to `true`.
12261224

12271225
Default value: `true`
12281226

12291227
##### <a name="-puppetdb--master--config--manage_storeconfigs"></a>`manage_storeconfigs`
12301228

12311229
Data type: `Any`
12321230

1233-
1234-
1235-
Default value: `true`
1236-
1237-
##### <a name="-puppetdb--master--config--enable_storeconfigs"></a>`enable_storeconfigs`
1238-
1239-
Data type: `Any`
1240-
1241-
1231+
If `true`, the module will manage the Puppet master's storeconfig settings.
1232+
Defaults to `true`.
12421233

12431234
Default value: `true`
12441235

12451236
##### <a name="-puppetdb--master--config--manage_report_processor"></a>`manage_report_processor`
12461237

12471238
Data type: `Any`
12481239

1249-
1240+
If `true`, the module will manage the 'reports' field in the puppet.conf file to
1241+
enable or disable the PuppetDB report processor. Defaults to `false`.
12501242

12511243
Default value: `false`
12521244

12531245
##### <a name="-puppetdb--master--config--manage_config"></a>`manage_config`
12541246

12551247
Data type: `Any`
12561248

1257-
1249+
If `true`, the module will store values from `puppetdb_server` and `puppetdb_port`
1250+
parameters in the PuppetDB configuration file. If `false`, an existing PuppetDB
1251+
configuration file will be used to retrieve server and port values.
12581252

12591253
Default value: `true`
12601254

12611255
##### <a name="-puppetdb--master--config--create_puppet_service_resource"></a>`create_puppet_service_resource`
12621256

12631257
Data type: `Any`
12641258

1265-
1259+
If `true`, AND if `restart_puppet` is true, then the module will create a service
1260+
resource for `puppet_service_name` if it has not been defined. Defaults to `true`.
1261+
If you are already declaring the `puppet_service_name` service resource in another
1262+
part of your code, setting this to `false` will avoid creation of that service
1263+
resource by this module, avoiding potential duplicate resource errors.
12661264

12671265
Default value: `true`
12681266

12691267
##### <a name="-puppetdb--master--config--strict_validation"></a>`strict_validation`
12701268

12711269
Data type: `Any`
12721270

1273-
1271+
If `true`, the module will fail if PuppetDB is not reachable, otherwise it will
1272+
preconfigure PuppetDB without checking.
12741273

12751274
Default value: `true`
12761275

12771276
##### <a name="-puppetdb--master--config--enable_reports"></a>`enable_reports`
12781277

12791278
Data type: `Any`
12801279

1281-
1280+
Ignored unless `manage_report_processor` is `true`, in which case this setting
1281+
will determine whether or not the PuppetDB report processor is enabled (`true`)
1282+
or disabled (`false`) in the puppet.conf file.
12821283

12831284
Default value: `false`
12841285

1285-
##### <a name="-puppetdb--master--config--puppet_confdir"></a>`puppet_confdir`
1286+
##### <a name="-puppetdb--master--config--enable_storeconfigs"></a>`enable_storeconfigs`
12861287

12871288
Data type: `Any`
12881289

1290+
Ignored unless `manage_storeconfigs` is `true`, in which case this setting
1291+
will determine whether or not client configuration storage is enabled (`true`)
1292+
or disabled (`false`) in the puppet.conf file.
12891293

1294+
Default value: `true`
1295+
1296+
##### <a name="-puppetdb--master--config--puppet_confdir"></a>`puppet_confdir`
1297+
1298+
Data type: `Any`
1299+
1300+
Puppet's config directory. Defaults to `/etc/puppet`.
12901301

12911302
Default value: `$puppetdb::params::puppet_confdir`
12921303

12931304
##### <a name="-puppetdb--master--config--puppet_conf"></a>`puppet_conf`
12941305

12951306
Data type: `Any`
12961307

1297-
1308+
Puppet's config file. Defaults to `/etc/puppet/puppet.conf`.
12981309

12991310
Default value: `$puppetdb::params::puppet_conf`
13001311

1301-
##### <a name="-puppetdb--master--config--terminus_package"></a>`terminus_package`
1312+
##### <a name="-puppetdb--master--config--masterless"></a>`masterless`
13021313

13031314
Data type: `Any`
13041315

1316+
A boolean switch to enable or disable the masterless setup of PuppetDB. Defaults
1317+
to `false`.
1318+
1319+
Default value: `$puppetdb::params::masterless`
1320+
1321+
##### <a name="-puppetdb--master--config--terminus_package"></a>`terminus_package`
1322+
1323+
Data type: `Any`
13051324

1325+
Name of the package to use that represents the PuppetDB terminus code. Defaults
1326+
to `puppetdb-termini`, when `puppetdb_version` is set to `<= 2.3.x` the default
1327+
changes to `puppetdb-terminus`.
13061328

13071329
Default value: `$puppetdb::params::terminus_package`
13081330

13091331
##### <a name="-puppetdb--master--config--puppet_service_name"></a>`puppet_service_name`
13101332

13111333
Data type: `Any`
13121334

1313-
1335+
Name of the service that represents Puppet. You can change this to `apache2` or
1336+
`httpd` depending on your operating system, if you plan on having Puppet run
1337+
using Apache/Passenger for example.
13141338

13151339
Default value: `$puppetdb::params::puppet_service_name`
13161340

13171341
##### <a name="-puppetdb--master--config--puppetdb_startup_timeout"></a>`puppetdb_startup_timeout`
13181342

13191343
Data type: `Any`
13201344

1321-
1345+
The maximum amount of time that the module should wait for PuppetDB to start up.
1346+
This is most important during the initial install of PuppetDB (defaults to 15
1347+
seconds).
13221348

13231349
Default value: `$puppetdb::params::puppetdb_startup_timeout`
13241350

1325-
##### <a name="-puppetdb--master--config--test_url"></a>`test_url`
1351+
##### <a name="-puppetdb--master--config--restart_puppet"></a>`restart_puppet`
13261352

13271353
Data type: `Any`
13281354

1355+
If `true`, the module will restart the Puppet master when PuppetDB configuration
1356+
files are changed by the module. Defaults to `true`. If set to `false`, you
1357+
must restart the service manually in order to pick up changes to the config
1358+
files (other than `puppet.conf`).
13291359

1360+
Default value: `true`
13301361

1331-
Default value: `$puppetdb::params::test_url`
1332-
1333-
##### <a name="-puppetdb--master--config--restart_puppet"></a>`restart_puppet`
1362+
##### <a name="-puppetdb--master--config--test_url"></a>`test_url`
13341363

13351364
Data type: `Any`
13361365

13371366

13381367

1339-
Default value: `true`
1368+
Default value: `$puppetdb::params::test_url`
13401369

13411370
### <a name="puppetdb--server"></a>`puppetdb::server`
13421371

0 commit comments

Comments
 (0)