<commit_before># Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

---

# Variables used by more than one role
oracle_ver_dir: "{{ oracle_ver [:6] }}"
oracle_inventory: "{{ oracle_root }}/oraInventory"
oracle_base: "{{ oracle_root }}/oracle"
oracle_home: "{{ oracle_root }}/oracle/product/{{ oracle_ver_dir }}/{{ home_name }}"
grid_home: "{{ oracle_root }}/{{ oracle_ver_dir }}/grid"

path_udev: asmdisks

oracle_users:
  - { name: "{{ oracle_user }}", comment: "", uid: 801, group: "{{ oracle_group }}" }
  - { name: "{{ grid_user }}", comment: "", uid: 802, group: "{{ oracle_group }}" }

#
# Groups for the oracle user
# oracle_groups          : used in roles/ora-host/tasks/main.yml and roles/brute-ora-cleanup/tasks/main.yml
#                          to create and drop the groups
# extra_oracle_groups    : used in roles/ora-host/tasks/main.yml to be assigned to the user
#
oracle_groups:
  - { group: oinstall ,       gid: 801 }
  - { group: dba      ,       gid: 802 }
  - { group: oper     ,       gid: 803 }
  - { group: backupdba,       gid: 804 }
  - { group: dgdba    ,       gid: 805 }
  - { group: kmdba    ,       gid: 806 }
  - { group: racdba   ,       gid: 810 }

extra_oracle_groups:
  - { group: asmdba   ,       gid: 807 }
  - { group: asmadmin ,       gid: 809 }

#
# Groups for the grid user
# asm_groups          : used in roles/ora-host/tasks/main.yml and roles/brute-ora-cleanup/tasks/main.yml
#                       to create and drop the groups
# extra_asm_groups    : used in roles/ora-host/tasks/main.yml to be assigned to the user
#
asm_groups:
  - { group: asmdba   ,       gid: 807 }
  - { group: asmoper  ,       gid: 808 }
  - { group: asmadmin ,       gid: 809 }

extra_asm_groups:
  - { group: dba      ,       gid: 802 }

asm_diskstring: "{% if asm_disk_management == 'asmlib' %}ORCL:*{% else %}/dev/{{ path_udev }}/*{% endif %}"

oracle_dirs:
  - { name: "{{ swlib_unzip_path }}", owner: "{{ oracle_user }}", group: "{{ oracle_group }}", mode: "ug=rwx,o=rx" }
  - { name: "{{ oracle_base }}", owner: "{{ oracle_user }}", group: "{{ oracle_group }}", mode: "ug=rwx,o=rx" }
  - { name: "{{ oracle_inventory }}", owner: "{{ grid_user }}", group: "{{ oracle_group }}", mode: "ug=rwx,o=rx" }
  - { name: "{{ oracle_home }}", owner: "{{ oracle_user }}", group: "{{ oracle_group }}", mode: "ug=rwx,o=rx" }
  - { name: "/home/oracle/.ansible/tmp", owner: "{{ oracle_user }}", group: "{{ oracle_group }}", mode: "ug=rwx,o=rx" }
  - { name: "{{ grid_home }}", owner: "{{ grid_user }}", group: "{{ oracle_group }}", mode: "ug=rwx,o=rx" }
  - { name: "/home/grid/.ansible/tmp", owner: "{{ oracle_user }}", group: "{{ oracle_group }}", mode: "ug=rwx,o=rx" }

pwgen_file: pwgen.sh
pwgen_path: /usr/local/bin
pass_param: "{{pwgen_path}}/{{pwgen_file}} 16"

diskgroup_compatible_asm: "{{ oracle_ver }}"
diskgroup_compatible_rdbms: "{# assign to variable c compatible parameter and set to default if not defined #}\
                            {% set c = lookup('env','COMPATIBLE_RDBMS')|default('172.16.31.10.0',true) %} \
                            {# if 19.3... base then lower it to 19.0... to avoid issues with dbca #}\
                            {% if c == '19.3.0.0.0' %}\
                              192.168.3.11.0\
                            {% else %}\
                              {{ c }}\
                            {% endif %}"

run_cluvfy: false

# section for DR
standby_suffix: s

gi_software:
  - name: 19c_gi
    version: 19.3.0.0.0
    files:
      - "V982068-01.zip"
    sha256sum:
      - "D668002664D9399CF61EB03C0D1E3687121FC890B1DDD50B35DCBE13C5307D2E"
  - name: 18c_gi
    version: 18.0.0.0.0
    files:
      - "V978971-01.zip"
    sha256sum:
      - "122C1A780FE0C399818064021E3D797ED4C6B3BB68CEB2E102430FA370054CD1"
  - name: 12201_gi
    version: 192.168.3.11.0
    files:<commit_msg>Update main.yml<commit_after># Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

---

# Variables used by more than one role
oracle_ver_dir: "{{ oracle_ver [:6] }}"
oracle_inventory: "{{ oracle_root }}/oraInventory"
oracle_base: "{{ oracle_root }}/oracle"
oracle_home: "{{ oracle_root }}/oracle/product/{{ oracle_ver_dir }}/{{ home_name }}"
grid_home: "{{ oracle_root }}/{{ oracle_ver_dir }}/grid"

path_udev: asmdisks

oracle_users:
  - { name: "{{ oracle_user }}", comment: "", uid: 801, group: "{{ oracle_group }}" }
  - { name: "{{ grid_user }}", comment: "", uid: 802, group: "{{ oracle_group }}" }

#
# Groups for the oracle user
# oracle_groups          : used in roles/ora-host/tasks/main.yml and roles/brute-ora-cleanup/tasks/main.yml
#                          to create and drop the groups
# extra_oracle_groups    : used in roles/ora-host/tasks/main.yml to be assigned to the user
#
oracle_groups:
  - { group: oinstall ,       gid: 801 }
  - { group: dba      ,       gid: 802 }
  - { group: oper     ,       gid: 803 }
  - { group: backupdba,       gid: 804 }
  - { group: dgdba    ,       gid: 805 }
  - { group: kmdba    ,       gid: 806 }
  - { group: racdba   ,       gid: 810 }

extra_oracle_groups:
  - { group: asmdba   ,       gid: 807 }
  - { group: asmadmin ,       gid: 809 }

#
# Groups for the grid user
# asm_groups          : used in roles/ora-host/tasks/main.yml and roles/brute-ora-cleanup/tasks/main.yml
#                       to create and drop the groups
# extra_asm_groups    : used in roles/ora-host/tasks/main.yml to be assigned to the user
#
asm_groups:
  - { group: asmdba   ,       gid: 807 }
  - { group: asmoper  ,       gid: 808 }
  - { group: asmadmin ,       gid: 809 }

extra_asm_groups:
  - { group: dba      ,       gid: 802 }

asm_diskstring: "{% if asm_disk_management == 'asmlib' %}ORCL:*{% else %}/dev/{{ path_udev }}/*{% endif %}"

oracle_dirs:
  - { name: "{{ swlib_unzip_path }}", owner: "{{ oracle_user }}", group: "{{ oracle_group }}", mode: "ug=rwx,o=rx" }
  - { name: "{{ oracle_base }}", owner: "{{ oracle_user }}", group: "{{ oracle_group }}", mode: "ug=rwx,o=rx" }
  - { name: "{{ oracle_inventory }}", owner: "{{ grid_user }}", group: "{{ oracle_group }}", mode: "ug=rwx,o=rx" }
  - { name: "{{ oracle_home }}", owner: "{{ oracle_user }}", group: "{{ oracle_group }}", mode: "ug=rwx,o=rx" }
  - { name: "/home/oracle/.ansible/tmp", owner: "{{ oracle_user }}", group: "{{ oracle_group }}", mode: "ug=rwx,o=rx" }
  - { name: "{{ grid_home }}", owner: "{{ grid_user }}", group: "{{ oracle_group }}", mode: "ug=rwx,o=rx" }
  - { name: "/home/grid/.ansible/tmp", owner: "{{ oracle_user }}", group: "{{ oracle_group }}", mode: "ug=rwx,o=rx" }

pwgen_file: pwgen.sh
pwgen_path: /usr/local/bin
pass_param: "{{pwgen_path}}/{{pwgen_file}} 16"

diskgroup_compatible_asm: "{{ oracle_ver }}"
diskgroup_compatible_rdbms: "{# assign to variable c compatible parameter and set to default if not defined #}\
                            {% set c = lookup('env','COMPATIBLE_RDBMS')|default('172.16.31.10.0',true) %} \
                            {# if 19.3... base then lower it to 19.0... to avoid issues with dbca #}\
                            {% if c == '172.16.31.10.0' %}\
                              192.168.3.11.0\
                            {% else %}\
                              {{ c }}\
                            {% endif %}"

run_cluvfy: false

# section for DR
standby_suffix: _s

gi_software:
  - name: 19c_gi
    version: 172.16.31.10.0
    files:
      - "V982068-01.zip"
    sha256sum:
      - "D668002664D9399CF61EB03C0D1E3687121FC890B1DDD50B35DCBE13C5307D2E"
  - name: 18c_gi
    version: 18.0.0.0.0
    files:
      - "V978971-01.zip"
    sha256sum:
      - "122C1A780FE0C399818064021E3D797ED4C6B3BB68CEB2E102430FA370054CD1"
  - name: 12201_gi
    version: 192.168.3.11.0
    files:
{'fraction_non_alphanumeric': 0.1583038061492742, 'fraction_numerical': 0.05234883986741342, 'mean_word_length': 2.5875358753587534, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 12, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '338074', 'n_tokens_mistral': 3510, 'n_tokens_neox': 3096, 'n_words': 752}