Skip to content

Commit 25e80c5

Browse files
committed
Updated parameters
1 parent 069bb09 commit 25e80c5

File tree

4 files changed

+94
-142
lines changed

4 files changed

+94
-142
lines changed

group_vars/orafs

Lines changed: 25 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -7,53 +7,31 @@
77
oracle_group: dba # Primary group for oracle_user.
88
oracle_user_id: 600 # uid for oracle_user
99
oracle_group_id: 600 # gid for oracle_users's primary group
10-
oracle_sw_source: http://oladmin/orasw # www-address to all software if using the get_url module when putting software on the host(s)
11-
#oracle_sw_source: /path/to/files/locally # Path to all software if using the copy module when putting software on the host(s)
10+
oracle_sw_source_www: http://oladmin/orasw # address to all software if using the get_url module when putting software on the host(s)
11+
oracle_sw_source_local: /path/to/files/locally # Path to all software if using the copy module when putting software on the host(s)
12+
is_sw_source_local: false # (true/false). true -> all software is available on the controlmachine. false -> Available on web-server
1213
disable_numa_boot: true # (true/false) Sets numa=off in grub.conf
1314
percent_hugepages: 60 # Percentage (0-100) of total RAM to dedicate to hugepages, Configures vm.nr_hugepages & memlock settings in /etc/security/limits.conf.
1415
configure_interconnect: false # (true/false) Should the Interconnect network be configured by Ansible (setup IP-address. IP-address configurable by variable oracle_ic_net). Only applicable to RAC-installs
1516
configure_ssh: false # (true/false). Should passwordless ssh be configured between clusternodes. Only applicable to RAC-installs
16-
configure_host_disks: true # (true/false). Should the specified directories be on their on devices -> (true), or do they live in the root-filesystem (/) -> (false). Mountpoints are described in host_fs_layout
17+
configure_host_disks: true # (true/false). Should the specified directories be on their own devices -> (true), or do they live in the root-filesystem (/) -> (false). Mountpoints are described in host_fs_layout
1718
configure_cluster: false
1819

1920
############### Generic Directory Structures ################
2021
oracle_stage: /u01/stage # All software is staged here
21-
oracle_psu_stage: /u01/stage/psu # All psu's are staged here
22-
oracle_rsp_stage: /u01/stage/rsp # All responsefiles are staged here (gi,db,dbca,asmca etc).
22+
oracle_psu_stage: "{{ oracle_stage }}/psu" # All psu's are staged here
23+
oracle_rsp_stage: "{{ oracle_stage }}/rsp" # All responsefiles are staged here (gi,db,dbca,asmca etc).
2324
oracle_base: /u01/app/oracle # Oracle Base for installations
2425
oracle_inventory_loc: /u01/app/oraInventory # Oracle Inventory location
2526

26-
################ Grid Infrastructure specifics ################
27-
# oracle_install_option_gi: HA_CONFIG # Valid (tested) values are: CRS_CONFIG, HA_CONFIG. Valid (untested) values are: UPGRADE, CRS_SWONLY)
28-
# oracle_install_version: 12.1.0.2 # Oracle version to be installed.
29-
# oracle_home_gi: "{{ oracle_base }}/{{ oracle_install_version }}/grid" # ORACLE_HOME for Grid Infrastructure
30-
# oracle_profile_name_gi: ".profile_grid" # .profile that sets up the environment for Grid Infrastructure (Cluster or Single node)
31-
# oracle_cluster_name: "" # Name of the cluster when setting up Clustered Grid Infrastructure
32-
# oracle_sw_image_gi: # Files containing the installation media for Grid Infrastructure
33-
# - linuxamd64_12102_grid_1of2.zip
34-
# - linuxamd64_12102_grid_2of2.zip
35-
36-
# oracle_home_name_gi: "grid_{{ oracle_install_version }}" # This parameter is used when cloning Grid Infrastructure
37-
# oracle_grid_responsefile: "grid_{{ oracle_cluster_name }}.rsp" # Name of responsefile-name used when installing Grid Infrastructure
38-
oracle_local_node: "{{ ansible_hostname }}" # Name of the local node (shortname)
39-
40-
41-
################ Input for Grid Infrastructure responsefile ################
42-
# oracle_password: Oracle123 # Password used for all Grid Infrastructure related resources (e.g ASM)
43-
# oracle_hostname: "{{ ansible_fqdn }}" # Full (FQDN) name of the host
44-
# oracle_scan: orarac-scan.discworld.net # Scan address for Clustered Grid Infrastructure
45-
# oracle_vip: -vip # Suffix for the host VIP-addresses (e.g orarac01-vip)
46-
# oracle_scan_port: 1521 # Listener port for scan-listener
47-
# oracle_ic_net: 3.3.3.{{ ansible_all_ipv4_addresses[0].split(".")[-1] }} # Picks the last octet from the public ip to use for cluster-interconnect ip (e.g 3.3.3.51)
48-
# oracle_cluster_mgmdb: true # Should the Grid Infrastructure Management database be created (only valid in 12.1.0.1)
49-
# oracle_asm_crs_diskgroup: crs # The diskgroup that gets created initially when creating a cluster (contains voting/ocr etc) Also valid when setting up Stand Alone Grid Infrastructure
50-
5127

5228
################ Oracle databases and general config (ORACLE_BASE/HOME etc) ################
5329
oracle_sw_image_db: # Installation files for the database installations
54-
- linuxamd64_12102_database_1of2.zip
55-
- linuxamd64_12102_database_2of2.zip
56-
30+
- { filename: linuxamd64_12102_database_1of2.zip, version: 12.1.0.2 }
31+
- { filename: linuxamd64_12102_database_2of2.zip, version: 12.1.0.2 }
32+
#- { filename: linuxamd64_12c_database_1of2.zip, version: 12.1.0.1 }
33+
#- { filename: linuxamd64_12c_database_2of2.zip, version: 12.1.0.1 }
34+
5735
oracle_databases: # Dictionary describing the databases to be installed
5836
fsdb: # 'Last' directory in ORACLE_HOME path (e.g /u01/app/oracle/12.1.0.2/racdb)
5937
oracle_edition: EE # The edition of database-server (EE,SE,SEONE)
@@ -68,16 +46,23 @@
6846
oracle_db_mem_percent: 30 # Amount of RAM to be used for SGA
6947
oracle_database_type: MULTIPURPOSE # MULTIPURPOSE|DATA_WAREHOUSING|OLTP
7048
oracle_version_db: 12.1.0.2 # Oracle version
49+
# testdb: # 'Last' directory in ORACLE_HOME path (e.g /u01/app/oracle/12.1.0.2/racdb)
50+
# oracle_edition: EE # The edition of database-server (EE,SE,SEONE)
51+
# oracle_db_name: testdb # Database name
52+
# oracle_db_passwd: Oracle123 # Passwords (sys/system/dbsnm etc)
53+
# oracle_db_type: SI # Type of database (RAC,RACONENODE,SI)
54+
# is_container: "false" # (true/false) Is the database a container database
55+
# is_racone: "false" # (true/false) Is the database a RAC ONE NODE Database
56+
# storage_type: FS # Database storage to be used. ASM or FS.
57+
# service_name: testdb_serv # Inital service to be created (not in use yet)
58+
# oracle_init_params: "open_cursors=300,processes=700" # Specific parameters to be set during installation. Comma-separated list
59+
# oracle_db_mem_percent: 20 # Amount of RAM to be used for SGA
60+
# oracle_database_type: MULTIPURPOSE # MULTIPURPOSE|DATA_WAREHOUSING|OLTP
61+
# oracle_version_db: 12.1.0.2 # Oracle version
7162

72-
# The following variables are dependent on the 'oracle_databases' dict
73-
oracle_home_db: "{{ oracle_base }}/{{ item.value.oracle_version_db }}/{{ item.key }}" # ORACLE_HOME path
74-
oracle_home_name_db: "{{ item.value.oracle_db_name }}_{{ oracle_clone_version }}" # ORACLE_HOME name when cloning ORACLE_HOME
75-
oracle_profile_name: ".profile_{{ item.value.oracle_db_name }}" # Name of profile-file. Sets up the environment for that database. One per database
76-
oracle_db_responsefile: "{{ item.value.oracle_db_name}}_{{ oracle_local_node }}.rsp" # Name of responsefile to be used by runInstaller. One per ORACLE_HOME
7763

7864
################ Create database info, feeds into dbca responsefile (via oradb-create role) ################
79-
oracle_dbca_rsp: "dbca_{{ item.value.oracle_db_name }}.rsp" # Name of responsefile used by dbca. One per database
80-
oracle_dbf_dir_fs: "/u01/oradata/" # If storage_type=FS this is where the database is placed.
65+
oracle_dbf_dir_fs: "/u02/oradata/" # If storage_type=FS this is where the database is placed.
8166
oracle_reco_dir_fs: "/u01/fra/" # If storage_type=FS this is where the fast recovery area is placed.
8267
oracle_dbf_dir_asm: "+DATA" # If storage_type=ASM this is where the database is placed.
8368
oracle_reco_dir_asm: "+FRA" # If storage_type=ASM this is where the fast recovery area is placed
@@ -98,17 +83,5 @@
9883
u02:
9984
{mntp: /u02, device: /dev/sdc, vgname: vgoradb, pvname: /dev/sdc1, lvname: lvoradb}
10085

101-
# asm_diskgroups: # ASM Diskgroups used for DB-storage. Should map to dict asm_storage_layout.
102-
# - crs
103-
# - data
104-
# - fra
105-
#
106-
# asm_storage_layout: # Mapping between device & ASMlib label. If storage_type=ASM under oracle_databases, this is where the mapping between device/asm-disk is described
107-
# crs:
108-
# - {device: /dev/sdc, asmlabel: CRS01}
109-
# data:
110-
# - {device: /dev/sdd, asmlabel: DATA01}
111-
# fra:
112-
# - {device: /dev/sde, asmlabel: FRA01}
11386

11487

group_vars/oraha

Lines changed: 27 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77
oracle_group: dba # Primary group for oracle_user.
88
oracle_user_id: 600 # uid for oracle_user
99
oracle_group_id: 600 # gid for oracle_users's primary group
10-
oracle_sw_source: http://oladmin/orasw # www-address to all software if using the get_url module when putting software on the host(s)
11-
#oracle_sw_source: /path/to/files/locally # Path to all software if using the copy module when putting software on the host(s)
10+
oracle_sw_source_www: http://oladmin/orasw # address to all software if using the get_url module when putting software on the host(s)
11+
oracle_sw_source_local: /path/to/files/locally # Path to all software if using the copy module when putting software on the host(s)
12+
is_sw_source_local: false # (true/false). true -> all software is available on the controlmachine. false -> Available on web-server
1213
disable_numa_boot: true # (true/false) Sets numa=off in grub.conf
1314
percent_hugepages: 60 # Percentage (0-100) of total RAM to dedicate to hugepages, Configures vm.nr_hugepages & memlock settings in /etc/security/limits.conf.
1415
configure_interconnect: true # (true/false) Should the Interconnect network be configured by Ansible (setup IP-address. IP-address configurable by variable oracle_ic_net). Only applicable to RAC-installs
@@ -17,29 +18,27 @@
1718
configure_cluster: false
1819
############### Generic Directory Structures ################
1920
oracle_stage: /u01/stage # All software is staged here
20-
oracle_psu_stage: /u01/stage/psu # All psu's are staged here
21-
oracle_rsp_stage: /u01/stage/rsp # All responsefiles are staged here (gi,db,dbca,asmca etc).
21+
oracle_psu_stage: "{{ oracle_stage }}/psu" # All psu's are staged here
22+
oracle_rsp_stage: "{{ oracle_stage }}/rsp" # All responsefiles are staged here (gi,db,dbca,asmca etc).
2223
oracle_base: /u01/app/oracle # Oracle Base for installations
2324
oracle_inventory_loc: /u01/app/oraInventory # Oracle Inventory location
2425

2526
################ Grid Infrastructure specifics ################
2627
oracle_install_option_gi: HA_CONFIG # Valid (tested) values are: CRS_CONFIG, HA_CONFIG. Valid (untested) values are: UPGRADE, CRS_SWONLY)
2728
oracle_install_version: 12.1.0.2 # Oracle version to be installed.
2829
oracle_home_gi: "{{ oracle_base }}/{{ oracle_install_version }}/grid" # ORACLE_HOME for Grid Infrastructure
29-
oracle_profile_name_gi: ".profile_grid" # .profile that sets up the environment for Grid Infrastructure (Cluster or Single node)
30+
# oracle_profile_name_gi: ".profile_grid" # .profile that sets up the environment for Grid Infrastructure (Cluster or Single node)
3031
oracle_cluster_name: "" # Name of the cluster when setting up Clustered Grid Infrastructure
3132
oracle_sw_image_gi: # Files containing the installation media for Grid Infrastructure
32-
- linuxamd64_12102_grid_1of2.zip
33-
- linuxamd64_12102_grid_2of2.zip
33+
- { filename: linuxamd64_12102_grid_1of2.zip, version: 12.1.0.2 }
34+
- { filename: linuxamd64_12102_grid_2of2.zip, version: 12.1.0.2 }
35+
#- { filename: linuxamd64_12c_grid_1of2.zip, version: 12.1.0.1 }
36+
#- { filename: linuxamd64_12c_grid_2of2.zip, version: 12.1.0.1 }
3437

35-
oracle_home_name_gi: "grid_{{ oracle_install_version }}" # This parameter is used when cloning Grid Infrastructure
36-
oracle_grid_responsefile: "grid_{{ oracle_cluster_name }}.rsp" # Name of responsefile-name used when installing Grid Infrastructure
37-
oracle_local_node: "{{ ansible_hostname }}" # Name of the local node (shortname)
3838

3939

4040
################ Input for Grid Infrastructure responsefile ################
4141
oracle_password: Oracle123 # Password used for all Grid Infrastructure related resources (e.g ASM)
42-
oracle_hostname: "{{ ansible_fqdn }}" # Full (FQDN) name of the host
4342
oracle_scan: orarac-scan.discworld.net # Scan address for Clustered Grid Infrastructure
4443
oracle_vip: -vip # Suffix for the host VIP-addresses (e.g orarac01-vip)
4544
oracle_scan_port: 1521 # Listener port for scan-listener
@@ -51,8 +50,10 @@
5150
################ Oracle databases and general config (ORACLE_BASE/HOME etc) ################
5251

5352
oracle_sw_image_db: # Installation files for the database installations
54-
- linuxamd64_12102_database_1of2.zip
55-
- linuxamd64_12102_database_2of2.zip
53+
- { filename: linuxamd64_12102_database_1of2.zip, version: 12.1.0.2 }
54+
- { filename: linuxamd64_12102_database_2of2.zip, version: 12.1.0.2 }
55+
# - { filename: linuxamd64_12c_database_1of2.zip, version: 12.1.0.1 }
56+
# - { filename: linuxamd64_12c_database_2of2.zip, version: 12.1.0.1 }
5657

5758
oracle_databases: # Dictionary describing the databases to be installed
5859
hadb1: # 'Last' directory in ORACLE_HOME path (e.g /u01/app/oracle/12.1.0.2/racdb)
@@ -68,28 +69,22 @@
6869
oracle_db_mem_percent: 30 # Amount of RAM to be used for SGA
6970
oracle_database_type: MULTIPURPOSE # MULTIPURPOSE|DATA_WAREHOUSING|OLTP
7071
oracle_version_db: 12.1.0.2 # Oracle version
71-
hadb2:
72-
oracle_edition: EE
73-
oracle_db_name: hadb2
74-
oracle_db_passwd: Oracle123
75-
oracle_db_type: SI
76-
is_container: "false"
77-
is_racone: "false"
78-
storage_type: ASM
79-
service_name: hadb2_serv
80-
oracle_init_params: "open_cursors=1000,processes=400"
81-
oracle_db_mem_percent: 20
82-
oracle_database_type: MULTIPURPOSE
83-
oracle_version_db: 12.1.0.2
72+
# hadb2:
73+
# oracle_edition: EE
74+
# oracle_db_name: hadb2
75+
# oracle_db_passwd: Oracle123
76+
# oracle_db_type: SI
77+
# is_container: "false"
78+
# is_racone: "false"
79+
# storage_type: ASM
80+
# service_name: hadb2_serv
81+
# oracle_init_params: "open_cursors=1000,processes=400"
82+
# oracle_db_mem_percent: 20
83+
# oracle_database_type: MULTIPURPOSE
84+
# oracle_version_db: 12.1.0.2
8485

85-
# The following variables are dependent on the 'oracle_databases' dict
86-
oracle_home_db: "{{ oracle_base }}/{{ item.value.oracle_version_db }}/{{ item.key }}" # ORACLE_HOME path
87-
oracle_home_name_db: "{{ item.value.oracle_db_name }}_{{ oracle_clone_version }}" # ORACLE_HOME name when cloning ORACLE_HOME
88-
oracle_profile_name: ".profile_{{ item.value.oracle_db_name }}" # Name of profile-file. Sets up the environment for that database. One per database
89-
oracle_db_responsefile: "{{ item.value.oracle_db_name}}_{{ oracle_local_node }}.rsp" # Name of responsefile to be used by runInstaller. One per ORACLE_HOME
9086

9187
################ Create database info, feeds into dbca responsefile (via oradb-create role) ################
92-
oracle_dbca_rsp: "dbca_{{ item.value.oracle_db_name }}.rsp" # Name of responsefile used by dbca. One per database
9388
oracle_dbf_dir_fs: "/u01/oradata/" # If storage_type=FS this is where the database is placed.
9489
oracle_reco_dir_fs: "/u01/fra/" # If storage_type=FS this is where the fast recovery area is placed.
9590
oracle_dbf_dir_asm: "+DATA" # If storage_type=ASM this is where the database is placed.

0 commit comments

Comments
 (0)