From 1374e4ebe54912225979cd30d4bc1bb74bbb7800 Mon Sep 17 00:00:00 2001 From: luke Date: Tue, 30 Jan 2007 01:21:19 +0000 Subject: Moving the switch that disables the certificate authority into the main library, so they can be disabled in the configuration file. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2118 980ebf18-57e1-0310-9a29-db15c13687c0 --- bin/puppetmasterd | 9 +++++---- lib/puppet/sslcertificates/ca.rb | 2 ++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/bin/puppetmasterd b/bin/puppetmasterd index 96b2c9c2d..2fd27ac46 100755 --- a/bin/puppetmasterd +++ b/bin/puppetmasterd @@ -46,7 +46,8 @@ # Do not function as a file bucket. # # noca:: -# Do not function as a certificate authority. +# Do not function as a certificate authority. This is deprecated. Use '--no-ca' +# now. # # nonodes:: # Do not use individual node designations; each node will receive the result @@ -111,7 +112,6 @@ bucket = {} args = {} options = { - :haveca => true, :havereport => true, :havebucket => true, :havemaster => true, @@ -137,7 +137,8 @@ begin when "--noreports" options[:havereport] = false when "--noca" - options[:haveca] = false + Puppet[:ca] = false + Puppet.warning "--noca is deprecated. Please use --no-ca." when "--nomaster" options[:havemaster] = false when "--nobucket" @@ -219,7 +220,7 @@ if options[:havereport] handlers[:Report] = report end -if options[:haveca] +if Puppet[:ca] handlers[:CA] = ca end diff --git a/lib/puppet/sslcertificates/ca.rb b/lib/puppet/sslcertificates/ca.rb index 572abafd7..13b845472 100644 --- a/lib/puppet/sslcertificates/ca.rb +++ b/lib/puppet/sslcertificates/ca.rb @@ -5,6 +5,8 @@ class Puppet::SSLCertificates::CA attr_accessor :keyfile, :file, :config, :dir, :cert, :crl Puppet.setdefaults(:ca, + :ca => [true, + "Whether a CA should be started in puppetmasterd."], :cadir => { :default => "$ssldir/ca", :owner => "$user", :group => "$group", -- cgit