Added variable for puppet key length and increased default to 2048.

This commit is contained in:
Ossi Salmi 2011-07-06 16:42:43 +03:00 committed by Timo Mkinen
parent de8f831f79
commit 0f87959499
2 changed files with 7 additions and 0 deletions

View file

@ -9,6 +9,10 @@ class puppet::client {
$puppet_server = "puppet"
}
if ! $puppet_keylength {
$puppet_keylength = "2048"
}
case $operatingsystem {
openbsd: { $vardir = "/var/puppet" }
default: { $vardir = "/var/lib/puppet" }

View file

@ -40,6 +40,9 @@
pluginsignore = .svn CVS RCS
factpath = $vardir/lib/facter
# The bit length of keys.
keylength = <%= puppet_keylength %>
<% if puppetversion[/\d+/].to_i >= 2 -%>
[agent]
<% else -%>