<commit_before>---
location_environment: 'test02'
location_description: 'Test environment physically in OSL'

domain_public: 'test.iaas.uio.no'
domain_trp:    'test.iaas.uio.no'
domain_mgmt:   'test.iaas.uio.no'

location_dns1: '192.168.127.12'
location_dns2: '192.168.127.12'

# These should only be used to configure network in nodes!
netcfg_netpart_trp:     '172.30.32'
netcfg_netmask_trp:     '255.255.255.0'
netcfg_netpart_mgmt:    '172.28.32'
netcfg_reverse_dns:     '32.28.172.in-addr.arpa'
netcfg_netmask_mgmt:    '255.255.255.0'
netcfg_gateway_mgmt:    '172.28.32.10'
netcfg_netpart_public:  '192.168.12'
netcfg_netmask_public:  '255.255.255.0'
netcfg_peerdns1:        "%{hiera('location_dns1')}"
#netcfg_peerdns1:        '8.8.8.8'
netcfg_peerdns2:        "%{hiera('location_dns2')}"
netcfg_domain:          "%{hiera('domain_mgmt')} %{hiera('domain_trp')} %{hiera('domain_public')}"

# We need to allow both trafic from mgmt (nat via login) and public net

allow_from_network:
  - '172.16.31.10/24'
  - '172.31.4.0/24'
  - '172.31.12.0/24'
  - '192.168.12.0/24'

named_interfaces::config:
  mgmt:
    - eth0
  transport:
    - eth1
  service:
    - eth1
  trp:
    - eth1
  public:
    - eth2

endpoint_protocol:      'https'

# transport
service__address__mysql:             "%{hiera('netcfg_netpart_trp')}.41"
service__address__keystone:          "%{hiera('netcfg_netpart_trp')}.81"
service__address__keystone_admin:    "%{hiera('netcfg_netpart_trp')}.81"
service__address__glance_registry:   "%{hiera('netcfg_netpart_trp')}.36"
service__address__glance_api:        "%{hiera('netcfg_netpart_trp')}.36"
service__address__nova_api:          "%{hiera('netcfg_netpart_trp')}.66"
service__address__nova_api_metadata: "127.0.0.1"
service__address__neutron_server:    "%{hiera('netcfg_netpart_trp')}.71"
service__address__cinder_api:        "%{hiera('netcfg_netpart_trp')}.46"
service__address__etcd_cluster:      "%{hiera('netcfg_netpart_trp')}.71"

# mgmt
service__address__proxy:             "%{hiera('netcfg_netpart_mgmt')}.12"
service__address__rsyslog:           "%{hiera('netcfg_netpart_mgmt')}.18"

# rabbitmq
service__address__rabbitmq_01:       "%{hiera('netcfg_netpart_trp')}.31"
service__address__rabbitmq_02:       "%{hiera('netcfg_netpart_trp')}.31"
service__address__rabbitmq_03:       "%{hiera('netcfg_netpart_trp')}.31"

ntp::servers:
  - ntp1.uio.no
  - ntp2.uio.no

profile::network::services::dns_options:
  CNAME:
    default:
      ttl: 3600
      keyfile: "/etc/rndc.key"
      server: "172.16.17.32"
  A:
    default:
      ttl: 86400
      keyfile: "/etc/rndc.key"
      server: "172.16.17.32"
  PTR:
    default:
      ttl: 86400
      keyfile: "/etc/rndc.key"
      server: "172.16.17.32"

profile::network::services::dns_records:
  CNAME:
    "puppet.%{hiera('domain_mgmt')}":                     "%{location}-admin-01.%{hiera('domain_mgmt')}"
    "foreman.%{hiera('domain_mgmt')}":                    "%{location}-admin-01.%{hiera('domain_mgmt')}"
    "repo.%{hiera('domain_mgmt')}":                       "%{location}-admin-01.%{hiera('domain_mgmt')}"
    "proxy.%{hiera('domain_mgmt')}":                      "%{location}-proxy-01.%{hiera('domain_mgmt')}"
    "logger.%{hiera('domain_mgmt')}":                     "%{location}-logger-01.%{hiera('domain_mgmt')}"
    "master.%{hiera('domain_mgmt')}":                     "%{location}-master-01.%{hiera('domain_mgmt')}"
    "%{location}-login-01.%{hiera('domain_mgmt')}":       "osl-login-01.%{hiera('domain_mgmt')}"
    "dashboard.%{hiera('domain_mgmt')}":                 "%{location}-admin-01.%{hiera('domain_mgmt')}"
  A:
    "%{location}-leaf-01.%{hiera('domain_mgmt')}":        "%{netpart_mgmt1}.1"
    "%{location}-admin-01.%{hiera('domain_mgmt')}":       "%{netpart_mgmt1}.11"
    "%{location}-proxy-01.%{hiera('domain_mgmt')}":       "%{netpart_mgmt1}.12"
    "%{location}-logger-01.%{hiera('domain_mgmt')}":      "%{netpart_mgmt1}.13"
    "%{location}-master-01.%{hiera('domain_mgmt')}":      "%{netpart_mgmt1}.20"
    "%{location}-mq-01.%{hiera('domain_mgmt')}":          "%{netpart_mgmt1}.31"
    "%{location}-mq-02.%{hiera('domain_mgmt')}":          "%{netpart_mgmt1}.32"
    "%{location}-image-01.%{hiera('domain_mgmt')}":       "%{netpart_mgmt1}.36"
    "%{location}-db-01.%{hiera('domain_mgmt')}":          "%{netpart_mgmt1}.41"
    "%{location}-volume-01.%{hiera('domain_mgmt')}":      "%{netpart_mgmt1}.46"
    "%{location}-dashboard-01.%{hiera('domain_mgmt')}":   "%{netpart_mgmt1}.51"
    "%{location}-access-01.%{hiera('domain_mgmt')}":      "%{netpart_mgmt1}.56"
    "%{location}-novactrl-01.%{hiera('domain_mgmt')}":    "%{netpart_mgmt1}.66"
    "%{location}-network-01.%{hiera('domain_mgmt')}":     "%{netpart_mgmt1}.71"
    "%{location}-identity-01.%{hiera('domain_mgmt')}":    "%{netpart_mgmt1}.81"
    "%{location}-controller-01.%{hiera('domain_mgmt')}":  "%{netpart_mgmt1}.100"
    "%{location}-controller-02.%{hiera('domain_mgmt')}":  "%{netpart_mgmt1}.101"
    "%{location}-controller-03.%{hiera('domain_mgmt')}":  "%{netpart_mgmt1}.102"
    "%{location}-compute-01.%{hiera('domain_mgmt')}":     "%{netpart_mgmt1}.103"
    "%{location}-compute-02.%{hiera('domain_mgmt')}":     "%{netpart_mgmt1}.104"
    "%{location}-compute-03.%{hiera('domain_mgmt')}":     "%{netpart_mgmt1}.105"<commit_msg>Added admin CNAME for test02<commit_after>---
location_environment: 'test02'
location_description: 'Test environment physically in OSL'

domain_public: 'test.iaas.uio.no'
domain_trp:    'test.iaas.uio.no'
domain_mgmt:   'test.iaas.uio.no'

location_dns1: '192.168.127.12'
location_dns2: '192.168.127.12'

# These should only be used to configure network in nodes!
netcfg_netpart_trp:     '172.30.32'
netcfg_netmask_trp:     '255.255.255.0'
netcfg_netpart_mgmt:    '172.28.32'
netcfg_reverse_dns:     '32.28.172.in-addr.arpa'
netcfg_netmask_mgmt:    '255.255.255.0'
netcfg_gateway_mgmt:    '172.28.32.10'
netcfg_netpart_public:  '192.168.12'
netcfg_netmask_public:  '255.255.255.0'
netcfg_peerdns1:        "%{hiera('location_dns1')}"
#netcfg_peerdns1:        '8.8.8.8'
netcfg_peerdns2:        "%{hiera('location_dns2')}"
netcfg_domain:          "%{hiera('domain_mgmt')} %{hiera('domain_trp')} %{hiera('domain_public')}"

# We need to allow both trafic from mgmt (nat via login) and public net

allow_from_network:
  - '172.16.31.10/24'
  - '172.31.4.0/24'
  - '172.31.12.0/24'
  - '192.168.12.0/24'

named_interfaces::config:
  mgmt:
    - eth0
  transport:
    - eth1
  service:
    - eth1
  trp:
    - eth1
  public:
    - eth2

endpoint_protocol:      'https'

# transport
service__address__mysql:             "%{hiera('netcfg_netpart_trp')}.41"
service__address__keystone:          "%{hiera('netcfg_netpart_trp')}.81"
service__address__keystone_admin:    "%{hiera('netcfg_netpart_trp')}.81"
service__address__glance_registry:   "%{hiera('netcfg_netpart_trp')}.36"
service__address__glance_api:        "%{hiera('netcfg_netpart_trp')}.36"
service__address__nova_api:          "%{hiera('netcfg_netpart_trp')}.66"
service__address__nova_api_metadata: "127.0.0.1"
service__address__neutron_server:    "%{hiera('netcfg_netpart_trp')}.71"
service__address__cinder_api:        "%{hiera('netcfg_netpart_trp')}.46"
service__address__etcd_cluster:      "%{hiera('netcfg_netpart_trp')}.71"

# mgmt
service__address__proxy:             "%{hiera('netcfg_netpart_mgmt')}.12"
service__address__rsyslog:           "%{hiera('netcfg_netpart_mgmt')}.18"

# rabbitmq
service__address__rabbitmq_01:       "%{hiera('netcfg_netpart_trp')}.31"
service__address__rabbitmq_02:       "%{hiera('netcfg_netpart_trp')}.31"
service__address__rabbitmq_03:       "%{hiera('netcfg_netpart_trp')}.31"

ntp::servers:
  - ntp1.uio.no
  - ntp2.uio.no

profile::network::services::dns_options:
  CNAME:
    default:
      ttl: 3600
      keyfile: "/etc/rndc.key"
      server: "172.16.17.32"
  A:
    default:
      ttl: 86400
      keyfile: "/etc/rndc.key"
      server: "172.16.17.32"
  PTR:
    default:
      ttl: 86400
      keyfile: "/etc/rndc.key"
      server: "172.16.17.32"

profile::network::services::dns_records:
  CNAME:
    "puppet.%{hiera('domain_mgmt')}":                     "%{location}-admin-01.%{hiera('domain_mgmt')}"
    "admin.%{hiera('domain_mgmt')}":                      "%{location}-admin-01.%{hiera('domain_mgmt')}"
    "foreman.%{hiera('domain_mgmt')}":                    "%{location}-admin-01.%{hiera('domain_mgmt')}"
    "repo.%{hiera('domain_mgmt')}":                       "%{location}-admin-01.%{hiera('domain_mgmt')}"
    "proxy.%{hiera('domain_mgmt')}":                      "%{location}-proxy-01.%{hiera('domain_mgmt')}"
    "logger.%{hiera('domain_mgmt')}":                     "%{location}-logger-01.%{hiera('domain_mgmt')}"
    "master.%{hiera('domain_mgmt')}":                     "%{location}-master-01.%{hiera('domain_mgmt')}"
    "%{location}-login-01.%{hiera('domain_mgmt')}":       "osl-login-01.%{hiera('domain_mgmt')}"
    "dashboard.%{hiera('domain_mgmt')}":                 "%{location}-admin-01.%{hiera('domain_mgmt')}"
  A:
    "%{location}-leaf-01.%{hiera('domain_mgmt')}":        "%{netpart_mgmt1}.1"
    "%{location}-admin-01.%{hiera('domain_mgmt')}":       "%{netpart_mgmt1}.11"
    "%{location}-proxy-01.%{hiera('domain_mgmt')}":       "%{netpart_mgmt1}.12"
    "%{location}-logger-01.%{hiera('domain_mgmt')}":      "%{netpart_mgmt1}.13"
    "%{location}-master-01.%{hiera('domain_mgmt')}":      "%{netpart_mgmt1}.20"
    "%{location}-mq-01.%{hiera('domain_mgmt')}":          "%{netpart_mgmt1}.31"
    "%{location}-mq-02.%{hiera('domain_mgmt')}":          "%{netpart_mgmt1}.32"
    "%{location}-image-01.%{hiera('domain_mgmt')}":       "%{netpart_mgmt1}.36"
    "%{location}-db-01.%{hiera('domain_mgmt')}":          "%{netpart_mgmt1}.41"
    "%{location}-volume-01.%{hiera('domain_mgmt')}":      "%{netpart_mgmt1}.46"
    "%{location}-dashboard-01.%{hiera('domain_mgmt')}":   "%{netpart_mgmt1}.51"
    "%{location}-access-01.%{hiera('domain_mgmt')}":      "%{netpart_mgmt1}.56"
    "%{location}-novactrl-01.%{hiera('domain_mgmt')}":    "%{netpart_mgmt1}.66"
    "%{location}-network-01.%{hiera('domain_mgmt')}":     "%{netpart_mgmt1}.71"
    "%{location}-identity-01.%{hiera('domain_mgmt')}":    "%{netpart_mgmt1}.81"
    "%{location}-controller-01.%{hiera('domain_mgmt')}":  "%{netpart_mgmt1}.100"
    "%{location}-controller-02.%{hiera('domain_mgmt')}":  "%{netpart_mgmt1}.101"
    "%{location}-controller-03.%{hiera('domain_mgmt')}":  "%{netpart_mgmt1}.102"
    "%{location}-compute-01.%{hiera('domain_mgmt')}":     "%{netpart_mgmt1}.103"
    "%{location}-compute-02.%{hiera('domain_mgmt')}":     "%{netpart_mgmt1}.104"
    "%{location}-compute-03.%{hiera('domain_mgmt')}":     "%{netpart_mgmt1}.105"
{'fraction_non_alphanumeric': 0.2065237651444548, 'fraction_numerical': 0.06747437092264678, 'mean_word_length': 3.790625, 'pattern_counts': {'":': 59, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 30, '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': '5189082', 'n_tokens_mistral': 4769, 'n_tokens_neox': 4501, 'n_words': 423}