|
1 | 1 | --- |
2 | | -################ Generic Oracle OS info ################ |
3 | | - hostgroup: orarac-dc1 # Inventory group-alias This is used to populate cluster nodes for GI & RAC/RAC ONE DB installation |
4 | | - oracle_user: oracle # User that will own the Oracle Installations. No support for separation of duties yet |
5 | | - oracle_passwd: "$6$Udd3YYk2C2KGDOw4$jpfNsWXbgJ.IeKpEjIF4cVRhZi62xZT37G5oHHlHmGvAkkPHfukE9cgRyjdgui/oqtPodoYbUSSvTeFpwvN270" # Encrypted password for oracle_user |
6 | | - oracle_user_home: "/home/{{ oracle_user }}" # Home directory for oracle_user. Needed for passing in ssh-keys, profiles etc |
7 | | - oracle_group: dba # Primary group for oracle_user. |
8 | | - oracle_user_id: 600 # uid for oracle_user |
9 | | - oracle_group_id: 600 # gid for oracle_users's primary group |
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 |
13 | | - disable_numa_boot: true # (true/false) Sets numa=off in grub.conf |
14 | | - percent_hugepages: 60 # Percentage (0-100) of total RAM to dedicate to hugepages, Configures vm.nr_hugepages & memlock settings |
15 | | - 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 |
16 | | - configure_ssh: true # (true/false). Should passwordless ssh be configured between clusternodes. Only applicable to RAC-installs |
17 | | - 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). |
18 | | - # mountpoints are described in host_fs_layout |
| 2 | + hostgroup: orarac-dc1 |
| 3 | + role_separation: false |
| 4 | + device_persistency: udev |
| 5 | + |
| 6 | + configure_interconnect: true |
| 7 | + configure_ssh: true |
| 8 | + configure_host_disks: true |
| 9 | + |
19 | 10 | configure_cluster: true |
20 | | - run_configtoolallcommand: false # Should ConfigToolAllCommands be run as part of the GI installation |
21 | 11 |
|
22 | | -############### Generic Directory Structures ################ |
23 | | - oracle_stage: /u01/stage # All software is staged here |
24 | | - oracle_psu_stage: "{{ oracle_stage }}/psu" # All psu's are staged here |
25 | | - oracle_rsp_stage: "{{ oracle_stage }}/rsp" # All responsefiles are staged here (gi,db,dbca,asmca etc). |
26 | | - oracle_base: /u01/app/oracle # Oracle Base for installations |
27 | | - oracle_inventory_loc: /u01/app/oraInventory # Oracle Inventory location |
28 | | - |
29 | 12 | ################ Grid Infrastructure specifics ################ |
30 | | - oracle_install_option_gi: CRS_CONFIG # Valid (tested) values are: CRS_CONFIG, HA_CONFIG. Valid (untested) values are: UPGRADE, CRS_SWONLY) |
31 | | - oracle_install_version_gi: 12.1.0.2 # Oracle version to be installed. |
32 | | - |
33 | | - oracle_sw_image_gi: # Files containing the installation media for Grid Infrastructure |
34 | | - - { filename: linuxamd64_12102_grid_1of2.zip, version: 12.1.0.2 } |
35 | | - - { filename: linuxamd64_12102_grid_2of2.zip, version: 12.1.0.2 } |
36 | | -# - { filename: linuxamd64_12c_grid_1of2.zip, version: 12.1.0.1 } |
37 | | -# - { filename: linuxamd64_12c_grid_2of2.zip, version: 12.1.0.1 } |
38 | | - |
39 | | - |
40 | | -################ Input for Grid Infrastructure responsefile ################ |
41 | | - oracle_password: Oracle123 # Password used for all Grid Infrastructure related resources (e.g ASM) |
42 | | - oracle_scan: orarac-scan-dc1.discworld.net # Scan address for Clustered Grid Infrastructure |
43 | | - oracle_vip: -vip # Suffix for the host VIP-addresses (e.g orarac01-vip) |
44 | | - oracle_scan_port: 1521 # Listener port for scan-listener |
45 | | - 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) |
46 | | - 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 |
| 13 | + oracle_install_option_gi: CRS_CONFIG |
| 14 | + oracle_install_version_gi: 12.1.0.2 |
47 | 15 |
|
| 16 | + oracle_password: Oracle123 |
| 17 | + oracle_scan: orarac-scan-dc1.discworld.lab |
| 18 | + oracle_vip: -vip |
| 19 | + oracle_scan_port: 1521 |
| 20 | + oracle_asm_init_dg: crs |
48 | 21 |
|
49 | | -################ Oracle databases and general config (ORACLE_BASE/HOME etc) ################ |
50 | 22 |
|
51 | | - oracle_sw_image_db: # Installation files for the database installations |
52 | | - - { filename: linuxamd64_12102_database_1of2.zip, version: 12.1.0.2 } |
53 | | - - { filename: linuxamd64_12102_database_2of2.zip, version: 12.1.0.2 } |
54 | | -# - { filename: linuxamd64_12c_database_1of2.zip, version: 12.1.0.1 } |
55 | | -# - { filename: linuxamd64_12c_database_2of2.zip, version: 12.1.0.1 } |
56 | | - |
| 23 | + oracle_sw_image_db: |
| 24 | + - { filename: linuxamd64_12102_database_1of2.zip, version: 12.1.0.2, download: false } |
| 25 | + - { filename: linuxamd64_12102_database_2of2.zip, version: 12.1.0.2, download: false } |
| 26 | +# - { filename: linuxamd64_12c_database_1of2.zip, version: 12.1.0.1, download: false } |
| 27 | +# - { filename: linuxamd64_12c_database_2of2.zip, version: 12.1.0.1, download: false } |
| 28 | +# - { filename: p13390677_112040_Linux-x86-64_1of7.zip, version: 11.2.0.4, download: true } |
| 29 | +# - { filename: p13390677_112040_Linux-x86-64_2of7.zip, version: 11.2.0.4, download: true } |
57 | 30 |
|
58 | | - oracle_databases: # Dictionary describing the databases to be installed |
59 | | - racdb: # 'Last' directory in ORACLE_HOME path (e.g /u01/app/oracle/12.1.0.2/racdb) |
60 | | - oracle_edition: EE # The edition of database-server (EE,SE,SEONE) |
61 | | - oracle_db_name: racdb # Database name |
62 | | - oracle_db_passwd: Oracle123 # Passwords (sys/system/dbsnm etc) |
63 | | - oracle_db_type: RAC # Type of database (RAC,RACONENODE,SI) |
64 | | - is_container: "false" # (true/false) Is the database a container database |
65 | | - is_racone: "false" # (true/false) Is the database a RAC ONE NODE Database |
66 | | - storage_type: ASM # Database storage to be used. ASM or FS. |
67 | | - service_name: racdb_serv # Inital service to be created (not in use yet) |
68 | | - oracle_init_params: "open_cursors=300,processes=700" # Specific parameters to be set during installation. Comma-separated list |
69 | | - oracle_db_mem_percent: 20 # Amount of RAM to be used for SGA |
70 | | - oracle_database_type: MULTIPURPOSE # MULTIPURPOSE|DATA_WAREHOUSING|OLTP |
71 | | - oracle_version_db: 12.1.0.2 # Oracle version |
72 | | -# racone: |
73 | | -# oracle_edition: EE |
74 | | -# oracle_db_name: racone |
75 | | -# oracle_db_passwd: Oracle123 |
76 | | -# oracle_db_type: RACONENODE |
77 | | -# is_container: "false" |
78 | | -# is_racone: "true" |
79 | | -# storage_type: ASM |
80 | | -# service_name: racone_serv |
81 | | -# oracle_init_params: "open_cursors=1000,processes=400" |
82 | | -# oracle_db_mem_percent: 10 |
83 | | -# oracle_database_type: MULTIPURPOSE |
84 | | -# oracle_version_db: 12.1.0.2 |
85 | | - |
86 | | - |
87 | | -################ Create database info, feeds into dbca responsefile (via oradb-create role) ################ |
88 | | - oracle_dbf_dir_fs: "/u01/oradata/" # If storage_type=FS this is where the database is placed. |
89 | | - oracle_reco_dir_fs: "/u01/fra/" # If storage_type=FS this is where the fast recovery area is placed. |
90 | | - oracle_dbf_dir_asm: "+DATA" # If storage_type=ASM this is where the database is placed. |
91 | | - oracle_reco_dir_asm: "+FRA" # If storage_type=ASM this is where the fast recovery area is placed |
92 | | - |
93 | | -################ Psu Information ################ |
94 | | -# oracle_psu_apply_db: false |
95 | | -# oracle_psu_apply_gi: false |
96 | | -# oracle_psu_num_gi: 18139660 |
97 | | -# oracle_psu_patch: |
98 | | -# - p18139660_121010_Linux-x86-64.zip |
99 | | -# oracle_ocm_rsp: ocm.rsp |
100 | | -# oracle_opatch_patch: p6880880_121010_Linux-x86-64.zip |
101 | | - |
102 | | -################ Storage/FS Layout ################ |
103 | | - host_fs_layout: # Sets up filesystem on host. If storage_type=FS under oracle_databases, this is where the mapping between device/fs is described |
104 | | - u01: |
| 31 | + oracle_databases: |
| 32 | + racdb: |
| 33 | + oracle_version_db: 12.1.0.2 |
| 34 | + oracle_edition: EE |
| 35 | + oracle_db_name: racdb |
| 36 | + oracle_db_passwd: Oracle123 |
| 37 | + oracle_db_type: RAC |
| 38 | + is_container: "true" |
| 39 | + pdb_prefix: racpdb |
| 40 | + num_pdbs: 2 |
| 41 | + is_racone: "false" |
| 42 | + storage_type: ASM |
| 43 | + service_name: racdb_serv |
| 44 | + oracle_init_params: "open_cursors=300,processes=700" |
| 45 | + oracle_db_mem_percent: 20 |
| 46 | + oracle_database_type: MULTIPURPOSE |
| 47 | + redolog_size_in_mb: 100 |
| 48 | + delete_db: false |
| 49 | + |
| 50 | + |
| 51 | + oracle_dbf_dir_asm: "DATA" |
| 52 | + oracle_reco_dir_asm: "FRA" |
| 53 | + |
| 54 | + host_fs_layout: |
| 55 | + u01: |
105 | 56 | {mntp: /u01, device: /dev/sdb, vgname: vgora, pvname: /dev/sdb1, lvname: lvora} |
106 | 57 |
|
107 | | - asm_diskgroups: # ASM Diskgroups used for DB-storage. Should map to dict asm_storage_layout. |
| 58 | + asm_diskgroups: |
108 | 59 | - crs |
109 | 60 | - data |
110 | 61 | - fra |
111 | 62 |
|
112 | | - 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 |
| 63 | + asm_storage_layout: |
113 | 64 | crs: |
114 | | - - {device: /dev/sdc, asmlabel: CRS01} |
| 65 | + - {device: /dev/sdc, asmlabel: crs01} |
115 | 66 | data: |
116 | | - - {device: /dev/sdd, asmlabel: DATA01} |
| 67 | + - {device: /dev/sdd, asmlabel: data01} |
| 68 | + - {device: /dev/sde, asmlabel: data02} |
117 | 69 | fra: |
118 | | - - {device: /dev/sde, asmlabel: FRA01} |
| 70 | + - {device: /dev/sdf, asmlabel: fra01} |
| 71 | + - {device: /dev/sdg, asmlabel: fra02} |
| 72 | + - {device: /dev/sdh, asmlabel: fra03} |
| 73 | + |
0 commit comments