|
1 |
| -Role Name |
2 |
| -========= |
| 1 | +install_oracle_db |
| 2 | +================= |
3 | 3 |
|
4 |
| -A brief description of the role goes here. |
| 4 | +This roles installs the Oracle database 12.2.0.1.0 and configures it using an RSP file. |
5 | 5 |
|
6 | 6 | Requirements
|
7 | 7 | ------------
|
8 | 8 |
|
9 |
| -Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required. |
| 9 | +The role os_setting must be executed before. |
10 | 10 |
|
11 | 11 | Role Variables
|
12 | 12 | --------------
|
13 | 13 |
|
14 |
| -A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well. |
| 14 | +Most of the following variables are used to configure the RSP file through templates. |
| 15 | + |
| 16 | + #### inst_software_source_dir: /u01/software |
| 17 | + This is the directory where Oracle database installers are copied from. |
| 18 | + #### inst_sofware_destiny_dir: /u01/staging/oracledb # create dir, unzip installer, use as source to install |
| 19 | + This is the directory where Oracle database installers are copied from |
| 20 | + #### inst_template_dir: "{{ inst_sofware_destiny_dir }}/templates" |
| 21 | + The directory used to save the template used to generate a RSP file. |
| 22 | + #### inst_user_home: /home/oracle |
| 23 | + The directory home for the oracle user. |
| 24 | + #### inst_root_dir: "{{ inst_user_home }}/database" # database is installed here |
| 25 | + The directory where the database is installed. |
| 26 | + #### inst_db_installer: linuxx64_12201_database.zip |
| 27 | + The name of the Oracle databse installer. |
| 28 | + #### inst_install_option: INSTALL_DB_AND_CONFIG |
| 29 | + The option used on the RSP file to isntall and configure the Oracle database. |
| 30 | + #### inst_group_name: oinstall |
| 31 | + The Linux group used to install the database. |
| 32 | + #### inst_inventory_location: "{{ inst_root_dir }}/oraInventory" |
| 33 | + The directory where the inventory is saved. |
| 34 | + #### inst_oracle_home: "{{ oracle_home }}" |
| 35 | + The oracle home for the database. |
| 36 | + #### inst_ora_root_file: "{{ inst_oracle_home }}/root.sh" |
| 37 | + The file generated during the installation that must be executed by root. |
| 38 | + #### inst_ora_tab_file: /etc/oratab |
| 39 | + The file that allows us or not the execution of a command to start/shutdown the database. |
| 40 | + #### inst_oracle_base: "{{ oracle_base }}" |
| 41 | + The Oracle base directory |
| 42 | + #### inst_install_edition: SE2 |
| 43 | + The Oracle install edition set within the RSP file. |
| 44 | + #### inst_dba_group: dba |
| 45 | + The dba group's name. |
| 46 | + #### inst_is_rac_install: "false" |
| 47 | + The flag used to tell the installer we do not need a RAC. |
| 48 | + #### inst_start_db_type: GENERAL_PURPOSE |
| 49 | + The type of database we want to create. |
| 50 | + #### inst_global_db_name: "{{ global_db_name }}" |
| 51 | + The global database name. |
| 52 | + #### inst_db_sid: "{{ sid }}" |
| 53 | + The database sid. |
| 54 | + #### inst_conf_as_container: "false" |
| 55 | + The flag used to say we do not want a container. |
| 56 | + #### inst_db_charset: AL32UTF8 |
| 57 | + The charset we want our database to use. |
| 58 | + #### inst_automatic_memory: "false" |
| 59 | + The flag used to say we do not want automatic memory management |
| 60 | + #### inst_memory_limit: 1024 |
| 61 | + Specify the total memory allocation for the database |
| 62 | + #### inst_example_schemas: "false" |
| 63 | + A flag used to tell the installer we do not want example schemas |
| 64 | + #### inst_management_option: DEFAULT |
| 65 | + If you want to manage your database using the default Database Express option |
| 66 | + #### inst_enable_recovery: "false" |
| 67 | + This variable is to be set to false if database recovery is not required |
| 68 | + #### inst_storage_type: FILE_SYSTEM_STORAGE |
| 69 | + The type of storage to use for the database |
| 70 | + #### inst_data_location: "{{ inst_root_dir }}/databasefilelocation" |
| 71 | + Specify the database file location which is a directory for datafiles, control files, redo logs |
| 72 | + #### inst_security_update: "false" |
| 73 | + Specify whether to enable the user to set the password for My Oracle Support credentials. |
| 74 | + #### inst_decline_security_update: "true" |
| 75 | + Specify whether user doesn't want to configure Security Updates |
| 76 | + #### vault_sys_password |
| 77 | + The password for sys. Varible configured in ANSIBLE-ORACLEDB/inventories/dev/group_vars/vault.yml |
| 78 | + #### vault_system_password |
| 79 | + The password for system. Varible configured in ANSIBLE-ORACLEDB/inventories/dev/group_vars/vault.yml |
| 80 | + #### vault_dbsnmp_password |
| 81 | + The password for dbsnmp. Varible configured in ANSIBLE-ORACLEDB/inventories/dev/group_vars/vault.yml |
15 | 82 |
|
16 | 83 | Dependencies
|
17 | 84 | ------------
|
18 | 85 |
|
19 |
| -A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles. |
| 86 | +This role depends on the exeuction of the role os_settings. |
| 87 | + |
| 88 | +This role uses some variables located at ANSIBLE-ORACLEDB/inventories/dev/group_vars/oracledb_vars.yml. |
20 | 89 |
|
21 | 90 | Example Playbook
|
22 | 91 | ----------------
|
23 | 92 |
|
24 |
| -Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too: |
| 93 | +The following example shows how to call this role. |
25 | 94 |
|
26 |
| - - hosts: servers |
27 |
| - roles: |
28 |
| - - { role: username.rolename, x: 42 } |
| 95 | +- hosts: database |
| 96 | + remote_user: oracle |
| 97 | + tasks: |
| 98 | + - include_role: |
| 99 | + name: install_oracle_db |
29 | 100 |
|
30 | 101 | License
|
31 | 102 | -------
|
|
35 | 106 | Author Information
|
36 | 107 | ------------------
|
37 | 108 |
|
38 |
| -An optional section for the role authors to include contact information, or a website (HTML is not allowed). |
| 109 | +[RSCC](https://www.linkedin.com/in/raul-castillo-11051980/) |
0 commit comments