diff options
author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-02-07 23:12:33 +0000 |
---|---|---|
committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-02-07 23:12:33 +0000 |
commit | b98e65f1fd858a1d0af415554db49a121a76232c (patch) | |
tree | 728f94dd17f88902c6bdf21ff6b17486babb08af /lib/puppet/sslcertificates.rb | |
parent | f1ffc34c0927840beeb21e1e2d864ce14de5d15e (diff) | |
download | puppet-b98e65f1fd858a1d0af415554db49a121a76232c.tar.gz puppet-b98e65f1fd858a1d0af415554db49a121a76232c.tar.xz puppet-b98e65f1fd858a1d0af415554db49a121a76232c.zip |
There is now full support for configuration files, and the entire system has been modified to expect their new behaviour. I have not yet run the test across all test hosts, though.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@873 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/sslcertificates.rb')
-rwxr-xr-x | lib/puppet/sslcertificates.rb | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/lib/puppet/sslcertificates.rb b/lib/puppet/sslcertificates.rb index 0c6322bcf..fef661178 100755 --- a/lib/puppet/sslcertificates.rb +++ b/lib/puppet/sslcertificates.rb @@ -9,36 +9,36 @@ rescue LoadError end module Puppet::SSLCertificates - def self.mkdir(dir) - # this is all a bunch of stupid hackery - unless FileTest.exists?(dir) - comp = Puppet.type(:component).create( - :name => "certdir creation" - ) - path = [''] - - dir.split(File::SEPARATOR).each { |d| - path << d - if FileTest.exists?(File.join(path)) - unless FileTest.directory?(File.join(path)) - raise "%s exists but is not a directory" % File.join(path) - end - else - obj = Puppet::Type.type(:file).create( - :name => File.join(path), - :mode => "750", - :ensure => "directory" - ) - - comp.push obj - end - } - trans = comp.evaluate - trans.evaluate - end - - Puppet::Type.allclear - end +# def self.mkdir(dir) +# # this is all a bunch of stupid hackery +# unless FileTest.exists?(dir) +# comp = Puppet.type(:component).create( +# :name => "certdir creation" +# ) +# path = [''] +# +# dir.split(File::SEPARATOR).each { |d| +# path << d +# if FileTest.exists?(File.join(path)) +# unless FileTest.directory?(File.join(path)) +# raise "%s exists but is not a directory" % File.join(path) +# end +# else +# obj = Puppet::Type.type(:file).create( +# :name => File.join(path), +# :mode => "750", +# :ensure => "directory" +# ) +# +# comp.push obj +# end +# } +# trans = comp.evaluate +# trans.evaluate +# end +# +# Puppet::Type.allclear +# end #def self.mkcert(type, name, days, issuercert, issuername, serial, publickey) def self.mkcert(hash) |