summaryrefslogtreecommitdiffstats
path: root/lib/puppet/ssl/host.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/ssl/host.rb')
-rw-r--r--lib/puppet/ssl/host.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/puppet/ssl/host.rb b/lib/puppet/ssl/host.rb
index 42f881568..9b0ba2c71 100644
--- a/lib/puppet/ssl/host.rb
+++ b/lib/puppet/ssl/host.rb
@@ -17,6 +17,8 @@ class Puppet::SSL::Host
attr_reader :name
attr_accessor :ca
+ attr_writer :key, :certificate, :certificate_request
+
CA_NAME = "ca"
# This is the constant that people will use to mark that a given host is
@@ -150,7 +152,7 @@ class Puppet::SSL::Host
def initialize(name)
@name = name
@key = @certificate = @certificate_request = nil
- @ca = false
+ @ca = (name == self.class.ca_name)
end
# Extract the public key from the private key.