Skip to content

Commit 8b7282f

Browse files
committed
1 parent a16ec37 commit 8b7282f

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,10 @@ Specify the supported SSL protocols for PuppetDB (e.g. TLSv1, TLSv1.1, TLSv1.2.)
365365
Configure jetty's supported `cipher-suites` (e.g. `SSL_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384`).
366366
Defaults to `undef`.
367367

368+
#### `migrate`
369+
370+
If `true`, puppetdb will automatically migrate to the latest database format at startup. If `false`, if the database format supplied by this version of PuppetDB doesn't match the version expected (whether newer or older), PuppetDB will exit with an error status. Defaults to `true`.
371+
368372
### `manage_dbserver`
369373

370374
If true, the PostgreSQL server will be managed by this module. Defaults to `true`.

manifests/params.pp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
$conn_lifetime = '0'
5454

5555
$max_threads = undef
56+
$migrate = true
5657

5758
# These settings are for the read database
5859
$read_database = 'postgres'

manifests/server/database.pp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
$puppetdb_user = $puppetdb::params::puppetdb_user,
2525
$puppetdb_group = $puppetdb::params::puppetdb_group,
2626
$database_max_pool_size = $puppetdb::params::database_max_pool_size,
27+
$migrate = $puppetdb::params::migrate,
2728
) inherits puppetdb::params {
2829

2930
if str2bool($database_validate) {
@@ -165,6 +166,11 @@
165166
value => $conn_lifetime,
166167
}
167168

169+
ini_setting { 'puppetdb_migrate':
170+
setting => 'migrate',
171+
value => $migrate,
172+
}
173+
168174
if $puppetdb::params::database_max_pool_size_setting_name != undef {
169175
if $database_max_pool_size == 'absent' {
170176
ini_setting { 'puppetdb_database_max_pool_size':

0 commit comments

Comments
 (0)