|
| 1 | +--- |
| 2 | + |
| 3 | + hostgroup: "{{ group_names[0] }}" |
| 4 | + oracle_dbca_rsp: "dbca_{{ dbh.oracle_db_name }}.rsp" # Name of responsefile used by dbca. One per database |
| 5 | + oracle_netca_rsp: "netca_{{ item.home }}_{{ listener_name_template }}.rsp" |
| 6 | + oracle_user: oracle # User that will own the Oracle Installations. |
| 7 | + oracle_user_home: "/home/{{ oracle_user }}" # Home directory for oracle_user. Needed for passing in ssh-keys, profiles etc |
| 8 | + oracle_group: oinstall # Primary group for oracle_user. |
| 9 | + oracle_dba_group: dba # Primary group for oracle_user. |
| 10 | + grid_dba_group: asmdba # Primary group for oracle_user. |
| 11 | + |
| 12 | + #oracle_home_db: "{% if item.oracle_home is defined %}{{ item.oracle_home}}{% else %}{{ oracle_base }}/{{ item.oracle_version_db }}/{{ item.home }}{% endif %}{% else %}{% if db.oracle_home is defined %}{{ db.oracle_home }}{% else %}{{ oracle_base }}/{{ db.oracle_version_db }}/{{ db.home }}{% endif %}" |
| 13 | + #oracle_home_db: "{% if db is defined %}{% if db.oracle_home is defined %}{{db.oracle_home}}{% if item is defined }{% else %}{{ db.oracle_home}}{{ oracle_base }}/{{ db.oracle_version_db }}/{{ db.home }}{% endif %}{% endif %}" |
| 14 | + #oracle_home_db: "{% if item.0 is defined %}{% if item.0.oracle_home is defined %}{{ item.0.oracle_home}}{% else %}{{ oracle_base }}/{{ item.0.oracle_version_db }}/{{ item.0.home }}{% endif %}{% else %}{% if item.oracle_home is defined %}{{ item.oracle_home }}{% else %}{{ oracle_base }}/{{ item.oracle_version_db }}/{{ item.home }}{% endif %}{% endif %}" |
| 15 | + oracle_home_db: "{% if item is defined %}{% if item.oracle_home is defined %}{{ item.oracle_home}}{% else %}{{ oracle_base }}/{{ item.oracle_version_db }}/{{ item.home }}{% endif %}{% else %}{% if dbh.oracle_home is defined %}{{ dbh.oracle_home }}{% else %}{{ oracle_base }}/{{ dbh.oracle_version_db }}/{{ dbh.home }}{% endif %}{% endif %}" |
| 16 | + |
| 17 | + oracle_env_dbca: |
| 18 | + ORACLE_HOME: "{{ oracle_home_db}}" |
| 19 | + LD_LIBRARY_PATH: "{{ oracle_home_db}}/lib" |
| 20 | + |
| 21 | + oracle_stage: /u01/stage |
| 22 | + oracle_rsp_stage: "{{ oracle_stage }}/rsp" |
| 23 | + oracle_inventory_loc: /u01/app/oraInventory |
| 24 | + oracle_base: /u01/app/oracle |
| 25 | + oracle_profile_name: ".profile_{{ item.oracle_db_name }}" # Name of profile-file. Sets up the environment for that database. One per database |
| 26 | + oracle_dbf_dir_fs: /u01/oradata/ # If storage_type=FS this is where the database is placed. |
| 27 | + oracle_reco_dir_fs: /u01/fra/ # If storage_type=FS this is where the fast recovery area is placed. |
| 28 | + oracle_dbf_dir_asm: '+DATA' # If storage_type=ASM this is where the database is placed. |
| 29 | + oracle_reco_dir_asm: '+FRA' # If storage_type=ASM this is where the fast recovery area is placed |
| 30 | + datafile_dest: "{% if dbh.storage_type|upper == 'FS' %}{{ oracle_dbf_dir_fs }}{% elif dbh.storage_type|upper == 'ASM' %}{{ oracle_dbf_dir_asm }}{% else %}{% endif %}" |
| 31 | + recoveryfile_dest: "{% if dbh.storage_type|upper == 'FS' %}{{ oracle_reco_dir_fs }}{% elif dbh.storage_type|upper == 'ASM' %}{{ oracle_reco_dir_asm }}{% else %}{% endif %}" |
| 32 | + # datafile_dest: "{% if item.0.storage_type|upper == 'FS' %}{{ oracle_dbf_dir_fs }}{% elif item.0.storage_type|upper == 'ASM' %}{{ oracle_dbf_dir_asm }}{% else %}{% endif %}" |
| 33 | + # recoveryfile_dest: "{% if item.0.storage_type|upper == 'FS' %}{{ oracle_reco_dir_fs }}{% elif item.0.storage_type|upper == 'ASM' %}{{ oracle_reco_dir_asm }}{% else %}{% endif %}" |
| 34 | + |
| 35 | + configure_cluster: false |
| 36 | + #oracle_install_option_gi: "none" |
| 37 | + oracle_gi_cluster_type: STANDARD |
| 38 | + hostgroup_hub: "{{ hostgroup }}-hub" |
| 39 | + hostgroup_leaf: "{{ hostgroup }}-leaf" |
| 40 | + create_listener: "{% if oracle_install_option_gi is defined %}False{% elif oracle_install_option_gi is undefined %}{% if item.listener_name is defined %}True{% else %}False{% endif %}{% endif %}" |
| 41 | + listener_name_template: "{% if item.listener_name is defined %}{{ item.listener_name }}{% else %}{{ listener_name }}{% endif %}" |
| 42 | + listener_protocols_template: "{% if item.listener_protocols is defined %}{{ item.listener_protocols }}{% else %}{{ listener_protocols }}{% endif %}" |
| 43 | + listener_port_template: "{% if item.listener_port is defined %}{{ item.listener_port }}{% else %}{{ listener_port }}{% endif %}" |
| 44 | + listener_name: LISTENER |
| 45 | + listener_protocols: TCP |
| 46 | + listener_port: 1521 |
| 47 | + autostartup_service: false |
| 48 | + |
| 49 | + |
| 50 | + # Everything between the lines START-OF-PASSWORDS & END-OF-PASSWORDS can be |
| 51 | +# put in an external passwords.yml file and be encrypted by Vault. |
| 52 | +# The file should be put in 'group_vars/<your-config>/passwords.yml' |
| 53 | +# This example will be broken out to a passwords.yml as soon as is allowed in ansible |
| 54 | + |
| 55 | +## START-OF-PASSWORDS |
| 56 | + # GI |
| 57 | + default_gipass: "{% if oracle_password is defined %}{{ oracle_password }}{% else %}Oracle123{% endif%}" # The check for the old passwords are there for backwards compatibility and only temporary, will be removed |
| 58 | + sysasmpassword: "{% if oracle_password is defined %}{{ oracle_password }}{% else %}Oracle123{% endif%}" # The check for the old passwords are there for backwards compatibility and only temporary, will be removed |
| 59 | + asmmonitorpassword: "{% if oracle_password is defined %}{{ oracle_password }}{% else %}Oracle123{% endif%}" # The check for the old passwords are there for backwards compatibility and only temporary, will be removed |
| 60 | + # DB |
| 61 | + default_dbpass: "{% if item is defined %}{% if item.oracle_db_passwd is defined %}{{ item.oracle_db_passwd}}{% endif %}{% elif dbh is defined %}{% if dbh.oracle_db_passwd is defined %}{{ dbh.oracle_db_passwd }}{% endif %}{% else %}Oracle_123{% endif %}" |
| 62 | + dbpasswords: |
| 63 | + orcl: |
| 64 | + sys: Oracle_456 |
| 65 | + system: Oracle_456 |
| 66 | + dbsnmp: Oracle_456 |
| 67 | + pdbadmin: Oracle_456 |
| 68 | + |
| 69 | +## END-OF-PASSWORDS |
| 70 | + |
| 71 | + dbca_templatename: General_Purpose.dbc |
| 72 | + dbca_initParams: "{% if '12.2' in dbh.oracle_version_db %} -initParams db_name={{dbh.oracle_db_name}}{% if dbh.oracle_db_unique_name is defined %},db_unique_name={{dbh.oracle_db_unique_name}}{% endif %}{% endif %}" |
| 73 | + dbca_sys_pass: "{% if dbpasswords[dbh.oracle_db_name] is defined %}{% if dbpasswords[dbh.oracle_db_name]['sys'] is defined %}{{dbpasswords[dbh.oracle_db_name]['sys']}}{% else %}{{default_dbpass}}{% endif %}{% else %}{{default_dbpass}}{% endif %}" |
| 74 | + dbca_redolog: "{% if dbh.redolog_size_in_mb is defined %} -redoLogFileSize {{dbh.redolog_size_in_mb}}{% endif %}" |
| 75 | + |
| 76 | +# This is an example layout of a database installation |
| 77 | + oracle_databases: # Dictionary describing the databases to be installed |
| 78 | + - home: db1 # 'Last' directory in ORACLE_HOME path (e.g /u01/app/oracle/12.1.0.2/racdb) |
| 79 | + oracle_version_db: 12.2.0.1 # Oracle versiono |
| 80 | + oracle_edition: EE # The edition of database-server (EE,SE,SEONE) |
| 81 | + oracle_db_name: orcl # Database name |
| 82 | + oracle_db_type: SI # Type of database (RAC,RACONENODE,SI) |
| 83 | + is_container: False # (true/false) Is the database a container database |
| 84 | + pdb_prefix: pdb |
| 85 | + num_pdbs: 1 |
| 86 | + storage_type: FS # Database storage to be used. ASM or FS. |
| 87 | + service_name: orcl_serv # Inital service to be created (not in use yet) |
| 88 | + oracle_init_params: "" # Specific parameters to be set during installation. Comma-separated list |
| 89 | + oracle_db_mem_totalmb: 1024 # Amount of RAM to be used for SGA + PGA |
| 90 | + oracle_database_type: MULTIPURPOSE # MULTIPURPOSE|DATA_WAREHOUSING|OLTP |
| 91 | + redolog_size_in_mb: 100 |
| 92 | + listener_name: LISTENER |
| 93 | + state: present # present | absent |
0 commit comments