diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-01-30 01:21:19 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-01-30 01:21:19 +0000 |
| commit | 1374e4ebe54912225979cd30d4bc1bb74bbb7800 (patch) | |
| tree | e9297e136f8d8e67ca8ffa0b29972b8207028ce6 | |
| parent | dc580cf1258f62ce2cb690f132f231d76fa010ff (diff) | |
| download | puppet-1374e4ebe54912225979cd30d4bc1bb74bbb7800.tar.gz puppet-1374e4ebe54912225979cd30d4bc1bb74bbb7800.tar.xz puppet-1374e4ebe54912225979cd30d4bc1bb74bbb7800.zip | |
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
| -rwxr-xr-x | bin/puppetmasterd | 9 | ||||
| -rw-r--r-- | 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", |
