summaryrefslogtreecommitdiffstats
path: root/lib/puppet.rb
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2005-08-09 22:47:32 +0000
committerLuke Kanies <luke@madstop.com>2005-08-09 22:47:32 +0000
commitbb4b5a544e85e5a56065ebb5dd175fbdea7280d2 (patch)
treec26ed941fe70d4674a6bea700135dd76f58a8d8c /lib/puppet.rb
parente2e247428faa15c299a5dc7bc802afa4a2dbc74a (diff)
downloadpuppet-bb4b5a544e85e5a56065ebb5dd175fbdea7280d2.tar.gz
puppet-bb4b5a544e85e5a56065ebb5dd175fbdea7280d2.tar.xz
puppet-bb4b5a544e85e5a56065ebb5dd175fbdea7280d2.zip
done a lot of work on certificates; all tests except one puppetca test pass
git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@523 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet.rb')
-rw-r--r--lib/puppet.rb31
1 files changed, 20 insertions, 11 deletions
diff --git a/lib/puppet.rb b/lib/puppet.rb
index d499e7596..2fb9ffbbe 100644
--- a/lib/puppet.rb
+++ b/lib/puppet.rb
@@ -2,6 +2,8 @@
# $Id$
+$VERBOSE = true
+
require 'singleton'
require 'puppet/log'
@@ -35,9 +37,9 @@ module Puppet
str = @message
end
- if Puppet[:debug] and @stack
- str += @stack
- end
+ #if Puppet[:debug] and @stack
+ # str += @stack.to_s
+ #end
return str
end
@@ -57,6 +59,7 @@ module Puppet
}
# I keep wanting to use Puppet.error
+ # XXX this isn't actually working right now
alias :error :err
@defaults = {
@@ -70,19 +73,23 @@ module Puppet
:logfile => [:logdir, "puppet.log"],
:masterlog => [:logdir, "puppetmaster.log"],
:checksumfile => [:statedir, "checksums"],
- :certdir => [:puppetconf, "certs"],
- :rootcert => [:certdir, "ca.crt"],
- :rootkey => [:certdir, "ca.key"],
- :rootpub => [:certdir, "ca.pub"],
- :localcert => [:certdir, "localhost.crt"],
- :localkey => [:certdir, "localhost.key"],
- :localpub => [:certdir, "localhost.pub"],
+ :ssldir => [:puppetconf, "ssl"],
+# :certdir => [:ssldir, "certs"],
+# :publickeydir => [:ssldir, "public_keys"],
+# :privatekeydir => [:ssldir, "private_keys"],
+# :csrdir => [:ssldir, "requests"],
+# :cadir => [:ssldir, "ca"],
+# :cacert => [:cadir, "ca.crt"],
+# :cakey => [:cadir, "ca.key"],
+# :capub => [:cadir, "ca.pub"],
+# :localcert => [:ssldir, "localhost.crt"],
+# :localkey => [:ssldir, "localhost.key"],
+# :localpub => [:ssldir, "localhost.pub"],
# and finally the simple answers,
:server => "puppet",
:rrdgraph => false,
:noop => false,
- :autosign => false,
:parseonly => false,
:puppetport => 8139,
:masterport => 8140,
@@ -182,6 +189,8 @@ module Puppet
end
end
+ # XXX this should all be done using puppet objects, not using
+ # normal mkdir
def self.recmkdir(dir,mode = 0755)
tmp = dir.sub(/^\//,'')
path = [File::SEPARATOR]