- Table of Contents
- Overview
- Experience the Power of Puppet for Oracle databases
- License
- Description
- Setup
- Usage
- Reference
- Limitations
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_secured To secure your databases according to the CIS benchmarks or STIG documents.
This module support Oracle 10, 11, 12, 18, 19 and 21
Managing the configuration of your Oracle databases can be hard. With Puppet at your side, you get super-powers when installing and managing Oracle Databases. If you want to play and experiment with this please take a look at our playgrounds.
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.
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_classor after:
ora_profile::database::after_sysctl: my_profile::my_extra_classIf you want to, you can also skip this provided class:
ora_profile::database::sysctl: skipOr provide your own implementation:
ora_profile::database::sysctl: my_profile::my_own_implementationThis 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.
The ora_profile module requires:
- Puppet module
enterprisemodules-ora_configinstalled. - Puppet module
enterprisemodules-ora_installinstalled. - Puppet module
enterprisemodules-easy_typeinstalled. - Puppet module
enterprisemodules/ora_securedinstalled. - Puppet module
enterprisemodules/partitioninstalled. - Puppet module
ipcrm-echoinstalled. - Puppet module
puppet-augeasproviders_coreinstalled. - Puppet module
herculesteam-augeasproviders_sysctlinstalled. - Puppet module
puppet-augeasproviders_grubinstalled. - Puppet module
saz-limitsinstalled. - Puppet module
puppetlabs-firewallinstalled. - Puppet module
puppet-firewalldinstalled. - Puppet module
puppetlabs-stdlibinstalled. - Puppet module
puppet-systemdinstalled. - Puppet version 4.0 or higher. Can be Puppet Enterprise or Puppet Open Source
- Oracle 11 higher
- A valid Oracle license
- A valid Enterprise Modules license for usage.
- Runs on most Linux systems.
- Runs on Solaris
- Windows systems are NOT supported
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_profileTo 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:
- LINUX.X64_193000_db_home.zip
- p6880880_190000_Linux-x86-64.zip (OPatch version 12.2.0.1.33)
If you also want to install ASM, the file below also needs to be placed in the files directory:
- LINUX.X64_193000_grid_home.zip
You can download these files from here or here
Run Puppet and you have a running Oracle 19c database called DB01
Here you can find some more information regarding this puppet module:
Here are related blog posts:
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.

