Puppet Plan: ora_config::extract

Defined in:
plans/extract.pp

Overview

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

-- –++–

Parameters:

  • target (TargetSpec)
  • sid (String[1])
  • oracle_home (String[1])
  • output_file (String[1])
  • os_user (String[1]) (defaults to: 'oracle')
  • cdb (Boolean) (defaults to: false)
  • pluggable (Boolean) (defaults to: false)
  • contained_by (String) (defaults to: '')


6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'plans/extract.pp', line 6

plan ora_config::extract(
  TargetSpec $target,
  String[1]  $sid,
  String[1]  $oracle_home,
  String[1]  $output_file,
  String[1]  $os_user      = 'oracle',
  Boolean    $cdb          = false,
  Boolean    $pluggable    = false,
  String     $contained_by = '',
) {

  $result = run_task('ora_config::extract', $target,
    sid          => $sid,
    oracle_home  => $oracle_home,
    os_user      => $os_user,
    cdb          => $cdb,
    pluggable    => $pluggable,
    contained_by => $contained_by,
  )
  easy_type::write_yaml($output_file, $result.first.value['resources'])
  out::message("Write data to ${output_file}")
}