<commit_before>---
include:
  default:
    - profile::database::galera

named_interfaces::config:
  mgmt:
    - eth0
  trp:
    - eth1
  public:
    - dummy0

mysql::server::restart:         false

profile::base::common::packages:
# Galera
  'bzip2':                  {}
  'rsync':                  {}
  'socat':                  {}
# Sensu plugin
  'MariaDB-devel':          {}
  'gcc':                    {}
  'gcc-c++':                {}
  'make':                   {}

# Packages needed to run
profile::database::mariadb::packages:
  - MariaDB-backup

mysql__config__max_connections:             '128'
mysql__config__query_cache_size:            '128M'
mysql__config__query_cache_limit:           '32M'

profile::network::interface::manage_dummy: true
profile::base::network::manage_dummy: true # FIXME; remove when el7 is gone

profile::database::galera::wsrep_sst_secure_rsync:
  ca:   "%{hiera('db_ssl_ca')}"
  key:  "%{hiera('db_ssl_key')}"
  cert: "%{hiera('db_ssl_cert')}"

# Openstack databases
profile::openstack::database::sql::keystone_enabled:    true
profile::openstack::database::sql::designate_enabled:   true

profile::database::mariadb::dbs:
  report: # used in report api
    user:     'report'
    host:     "%{hiera('netcfg_trp_netpart')}.%"
    password: "%{h<PASSWORD>('report_<PASSWORD>')}"
    grant:    ['ALL']

# database for token rotation distribution
profile::database::mariadb::databases:
  'token_keys':
    ensure:   'present'

profile::database::mariadb::grants:
  "keystone@%{hiera('netcfg_trp_netpart')}.%/token_keys.*":
    ensure:     'present'
    options:    ['GRANT']
    privileges: ['SELECT', 'INSERT', 'DELETE', 'CREATE']
    user:       "keystone@%{hiera('netcfg_trp_netpart')}.%"
    table:      'token_keys.*'

profile::base::selinux::manage_selinux:                             true
profile::base::selinux::ports:
  mysql-galera:
    seltype:  'mysqld_port_t'
    protocol: 'tcp'
    port:      4444<commit_msg>feat: added more galera port so selinux allow<commit_after>---
include:
  default:
    - profile::database::galera

named_interfaces::config:
  mgmt:
    - eth0
  trp:
    - eth1
  public:
    - dummy0

mysql::server::restart:         false

profile::base::common::packages:
# Galera
  'bzip2':                  {}
  'rsync':                  {}
  'socat':                  {}
# Sensu plugin
  'MariaDB-devel':          {}
  'gcc':                    {}
  'gcc-c++':                {}
  'make':                   {}

# Packages needed to run
profile::database::mariadb::packages:
  - MariaDB-backup

mysql__config__max_connections:             '128'
mysql__config__query_cache_size:            '128M'
mysql__config__query_cache_limit:           '32M'

profile::network::interface::manage_dummy: true
profile::base::network::manage_dummy: true # FIXME; remove when el7 is gone

profile::database::galera::wsrep_sst_secure_rsync:
  ca:   "%{hiera('db_ssl_ca')}"
  key:  "%{hiera('db_ssl_key')}"
  cert: "%{hiera('db_ssl_cert')}"

# Openstack databases
profile::openstack::database::sql::keystone_enabled:    true
profile::openstack::database::sql::designate_enabled:   true

profile::database::mariadb::dbs:
  report: # used in report api
    user:     'report'
    host:     "%{hiera('netcfg_trp_netpart')}.%"
    password: "%{hiera('report_db_password')}"
    grant:    ['ALL']

# database for token rotation distribution
profile::database::mariadb::databases:
  'token_keys':
    ensure:   'present'

profile::database::mariadb::grants:
  "keystone@%{hiera('netcfg_trp_netpart')}.%/token_keys.*":
    ensure:     'present'
    options:    ['GRANT']
    privileges: ['SELECT', 'INSERT', 'DELETE', 'CREATE']
    user:       "keystone@%{hiera('netcfg_trp_netpart')}.%"
    table:      'token_keys.*'

profile::base::selinux::manage_selinux:                             true
profile::base::selinux::ports:
  mysql-galera-socat:
    seltype:  'mysqld_port_t'
    protocol: 'tcp'
    port:      4444
  mysql-galera1:
    seltype:  'mysqld_port_t'
    protocol: 'tcp'
    port:      4567
  mysql-galera2:
    seltype:  'mysqld_port_t'
    protocol: 'tcp'
    port:      4568
{'fraction_non_alphanumeric': 0.15354807459433276, 'fraction_numerical': 0.010656333252603536, 'mean_word_length': 2.97497593840231, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4723304', 'n_tokens_mistral': 1473, 'n_tokens_neox': 1426, 'n_words': 234}