Added variable for puppet key length and increased default to 2048.
This commit is contained in:
parent
de8f831f79
commit
0f87959499
2 changed files with 7 additions and 0 deletions
|
@ -9,6 +9,10 @@ class puppet::client {
|
||||||
$puppet_server = "puppet"
|
$puppet_server = "puppet"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ! $puppet_keylength {
|
||||||
|
$puppet_keylength = "2048"
|
||||||
|
}
|
||||||
|
|
||||||
case $operatingsystem {
|
case $operatingsystem {
|
||||||
openbsd: { $vardir = "/var/puppet" }
|
openbsd: { $vardir = "/var/puppet" }
|
||||||
default: { $vardir = "/var/lib/puppet" }
|
default: { $vardir = "/var/lib/puppet" }
|
||||||
|
|
|
@ -40,6 +40,9 @@
|
||||||
pluginsignore = .svn CVS RCS
|
pluginsignore = .svn CVS RCS
|
||||||
factpath = $vardir/lib/facter
|
factpath = $vardir/lib/facter
|
||||||
|
|
||||||
|
# The bit length of keys.
|
||||||
|
keylength = <%= puppet_keylength %>
|
||||||
|
|
||||||
<% if puppetversion[/\d+/].to_i >= 2 -%>
|
<% if puppetversion[/\d+/].to_i >= 2 -%>
|
||||||
[agent]
|
[agent]
|
||||||
<% else -%>
|
<% else -%>
|
||||||
|
|
Loading…
Add table
Reference in a new issue