Puppet Class: oracle_inventory

Inherited by:
oracle_inventory::inventory_pointer
Defined in:
manifests/init.pp

Summary

Provides facts from central inventory interrogation.

Overview

oracle_inventory

This module manages the Oracle central inventory pointer, and provides facts from the inventory.

Examples:

include oracle_inventory

Parameters:

  • manage_pointer (Boolean) (defaults to: true)

    Whether or not to manage the inventory pointer file

  • ensure (Enum['present', 'absent']) (defaults to: 'present')

    Should the pointer file exist

  • file_owner (String) (defaults to: 'root')

    Pointer file owner

  • file_group (String) (defaults to: 'root')

    Pointer file group

  • file_mode (Stdlib::Filemode) (defaults to: '0644')

    Pointer file permissions

  • pointer_file (Optional[Stdlib::UnixPath]) (defaults to: $::facts[oracle_inventory_pointer])

    Full path to the pointer file

  • inventory_dir (Stdlib::UnixPath) (defaults to: '/u01/app/oraInventory')

    Directory for the inventory_loc entry in the pointer file

  • inst_group (String) (defaults to: 'oinstall')

    Value for the inst_group entry in the pointer file



33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# File 'manifests/init.pp', line 33

class oracle_inventory (
  Boolean                    $manage_pointer = true,
  Enum['present', 'absent']  $ensure         = 'present',
  String                     $file_owner     = 'root',
  String                     $file_group     = 'root',
  Stdlib::Filemode           $file_mode      = '0644',
  Optional[Stdlib::UnixPath] $pointer_file   = $::facts[oracle_inventory_pointer],
  Stdlib::UnixPath           $inventory_dir  = '/u01/app/oraInventory',
  String                     $inst_group     = 'oinstall',
){
  ## Take care of Ruby GEM dependency for fact script
  ensure_packages(['xml-simple'], {
    ensure   => installed,
    provider => puppet_gem
  })

  ## Manage the inventory pointer file if not on Windows
  if $manage_pointer and $::kernel != 'windows' {
    include ::oracle_inventory::inventory_pointer
  }
}