Class: Puppet::Parameter::WlsEncryptedProperty

Inherits:
WlsProperty
  • Object
show all
Includes:
EasyType::EncryptedProperty
Defined in:
lib/puppet_x/enterprisemodules/weblogic/wls_encrypted_property.rb

Overview

See the file “LICENSE” for the full license governing this code.

Instance Method Summary collapse

Instance Method Details

#current_valueObject



9
10
11
12
13
14
15
16
17
# File 'lib/puppet_x/enterprisemodules/weblogic/wls_encrypted_property.rb', line 9

def current_value
  #
  # Puppet asks Weblogic to decrypt the current datasource password stored in the domain and
  # return this to puppet for comparison. The Puppet code does not store the decrypted password
  # on disk.
  #
  wls_config = Puppet_X::EnterpriseModules::WebLogic::Tree.new(resource[:domain])
  wls_config.get_encrypted("#{actual_path(resource)}Encrypted")
end