Oracle Fusion Middleware Chef Cookbook
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
attributes
recipes
templates/default
.gitignore
.kitchen.yml
Berksfile
CHANGELOG.md
Gemfile
LICENSE
README.md
Thorfile
Vagrantfile
chefignore
metadata.rb

README.md

oracle-fmw Cookbook

This cookbook lets you install and configure Oracle Fusion Middleware.

Support SOA and BPM 12c Quickstart distributions, and SOA and BPM Suite 11g.

Requirements

packages

  • java - oracle-fmw use java cookbook to install JDK 6/7
  • oracle-xe - oracle-fmw recommend to use oracle-xe to install Oracle XE and create a database instance

operating systems

  • oracle-fmw is tested to be used on Oracle Linux, Red Hat and Centos related distributions.

Attributes

11g version

oracle-fmw::prepare-environment-11g

Creates an OS user and group to run commands and install software.

Key Type Description Default
['fmw-11g']['os_user'] String OS user oracle-fmw
(*oracle* is not recommended if your are using *oracle-xe* cookbook before using *oracle-fmw*)
['fmw-11g']['os_installer_group'] String OS group oinstall
['fmw-11g']['os_timezone'] String OS Timezone. Used to avoid JDBC issue. America/Lima
['fmw-11g']['home'] String OS user home /home/#{node['fmw-11g']['os_user']}
['fmw-11g']['home'] String Middleware Home #{node['fmw-11g']['os_user_home']}/fmw/bpm_qs/#{node['fmw-11g']['version']}

oracle-fmw::install-wls-11g

Installs Oracle WebLogic Server 11g.

Key Type Description Default
['wls-11g']['home_directory'] String Name of WLS directory on Middleware Home wlserver_10.
['wls-11g']['url'] String URL to download the installer. Could be http:// ftp:// or file:// file:///data/oracle-fmw/wls-11g/wls1036_generic.jar

oracle-fmw::install-soa-11g

Installs Oracle SOA Suite 11g.

Key Type Description Default
['soa-11g']['home_directory'] String Name of SOA directory on Middleware Home OracleSOA1
['soa-11g']['url_1'] String URL to download the installer. Could be http:// ftp:// or file:// file:///data/oracle-fmw/soa-11g/ofm_soa_generic_11.1.1.7.0_disk1_1of2.zip
['soa-11g']['url_2'] String URL to download the installer. Could be http:// ftp:// or file:// file:///data/oracle-fmw/soa-11g/ofm_soa_generic_11.1.1.7.0_disk1_2of2.zip

oracle-fmw::install-osb-11g

Installs Oracle OSB Suite 11g.

Key Type Description Default
['osb-11g']['home_directory'] String Name of SOA directory on Middleware Home OracleOSB1
['osb-11g']['url'] String URL to download the installer. Could be http:// ftp:// or file:// file:///data/oracle-fmw/osb-11g/ofm_osb_generic_11.1.1.7.0_disk1_1of1.zip

oracle-fmw::create-rcu_repository-11g

Creates RCU repositories with Middleware required schemas.

Key Type Description Default
['rcu-11g']['url'] String URL to download the installer. Could be http:// ftp:// or file:// file:///data/oracle-fmw/rcu-11g/ofm_rcu_linux_11.1.1.7.0_32_disk1_1of1.zip
['rcu-11g']['db_hostname'] String Database hostname or IP localhost
['rcu-11g']['db_port'] String Database listener port 1521
['rcu-11g']['db_service'] String Database service name XE
['rcu-11g']['db_dba_role'] String Database DBA role name sysdba
['rcu-11g']['db_dba_user'] String Database DBA username sys
['rcu-11g']['db_dba_password'] String Database DBA user password welcome1
['rcu-11g']['db_schemas_password'] String Password used by new schemas welcome1
['rcu-11g']['db_schema_prefix'] String Prefix used by new schemas DEV01
['rcu-11g']['components'] Array[String] Components to create a schema for [ #"SOAINFRA", #"MDS", #"ORASDPM" ]
['rcu-11g']['keep_existing_schema'] String Avoid recreating schemas if your are running provisioning several times true

oracle-fmw::create-domain-11g

Creates a new domain.

Key Type Description Default
['domain-11g']['name'] String Domain name DefaultDomain
['domain-11g']['domains_path'] String Domains directory /home/oracle-fmw/work/domains
['domain-11g']['apps_path'] String Applications directory /home/oracle-fmw/work/apps
['domain-11g']['start_mode'] String Domain start mode: dev or prod dev
['domain-11g']['admin_username'] String Domain admin username weblogic
['domain-11g']['admin_password'] String Domain admin password welcome1
['domain-11g']['db_repo_host'] String Database repository hostname or ip localhost
['domain-11g']['db_repo_port'] String Database repository listener port 1521
['domain-11g']['db_repo_sid'] String Database repository service name XE
['domain-11g']['db_repo_prefix'] String Database schemas prefix XE
['domain-11g']['db_repo_password'] String Database schemas password welcome1
['domain-11g']['apps'] Array[App] Applications to add to domain: SOA, BPM, BAM, OSB. Attributes: name (String), enabled (Boolean) [ {"name" : "SOA", "enabled" : true}, {"name" : "SOA_DEV", "enabled" : true}, {"name" : "BAM", "enabled" : true}, {"name" : "EM", "enabled" : true}, {"name" : "OSB", "enabled" : false}, {"name" : "OSB_DEV", "enabled" : false} ]
['domain-12c']['machines'] Array[Machine] WebLogic Machines: name, nm_address, nm_port []
['domain-12c']['admin_server'] Server WebLogic Server {"base_name" : "AdminServer", "new_name" : "bpm_bpm-server", "port" : "7001"}
['domain-12c']['managed_servers'] Array[Server] WebLogic Managed Servers. []

12c version

oracle-fmw::prepare-environment-12c

Creates an OS user and group to run commands and install software.

Key Type Description Default
['fmw-12c']['os_user'] String OS user oracle-fmw
(*oracle* is not recommended if your are using *oracle-xe* cookbook before using *oracle-fmw*)
['fmw-12c']['os_installer_group'] String OS group oinstall
['fmw-12c']['os_timezone'] String OS Timezone. Used to avoid JDBC issue. America/Lima
['fmw-12c']['home'] String OS user home /home/#{node['fmw-12c']['os_user']}
['fmw-12c']['home'] String Middleware Home #{node['fmw-12c']['os_user_home']}/fmw/bpm_qs/#{node['fmw-12c']['version']}

oracle-fmw::install-bpm_qs-12c

Installs Oracle BPM 12c Quickstart.

Key Type Description Default
['bpm_qs-12c']['version'] String Product version 12.1.3
['bpm_qs-12c']['url'] String URL to download the installer. Could be http:// ftp:// or file:// file:///data/oracle-fmw/bpm_qs-12c/fmw_#{node['bpm_qs-12c']['version']}.0.0_bpmqs_Disk1_1of1.zip

oracle-fmw::install-soa_qs-12c

Installs Oracle SOA 12c Quickstart.

Key Type Description Default
['soa_qs-12c']['version'] String Product version 12.1.3
['soa_qs-12c']['url'] String URL to download the installer. Could be http:// ftp:// or file:// file:///data/oracle-fmw/soa_qs-12c/fmw_#{node['soa_qs-12c']['version']}.0.0_soaqs_Disk1_1of1.zip

oracle-fmw::create-rcu_repository-12c

Creates RCU repositories with Middleware required schemas.

Key Type Description Default
['rcu-12c']['oracle_home'] String Oracle Home directory /home/oracle-fmw/fmw/bpm_qs/12c
['rcu-12c']['timezone'] String OS timezone America/Lima
['rcu-12c']['db_hostname'] String Database hostname or IP localhost
['rcu-12c']['db_port'] String Database listener port 1521
['rcu-12c']['db_service'] String Database service name XE
['rcu-12c']['db_dba_role'] String Database DBA role name sysdba
['rcu-12c']['db_dba_user'] String Database DBA username sys
['rcu-12c']['db_dba_password'] String Database DBA user password welcome1
['rcu-12c']['db_schemas_password'] String Password used by new schemas welcome1
['rcu-12c']['db_schema_prefix'] String Prefix used by new schemas DEV01
['rcu-12c']['components'] Array[String] Components to create a schema for [ "SOAINFRA", "OPSS", "IAU", "MDS", "WLS", "UCSUMS", "IAU_APPEND", "IAU_VIEWER" ]

oracle-fmw::create-domain-12c

Creates a new domain.

Key Type Description Default
['domain-12c']['name'] String Domain name DefaultDomain
['domain-12c']['domains_path'] String Domains directory /home/oracle-fmw/work/domains
['domain-12c']['apps_path'] String Applications directory /home/oracle-fmw/work/apps
['domain-12c']['mode'] String Domain mode: Expanded or Compact Expanded
['domain-12c']['start_mode'] String Domain start mode: dev or prod dev
['domain-12c']['admin_username'] String Domain admin username weblogic
['domain-12c']['admin_password'] String Domain admin password welcome1
['domain-12c']['db_repo_host'] String Database repository hostname or ip localhost
['domain-12c']['db_repo_port'] String Database repository listener port 1521
['domain-12c']['db_repo_sid'] String Database repository service name XE
['domain-12c']['db_repo_prefix'] String Database schemas prefix XE
['domain-12c']['db_repo_password'] String Database schemas password welcome1
['domain-12c']['apps'] Array[App] Applications to add to domain: SOA, BPM, BAM, OSB. Attributes: name (String), enabled (Boolean) [ {"name" : "SOA", "enabled" : true}, {"name" : "BPM", "enabled" : true}, {"name" : "BAM", "enabled" : true}, {"name" : "OSB", "enabled" : false} ]
['domain-12c']['machines'] Array[Machine] WebLogic Machines: name, nm_address, nm_port []
['domain-12c']['admin_server'] Server WebLogic Server {"base_name" : "AdminServer", "new_name" : "bpm_bpm-server", "port" : "7001"}
['domain-12c']['managed_servers'] Array[Server] WebLogic Managed Servers. []

Usage

Example to install Oracle BPM 12c and create a domain with SOA/BPM/BAM.

{
  "name" : "demo-bpm_bam-12c",
  "default_attributes" : {
    "domain-12c": {
      "name": "demo-bpm_bam-domain",
      "mode": "Compact",
      "apps": [
        {"name" : "SOA", "enabled" : true},
        {"name" : "BPM", "enabled" : true},
        {"name" : "BAM", "enabled" : true},
        {"name" : "OSB", "enabled" : false}
      ],
      "machines": [
      ],
      "admin_server": {
        "base_name" : "AdminServer",
        "new_name" : "bpm_bpm-server",
        "port" : "7001"
      },
      "managed_servers": [
      ],
      "db_repo_host": "localhost",
      "db_repo_port": "1521",
      "db_repo_sid": "xe",
      "db_repo_prefix": "DEMO",
      "db_repo_password": "welcome1"
    },
    "rcu-12c": {
      "db_schema_prefix": "DEMO",
      "db_dba_user": "SYS",
      "db_dba_role": "SYSDBA",
      "db_dba_password": "welcome1",
      "db_schemas_password": "welcome1",
      "db_hostname": "localhost",
      "db_port": "1521",
      "db_service": "xe",
      "components": [
        "SOAINFRA",
        "OPSS",
        "IAU",
        "MDS",
        "WLS",
        "UCSUMS",
        "IAU_APPEND",
        "IAU_VIEWER"
      ]
    }
  },
  "run_list" : [
  "recipe[oracle-fmw::install-bpm_qs-12c]",
  "recipe[oracle-fmw::create-rcu_repository-12c]",
  "recipe[oracle-fmw::create-domain-12c]"
  ]
}

More samples on chef-repo

Contributing

e.g.

  1. Fork the repository on Github
  2. Create a named feature branch (like add_component_x)
  3. Write your change
  4. Write tests for your change (if applicable)
  5. Run the tests, ensuring they all pass
  6. Submit a Pull Request using Github

License and Authors

Authors: Jorge Quilcate (quilcate.jorge@gmail.com)