<commit_before>---
  master_node: true
  os_family_supported: "RedHat"
  os_min_supported_version: "6.4"

# Users & groups

  oracle_groups:
    - { group: asmdba, gid: 54318 }
    - { group: asmoper, gid: 54319 }
    - { group: asmadmin, gid: 54320 }
    - { group: oinstall, gid: 54321 }
    - { group: dba, gid: 54322 }
    - { group: backupdba, gid: 54323 }
    - { group: oper, gid: 54324 }
    - { group: dgdba, gid: 54325 }
    - { group: kmdba, gid: 54326 }



  oracle_users:         # Passwd :<PASSWORD>
   - { username: oracle, uid: 54321, primgroup: oinstall, othergroups: "dba,asmdba,backupdba,dgdba,kmdba,oper", passwd: <PASSWORD>" }
  grid_users:
   - { username: grid, uid: 54320, primgroup: oinstall, othergroups: "asmadmin,asmdba,asmoper,dba", passwd: <PASSWORD>" }

  role_separation: false
  oracle_user: oracle                        # User that will own the Oracle Installations.
  grid_user: grid
  grid_install_user: "{% if role_separation==true %}{{grid_user }}{% else %}{{ oracle_user }}{% endif %}"

  oracle_user_home: "/home/{{ oracle_user }}" # Home directory for oracle_user. Needed for passing in ssh-keys, profiles etc
  grid_user_home: "/home/{{ grid_install_user }}" # Home directory for oracle_user. Needed for passing in ssh-keys, profiles etc
  oracle_group: oinstall                          # Primary group for oracle_user. 
  oper_group: oper
  dba_group: dba                          
  asmoper_group: asmoper
  asmdba_group: asmdba                   
  asmadmin_group: asmadmin              

  ssh_keys:
   - /tmp/id_rsa
   - /tmp/id_rsa.pub
   - /tmp/authorized_keys
  keyfile: /tmp/known_hosts

  epel_rpm: "http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm"
  asmlib_rpm: "http://download.oracle.com/otn_software/asmlib/oracleasmlib-2.0.4-1.el6.x86_64.rpm"
  ol6_repo_file: public-yum-ol6.repo
  repo_dir: /etc/yum.repos.d/

  disable_numa_boot: true                    # (true/false) Sets numa=off in grub.conf
  percent_hugepages: 50                      # Percentage (0-100) of total RAM to dedicate to hugepages, Configures vm.nr_hugepages & memlock settings 
  configure_interconnect: false               # (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
  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 172.16.31.10)
  configure_ssh: false                        # (true/false). Should passwordless ssh be configured between clusternodes. Only applicable to RAC-installs
  configure_host_disks: false                 # (true/false). Should the specified directories be on their on devices -> (true), or do they live in the root-filesystem (/) -> (false). 
                                             # mountpoints are described in host_fs_layout
  configure_etc_hosts: false
  configure_cluster: false
  oracle_stage: /u01/stage
  oracle_rsp_stage: "{{ oracle_stage }}/rsp"
  device_persistence: asmlib
  install_os_packages: true
  disable_selinux: true

                                             
  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
      u01:
        {mntp: /u01, device: /dev/sdb, vgname: vgora, pvname: /dev/sdb1, lvname: lvora, fstype: ext4}

  asm_diskgroups:        # ASM Diskgroups used for DB-storage. Should map to dict asm_storage_layout. 
     - crs
     - data
     - fra

  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
   crs:
     - {device: /dev/sdc, asmlabel: CRS01}
   data:
     - {device: /dev/sdd, asmlabel: DATA01}
   fra:
     - {device: /dev/sde, asmlabel: FRA01 }

  oracle_packages:
      - libselinux-python
      - procps
      - module-init-tools
      - ethtool
      - bc
      - bind-utils
      - nfs-utils
      - util-linux-ng
      - xorg-x11-utils
      - xorg-x11-xauth
      - binutils
      - compat-libstdc++-33
      - gcc
      - gcc-c++
      - glibc
      - glibc-devel
      - glibc-devel.i686
      - libaio
      - libaio-devel
      - libgcc
      - libstdc++
      - libstdc++-devel
      - make
      - sysstat
      - openssh-clients
      - compat-libcap1
      - twm
      - kmod-oracleasm
      - "{{ asmlib_rpm }}"
      - oracleasm-support
      - xorg-x11-xauth
      - xorg-x11-xinit
      - libXtst
      - xdpyinfo
      - xterm
      - xsetroot
      - libXp
      - libXt
      - libXtst
      - ntp
      - ksh
      - lvm2
      - xfsprogs
      - btrfs-progs
     
  oracle_sysconfig:
      - { name: kernel.shmall, value: 4294967296 }
      - { name: kernel.shmmax, value: 68719476736 }
      - { name: kernel.shmmni, value: 4096 }
      - { name: kernel.sem, value: "250 32000 100 128" }
      - { name: fs.file-max, value: 6815744 }
      - { name: fs.aio-max-nr, value: 1048576 }
      - { name: net.ipv4.ip_local_port_range, value: "9000 65500" }
      - { name: net.core.rmem_default, value: 262144 }
      - { name: net.core.rmem_max, value: 4194304 }
      - { name: net.core.wmem_default, value: 262144 }
      - { name: net.core.wmem_max, value: 1048576 }
      - { name: vm.nr_hugepages, value: "{{ (((percent_hugepages/100) * ansible_memtotal_mb)/2)|round|int  }}" }

#  oracle_seclimits:
#      - "{{ oracle_user }} soft nproc 2047"
#      - "{{ oracle_user }} hard nproc 16384"
#      - "{{ oracle_user }} soft nofile 4096"
#      - "{{ oracle_user }} hard nofile 65536"<commit_msg>Added missing package<commit_after>---
  master_node: true
  os_family_supported: "RedHat"
  os_min_supported_version: "6.4"

# Users & groups

  oracle_groups:
    - { group: asmdba, gid: 54318 }
    - { group: asmoper, gid: 54319 }
    - { group: asmadmin, gid: 54320 }
    - { group: oinstall, gid: 54321 }
    - { group: dba, gid: 54322 }
    - { group: backupdba, gid: 54323 }
    - { group: oper, gid: 54324 }
    - { group: dgdba, gid: 54325 }
    - { group: kmdba, gid: 54326 }



  oracle_users:         # Passwd :<PASSWORD>
   - { username: oracle, uid: 54321, primgroup: oinstall, othergroups: "dba,asmdba,backupdba,dgdba,kmdba,oper", passwd: <PASSWORD>" }
  grid_users:
   - { username: grid, uid: 54320, primgroup: oinstall, othergroups: "asmadmin,asmdba,asmoper,dba", passwd: <PASSWORD>" }

  role_separation: false
  oracle_user: oracle                        # User that will own the Oracle Installations.
  grid_user: grid
  grid_install_user: "{% if role_separation==true %}{{grid_user }}{% else %}{{ oracle_user }}{% endif %}"
  configure_oracle_sudo: true

  oracle_user_home: "/home/{{ oracle_user }}" # Home directory for oracle_user. Needed for passing in ssh-keys, profiles etc
  grid_user_home: "/home/{{ grid_install_user }}" # Home directory for oracle_user. Needed for passing in ssh-keys, profiles etc
  oracle_group: oinstall                          # Primary group for oracle_user. 
  oper_group: oper
  dba_group: dba                          
  asmoper_group: asmoper
  asmdba_group: asmdba                   
  asmadmin_group: asmadmin              

  ssh_keys:
   - /tmp/id_rsa
   - /tmp/id_rsa.pub
   - /tmp/authorized_keys
  keyfile: /tmp/known_hosts

  epel_rpm: "http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm"
  asmlib_rpm: "http://download.oracle.com/otn_software/asmlib/oracleasmlib-2.0.4-1.el6.x86_64.rpm"
  ol6_repo_file: public-yum-ol6.repo
  repo_dir: /etc/yum.repos.d/

  disable_numa_boot: true                    # (true/false) Sets numa=off in grub.conf
  percent_hugepages: 50                      # Percentage (0-100) of total RAM to dedicate to hugepages, Configures vm.nr_hugepages & memlock settings 
  configure_interconnect: false               # (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
  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 172.16.31.10)
  configure_ssh: false                        # (true/false). Should passwordless ssh be configured between clusternodes. Only applicable to RAC-installs
  configure_host_disks: false                 # (true/false). Should the specified directories be on their on devices -> (true), or do they live in the root-filesystem (/) -> (false). 
                                             # mountpoints are described in host_fs_layout
  configure_etc_hosts: false
  configure_cluster: false
  oracle_stage: /u01/stage
  oracle_rsp_stage: "{{ oracle_stage }}/rsp"
  device_persistence: asmlib
  install_os_packages: true
  disable_selinux: true

                                             
  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
      u01:
        {mntp: /u01, device: /dev/sdb, vgname: vgora, pvname: /dev/sdb1, lvname: lvora, fstype: ext4}

  asm_diskgroups:        # ASM Diskgroups used for DB-storage. Should map to dict asm_storage_layout. 
     - crs
     - data
     - fra

  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
   crs:
     - {device: /dev/sdc, asmlabel: CRS01}
   data:
     - {device: /dev/sdd, asmlabel: DATA01}
   fra:
     - {device: /dev/sde, asmlabel: FRA01 }

  oracle_packages:
      - libselinux-python
      - procps
      - module-init-tools
      - ethtool
      - bc
      - bind-utils
      - nfs-utils
      - util-linux-ng
      - xorg-x11-utils
      - xorg-x11-xauth
      - binutils
      - compat-libstdc++-33
      - gcc
      - gcc-c++
      - glibc
      - glibc-devel
      - glibc-devel.i686
      - libaio
      - libaio-devel
      - libgcc
      - libstdc++
      - libstdc++-devel
      - make
      - sysstat
      - openssh-clients
      - compat-libcap1
      - twm
      - kmod-oracleasm
      - "{{ asmlib_rpm }}"
      - oracleasm-support
      - xorg-x11-xauth
      - xorg-x11-xinit
      - libXtst
      - xdpyinfo
      - xterm
      - xsetroot
      - libXp
      - libXt
      - libXtst
      - ntp
      - ksh
      - lvm2
      - xfsprogs
      - btrfs-progs
      - parted
     
  oracle_sysconfig:
      - { name: kernel.shmall, value: 4294967296 }
      - { name: kernel.shmmax, value: 68719476736 }
      - { name: kernel.shmmni, value: 4096 }
      - { name: kernel.sem, value: "250 32000 100 128" }
      - { name: fs.file-max, value: 6815744 }
      - { name: fs.aio-max-nr, value: 1048576 }
      - { name: net.ipv4.ip_local_port_range, value: "9000 65500" }
      - { name: net.core.rmem_default, value: 262144 }
      - { name: net.core.rmem_max, value: 4194304 }
      - { name: net.core.wmem_default, value: 262144 }
      - { name: net.core.wmem_max, value: 1048576 }
      - { name: vm.nr_hugepages, value: "{{ (((percent_hugepages/100) * ansible_memtotal_mb)/2)|round|int  }}" }

#  oracle_seclimits:
#      - "{{ oracle_user }} soft nproc 2047"
#      - "{{ oracle_user }} hard nproc 16384"
#      - "{{ oracle_user }} soft nofile 4096"
#      - "{{ oracle_user }} hard nofile 65536"
{'fraction_non_alphanumeric': 0.11235759631272285, 'fraction_numerical': 0.04104704756935386, 'mean_word_length': 2.248587570621469, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 14, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2941387', 'n_tokens_mistral': 4477, 'n_tokens_neox': 3995, 'n_words': 926}