Skip to content

Commit 5eb52f3

Browse files
committed
Added aws test config
1 parent 81a12b2 commit 5eb52f3

File tree

3 files changed

+163
-0
lines changed

3 files changed

+163
-0
lines changed

aws-si-asm-install.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
3+
4+
- name: Host configuration
5+
hosts: aws-si-asm
6+
connection: local
7+
user: ec2-user
8+
become: yes
9+
roles:
10+
- common
11+
- orahost
12+
- orahost-storage
13+
14+
- name: Oracle Grid Infrastructure installation & ASM Configuration
15+
hosts: aws-si-asm
16+
connection: local
17+
user: ec2-user
18+
become: yes
19+
roles:
20+
- oraswgi-install
21+
- oraasm-createdg
22+
23+
- name: Database Server Installation & Database Creation
24+
hosts: aws-si-asm
25+
connection: local
26+
user: ec2-user
27+
become: yes
28+
roles:
29+
- oraswdb-install
30+
- oradb-create
31+
32+
- name: Install cx_oracle
33+
hosts: aws-si-asm
34+
connection: local
35+
user: ec2-user
36+
become: yes
37+
roles:
38+
- cxoracle
39+
40+
- name: Configure Logrotate
41+
hosts: aws-si-asm
42+
connection: local
43+
user: ec2-user
44+
become: yes
45+
roles:
46+
- orahost-logrotate

group_vars/aws-si-asm

Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
---
2+
hostgroup: aws-si-asm
3+
role_separation: True
4+
device_persistence: asmlib
5+
6+
oracle_user: oracle
7+
oracle_group: oinstall
8+
9+
install_from_nfs: false
10+
oracle_sw_copy: false
11+
oracle_sw_unpack: true
12+
oracle_stage: /u01/stage
13+
oracle_stage_remote: /media/swrepo
14+
15+
configure_ntp: true
16+
configure_motd: true
17+
configure_interconnect: false
18+
configure_ssh: true
19+
configure_host_disks: true
20+
21+
install_os_packages: True
22+
configure_epel_repo: True
23+
configure_public_yum_repo: True
24+
disable_selinux: false
25+
26+
################ Grid Infrastructure specifics ################
27+
configure_cluster: false
28+
oracle_install_option_gi: HA_CONFIG
29+
oracle_install_version_gi: 12.2.0.1
30+
31+
oracle_password: Oracle123
32+
oracle_asm_init_dg: crs
33+
34+
35+
oracle_databases: # Dictionary describing the databases to be installed
36+
- home: db1 # 'Last' directory in ORACLE_HOME path (e.g /u01/app/oracle/12.1.0.2/racdb)
37+
oracle_version_db: 12.2.0.1 # Oracle versiono
38+
oracle_edition: EE # The edition of database-server (EE,SE,SEONE)
39+
oracle_db_name: orclcdb # Database name
40+
oracle_db_passwd: Oracle123 # Passwords (sys/system/dbsnm etc)
41+
oracle_db_type: SI # Type of database (RAC,RACONENODE,SI)
42+
is_container: True # (true/false) Is the database a container database
43+
pdb_prefix: orclpdb
44+
num_pdbs: 1
45+
storage_type: ASM # Database storage to be used. ASM or FS.
46+
oracle_db_mem_totalmb: 1024 # Amount of RAM to be used for SGA
47+
oracle_database_type: MULTIPURPOSE # MULTIPURPOSE|DATA_WAREHOUSING|OLTP
48+
redolog_size_in_mb: 100
49+
datafile_dest: '+DATA'
50+
recoveryfile_dest: '+FRA'
51+
state: present
52+
## The following will create a new database (non-cdb) running from the same home as above (/u01/app/oracle/12.2.0.1/db1)
53+
# - home: db1 # 'Last' directory in ORACLE_HOME path (e.g /u01/app/oracle/12.2.0.1/db1)
54+
# oracle_version_db: 12.2.0.1 # Oracle versiono (12.2.0.1,12.1.0.2,12.1.0.1,11.2.0.4,11.2.0.3)
55+
# oracle_edition: EE # The edition of database-server (EE,SE,SEONE)
56+
# oracle_db_name: orcl # Database name
57+
# oracle_db_passwd: Oracle123 # Passwords (sys/system/dbsnm etc)
58+
# oracle_db_type: SI # Type of database (RAC,RACONENODE,SI)
59+
# is_container: false # (true/false) Is the database a container database
60+
# storage_type: ASM # Database storage to be used. ASM or FS.
61+
# oracle_db_mem_totalmb: 1024 # Amount of RAM to be used for SGA
62+
# oracle_database_type: MULTIPURPOSE # MULTIPURPOSE|DATA_WAREHOUSING|OLTP
63+
# redolog_size_in_mb: 100
64+
# datafile_dest: '+DATA'
65+
# recoveryfile_dest: '+FRA'
66+
# state: present
67+
## The following will install a new ORACLE_HOME with version 11.2.0.4 and a database called running out of that home
68+
# - home: db1 # 'Last' directory in ORACLE_HOME path (e.g /u01/app/oracle/12.2.0.1/db1)
69+
# oracle_version_db: 11.2.0.4 # Oracle versiono (12.2.0.1,12.1.0.2,12.1.0.1,11.2.0.4,11.2.0.3)
70+
# oracle_edition: EE # The edition of database-server (EE,SE,SEONE)
71+
# oracle_db_name: fsdb # Database name
72+
# oracle_db_passwd: Oracle123 # Passwords (sys/system/dbsnm etc)
73+
# oracle_db_type: SI # Type of database (RAC,RACONENODE,SI)
74+
# is_container: false # (true/false) Is the database a container database
75+
# storage_type: ASM # Database storage to be used. ASM or FS.
76+
# oracle_db_mem_totalmb: 1024 # Amount of RAM to be used for SGA
77+
# oracle_database_type: MULTIPURPOSE # MULTIPURPOSE|DATA_WAREHOUSING|OLTP
78+
# redolog_size_in_mb: 100
79+
# datafile_dest: '+DATA'
80+
# recoveryfile_dest: '+FRA'
81+
# state: present
82+
83+
host_fs_layout:
84+
- vgname: vgora
85+
state: present
86+
filesystem:
87+
- {mntp: /u01, lvname: lvora, lvsize: 100%FREE, fstype: ext4}
88+
disk:
89+
- {device: /dev/xvdb, pvname: /dev/xvdb}
90+
91+
asm_diskgroups:
92+
- diskgroup: crs
93+
properties:
94+
- {redundancy: external, ausize: 4}
95+
attributes:
96+
- {name: 'compatible.rdbms', value: 11.2.0.4.0}
97+
- {name: 'compatible.asm', value: "{{ oracle_install_version_gi }}"}
98+
disk:
99+
- {device: /dev/xvdc, asmlabel: crs01}
100+
- diskgroup: data
101+
properties:
102+
- {redundancy: external, ausize: 4}
103+
attributes:
104+
- {name: compatible.rdbms, value: 11.2.0.4.0}
105+
- {name: 'compatible.asm', value: "{{ oracle_install_version_gi }}"}
106+
disk:
107+
- {device: /dev/xvdd, asmlabel: data01}
108+
- diskgroup: fra
109+
properties:
110+
- {redundancy: external, ausize: 4}
111+
attributes:
112+
- {name: compatible.rdbms, value: 11.2.0.4.0}
113+
- {name: 'compatible.asm', value: "{{ oracle_install_version_gi }}"}
114+
disk:
115+
- {device: /dev/xvde, asmlabel: fra01}

inventory/ec2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[aws-si-asm]
2+
localhost

0 commit comments

Comments
 (0)