<commit_before>---
# db (node: image)
glance::db::mysql::allowed_hosts:
  - "%{netpart_trp1}.%"
  - "image.%{hiera('domain_trp')}"

# api (node: image)
glance::api::database_connection:         "mysql://glance:%{hiera('glance::db::mysql::password')}@%{hiera('service__address__mysql')}/glance"
glance::api::os_region_name:              "%{location}"
glance::api::bind_host:                   "%{::ipaddress_trp1}"
glance::api::workers:                     2
glance::api::registry_host:               "image.%{hiera('domain_trp')}"
glance::api::show_image_direct_url:       true
glance::api::use_syslog:                  true
glance::api::log_facility:                'LOG_LOCAL3'

glance::api::authtoken::auth_uri:         "%{hiera('endpoint__identity__internal')}"
glance::api::authtoken::auth_url:         "%{hiera('endpoint__identity__admin')}"
glance::api::authtoken::username:         'glance'
glance::api::authtoken::password:         "%{hiera('<PASSWORD>')}"
glance::api::authtoken::region_name:      "%{location}"

# registry (node: image)
glance::registry::os_region_name:         "%{location}"
glance::registry::bind_host:              "%{::ipaddress_trp1}"
glance::registry::database_connection:    "mysql://glance:%{hiera('glance::db::mysql::password')}@%{hiera('service__address__mysql')}/glance"
glance::registry::use_syslog:             true
glance::registry::log_facility:           'LOG_LOCAL3'
glance::registry::enable_v1_registry:     false

glance::registry::authtoken::username:    'glance'
glance::registry::authtoken::password:    "%{hiera('glance::api::authtoken::password')}"
glance::registry::authtoken::auth_uri:    "%{hiera('endpoint__identity__internal')}"
glance::registry::authtoken::auth_url:    "%{hiera('endpoint__identity__admin')}"
glance::registry::authtoken::region_name: "%{location}"

# keystone auth (node: identity)
glance::keystone::auth::password:       "%{hiera('glance::api::authtoken::password')}"
glance::keystone::auth::public_url:     "%{hiera('endpoint__image__public')}"
glance::keystone::auth::admin_url:      "%{hiera('endpoint__image__admin')}"
glance::keystone::auth::internal_url:   "%{hiera('endpoint__image__internal')}"
glance::keystone::auth::region:         "%{::location}"

# backend (node: image)<commit_msg>Use the same secret variable for all glance passwords<commit_after>---
# db (node: image)
glance::db::mysql::allowed_hosts:
  - "%{netpart_trp1}.%"
  - "image.%{hiera('domain_trp')}"

# api (node: image)
glance::api::database_connection:         "mysql://glance:%{hiera('glance::db::mysql::password')}@%{hiera('service__address__mysql')}/glance"
glance::api::os_region_name:              "%{location}"
glance::api::bind_host:                   "%{::ipaddress_trp1}"
glance::api::workers:                     2
glance::api::registry_host:               "image.%{hiera('domain_trp')}"
glance::api::show_image_direct_url:       true
glance::api::use_syslog:                  true
glance::api::log_facility:                'LOG_LOCAL3'

glance::api::authtoken::auth_uri:         "%{hiera('endpoint__identity__internal')}"
glance::api::authtoken::auth_url:         "%{hiera('endpoint__identity__admin')}"
glance::api::authtoken::username:         'glance'
glance::api::authtoken::password:         "%{hiera('glance_api_password')}"
glance::api::authtoken::region_name:      "%{location}"

# registry (node: image)
glance::registry::os_region_name:         "%{location}"
glance::registry::bind_host:              "%{::ipaddress_trp1}"
glance::registry::database_connection:    "mysql://glance:%{hiera('glance::db::mysql::password')}@%{hiera('service__address__mysql')}/glance"
glance::registry::use_syslog:             true
glance::registry::log_facility:           'LOG_LOCAL3'
glance::registry::enable_v1_registry:     false

glance::registry::authtoken::username:    'glance'
glance::registry::authtoken::password:    "%{hiera('glance_api_password')}"
glance::registry::authtoken::auth_uri:    "%{hiera('endpoint__identity__internal')}"
glance::registry::authtoken::auth_url:    "%{hiera('endpoint__identity__admin')}"
glance::registry::authtoken::region_name: "%{location}"

# keystone auth (node: identity)
glance::keystone::auth::auth_name:      'glance'
glance::keystone::auth::password:       "%{h<PASSWORD>('<PASSWORD>')}"
glance::keystone::auth::public_url:     "%{hiera('endpoint__image__public')}"
glance::keystone::auth::admin_url:      "%{hiera('endpoint__image__admin')}"
glance::keystone::auth::internal_url:   "%{hiera('endpoint__image__internal')}"
glance::keystone::auth::region:         "%{::location}"

# backend (node: image)
{'fraction_non_alphanumeric': 0.19314979406026447, 'fraction_numerical': 0.0030349013657056147, 'mean_word_length': 5.572649572649572, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '4608900', 'n_tokens_mistral': 1554, 'n_tokens_neox': 1580, 'n_words': 165}