summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-08-28 03:42:26 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-08-28 03:42:26 +0000
commita44b1dd4eaa3dea2b9b8f85d982e2dc4fd06d92a (patch)
treea8b6308e16bc49de05e9cfe9ce9560c1685d87cc /lib
parented1547112dcffe712605e1985c287d252788582c (diff)
downloadpuppet-a44b1dd4eaa3dea2b9b8f85d982e2dc4fd06d92a.tar.gz
puppet-a44b1dd4eaa3dea2b9b8f85d982e2dc4fd06d92a.tar.xz
puppet-a44b1dd4eaa3dea2b9b8f85d982e2dc4fd06d92a.zip
Committing the other half of the fix for #231; oops
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1492 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib')
-rwxr-xr-xlib/puppet/sslcertificates.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/puppet/sslcertificates.rb b/lib/puppet/sslcertificates.rb
index 4df8df71e..15cd9774b 100755
--- a/lib/puppet/sslcertificates.rb
+++ b/lib/puppet/sslcertificates.rb
@@ -9,6 +9,10 @@ rescue LoadError
end
module Puppet::SSLCertificates
+ hostname = Facter["hostname"].value
+ domain = Facter["domain"].value
+ fqdn = [hostname, domain].join(".")
+
Puppet.setdefaults("certificates",
:certdir => ["$ssldir/certs", "The certificate directory."],
:publickeydir => ["$ssldir/public_keys", "The public key directory."],
@@ -24,6 +28,22 @@ module Puppet::SSLCertificates
:mode => 0640,
:desc => "Where puppetd stores the password for its private key.
Generally unused."
+ },
+ :hostcert => { :default => "$certdir/#{fqdn}.pem",
+ :mode => 0644,
+ :desc => "Where individual hosts store and look for their certificates."
+ },
+ :hostprivkey => { :default => "$privatekeydir/#{fqdn}.pem",
+ :mode => 0600,
+ :desc => "Where individual hosts store and look for their private key."
+ },
+ :hostpubkey => { :default => "$publickeydir/#{fqdn}.pem",
+ :mode => 0644,
+ :desc => "Where individual hosts store and look for their public key."
+ },
+ :localcacert => { :default => "$certdir/cacert.pem",
+ :mode => 0644,
+ :desc => "Where each client stores the CA certificate."
}
)