Method: Puppet.default_cadir
- Defined in:
- lib/puppet/defaults.rb
.default_cadir ⇒ Object
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/puppet/defaults.rb', line 31 def self.default_cadir return "" if Puppet::Util::Platform.windows? old_ca_dir = "#{Puppet[:ssldir]}/ca" new_ca_dir = "/etc/puppetlabs/puppetserver/ca" if File.exist?(old_ca_dir) if File.symlink?(old_ca_dir) File.readlink(old_ca_dir) else old_ca_dir end else new_ca_dir end end |