Added support for disabling or using thin storedconfigs into puppet::server class.
This commit is contained in:
parent
5e576c7269
commit
05b0b8ab70
2 changed files with 16 additions and 1 deletions
|
@ -106,12 +106,24 @@ class puppet::manual inherits puppet::client {
|
|||
# Array containing ports that puppetmaster should listen to. Defaults to
|
||||
# [ "18140", "18141", "18142", "18143", ].
|
||||
#
|
||||
# $puppet_storeconfigs:
|
||||
# Store config type to use. Valid values are "thin", "full" and "none".
|
||||
# Defaults to "thin".
|
||||
#
|
||||
class puppet::server inherits puppet::client {
|
||||
|
||||
if ! $puppet_listenports {
|
||||
$puppet_listenports = [ "18140", "18141", "18142", "18143", ]
|
||||
}
|
||||
|
||||
case $puppet_storeconfigs {
|
||||
"": { $puppet_storeconfigs = "thin" }
|
||||
"thin","full","none": { }
|
||||
default: {
|
||||
fail("Invalid value ${puppet_storeconfigs} for variable \$puppet_storeconfigs.")
|
||||
}
|
||||
}
|
||||
|
||||
package { "puppet-server":
|
||||
ensure => installed,
|
||||
}
|
||||
|
|
|
@ -12,7 +12,10 @@
|
|||
# Server bucket store.
|
||||
bucketdir = /srv/puppet/bucket
|
||||
|
||||
<% if puppet_storeconfigs != 'none' -%>
|
||||
# Use storeconfigs
|
||||
storeconfigs = true
|
||||
<% if puppet_storeconfigs == 'thin' %> thin_storedconfigs = true<% end %>
|
||||
dbadapter = sqlite3
|
||||
dblocation = /srv/puppet/storeconfigs/storeconfigs.db
|
||||
<% end -%>
|
||||
|
|
Loading…
Add table
Reference in a new issue