enterprisemodules-ora_profile

Puppet profiles for installing Oracle Databse software and creating and managing databases


License
Other
Install
puppet module install enterprisemodules-ora_profile --version 0.10.0

Documentation

Enterprise Modules

Table of Contents

  1. Overview
  2. License
  3. Description - What the module does and why it is useful
  4. Setup
  1. Usage - Configuration options and additional functionality
  2. Reference - An under-the-hood peek at what the module is doing and how
  3. Limitations - OS compatibility, etc.

Overview

The ora_profile module allows an easy path from first simple installation to a fully customized Enterprise setup. It is part of our family of Puppet modules to install, manage and secure Oracle databases with Puppet. Besides the ora_profile module, this family also contains:

  • ora_install For installing an Oracle database and other database related Oracle products
  • ora_config For configuring every aspect of your Oracle database
  • ora_cis To secure your databases according to the CIS benchmarks.
  • ora_rac To use Puppet to create and manage Oracle RAC installations.

This module support Oracle 10, 11, 12, 18 and 19

License

Most of the Enterprise Modules modules are commercial modules. This one is NOT. It is an Open Source module. You are free to use it any way you like. It, however, is based on our commercial Puppet Oracle modules.

Description

The ora_profile::database class contains all the Puppet code to install, create and populate an Oracle database. This class is an easy way to get started. It contains the following stages (These are not puppet stages):

  • sysctl (Set all required sysctl parameters)
  • limits (Set all required OS limits)
  • packages (Install all required packages)
  • groups_and_users (Create required groups and users)
  • firewall (Open required firewall rules)
  • asm_storage (Setup storage for use with ASM (skipped by default))
  • asm_software (Install Grid Infrastructure/ASM (skipped by default))
  • asm_diskgroup (Define all requires ASM diskgroups (skipped by default))
  • db_software (Install required Oracle database software)
  • db_patches (Install specified Opatch version and install specified patches)
  • db_definition (Define the database)
  • db_listener (Start the Listener)
  • db_services (Define Database Services)
  • db_tablespaces (Define all required tablespaces)
  • db_profiles (Define all required Oracle profiles)
  • db_users (Define all required Oracle users)
  • db_startup (Make sure the database restarts after a reboot)

All these stages have a default implementation. This implementation is suitable to get started with. These classed all have parameters you can customize through hiera values. The defaults are specified in the module's data/default.yaml file.

But sometimes this is not enough and you would like to add some extra definitions, you can, for example, add a Puppet class to be executed after the systctl stage is done and before the limits is done. You can do this by adding the next line to your yaml data:

ora_profile::database::before_sysctl:   my_profile::my_extra_class

or after:

ora_profile::database::after_sysctl:   my_profile::my_extra_class

If you want to, you can also skip this provided class:

ora_profile::database::sysctl:   skip

Or provide your own implementation:

ora_profile::database::sysctl:   my_profile::my_own_implementation

This mechanism can be used for all named stages and makes it easy to move from an easy setup with a running standard database to a fully customized setup using a lot of your own classes plugged in.

Check here to see the full documentation for this module.

Setup

Requirements

The ora_profile module requires:

Installing the ora_profile module

To install these modules, you can use a Puppetfile

mod 'enterprisemodules/ora_profile'               ,'0.1.0'

Then use the librarian-puppet or r10K to install the software.

You can also install the software using the puppet module command:

puppet module install enterprisemodules-ora_profile

Usage

To get started, include the ora_profile::database class in your role, make sure you have a module called software that has a folder files and that directory contains the the next files:

  • linuxx64_12201_database.zip
  • p6880880_122010_Linux-x86-64_12.2.0.1.12.zip (OPatch)
  • p27468969_122010_Linux-x86-64.zip (GI APR 2018 RELEASE UPDATE 12.2.0.1.180417)

If you also want to install ASM, the file below also needs to be placed in the files directory:

  • linuxx64_12201_grid_home

You can download these files from here or here

Run Puppet and you have a running Oracle 12.2 database called DB01

Reference

Here you can find some more information regarding this puppet module:

Here are related blog posts:

Limitations

This module runs on Solaris, AIX and most Linux versions. It requires a puppet version higher than 4. The module does NOT run on windows systems.