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,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue