Class: MintPress::OracleEBS::EbsHost

Inherits:
Object
  • Object
show all
Includes:
MintLogger, EbsUtils
Defined in:
src/oracle-ebs/lib/oracle-ebs/ebshost.rb

Properties (Read/Write)

Properties (Read Only)

Constant Summary

Constants included from MintLogger

MintLogger::DEBUG, MintLogger::ERROR, MintLogger::FATAL, MintLogger::INFO, MintLogger::UNKNOWN, MintLogger::VERBOSE, MintLogger::WARN

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from MintLogger::Utils::Common

#boolean_val, #has_value?, #no_value?, #nvl, #path_as_symbol, #ruby_level_to_send

Methods included from EbsUtils

#build_path, #check_base, #copy_direct, #copy_indirect, #create_tarball, #set_ebs_init, #translate_sff, #untar_tarball

Constructor Details

#initialize(attributes) ⇒ EbsHost

initialize: Setup the EbsHost object

Raises:

  • (ArgumentError)

Instance Attribute Details

#accountsObject (readonly)

Returns the value of attribute accounts.

#ebs_ownerObject (readonly)

Returns the value of attribute ebs_owner.

#endpointObject (readonly)

Returns the value of attribute endpoint.

#hostObject (readonly)

Returns the value of attribute host.

#oraInstObject (readonly)

Returns the value of attribute oraInst.

#pairs_filesObject (readonly)

Returns the value of attribute pairs_files.

#patchbase_portObject

Returns the value of attribute patchbase_port.

#remove_fmwObject (readonly)

Returns the value of attribute remove_fmw.

#runbase_portObject

Returns the value of attribute runbase_port.

#servicesObject (readonly)

Returns the value of attribute services.

Instance Method Details

#admin_server_up?(base:) ⇒ Boolean

Returns:

  • (Boolean)

#build_bin_scriptObject

build_bin_script: Creates a shell script to run commands from ORACLE_HOME/bin - allows us to get around environments before the clone is finished where the environment files aren't there yet.

#call_bin_script(command:, script:, user_pass: :IGNORE, timeout: 1800, ignore_missing_run_file: false) ⇒ Object

call_bin_script: runs the @host.call_bin_script routine, passing the ebs_owner in as the sudo user.

#delete_node(hostname:) ⇒ Object

#inspectObject

#load_variablesObject

load_variables: Uses the host transport to derive the various environment variables from the host and to locate the oracle inventory.

Raises:

  • (ArgumentError)

#parse_pairsfilesObject

parse_pairs_file: Parse the control file passed in, replacing values based on the parameters provided.

#remove_fmw_homesObject

#run_adadminsrvctl(base:, mode:) ⇒ Object

#run_adalnctl(mode:) ⇒ Object

#run_adautocfg(base:) ⇒ Object

#run_adclonectx(base:, primary_host:, dualfs:) ⇒ Object

#run_admin_script(base:, script:, force_patch_fs: base.eql?(:patch)) ⇒ Object

#run_admkappsutilObject

#run_adnodemgrctl(base:, mode:) ⇒ Object

#run_adstpall(base:) ⇒ Object

#run_adstrtal(base:) ⇒ Object

#run_preclone(base:, mode:) ⇒ Object

preclone: Executes the adpreclone script in appsTier more.

#set_context_sff_value(enabled:) ⇒ Object

#shared_base_set?(enabled:, context_file_name:) ⇒ Boolean

Returns:

  • (Boolean)

#shared_file_system?Boolean

Returns:

  • (Boolean)

#switch_shared_base(base:, enabled:) ⇒ Object

#to_sObject