<commit_before>---
include:
  default:
    - profile::base::common
    - profile::base::firewall
  kickstart:
    - profile::base::common
  bootstrap:
    - profile::base::common
    - profile::base::firewall

profile::firewall::pre::ssh_settings:
  source: "%{::network_mgmt1}/%{::netmask_mgmt1}"

#
# Location metadata
#
location_description: unset
location_environment: unset
location_tag: unset

domain_public: "%{::domain}"
domain_trp:    "%{::domain}"
domain_mgmt:   "%{::domain}"

openstack_version: 'mitaka'

valid_location_tags:
  - bgo
  - osl
  - trd
  - test01
  - test02
  - vagrant
  - dev01
  - dev02
  - local1
  - local3
valid_location_environments:
  - prod
  - dev

#
# Use this for firewall rules to allow only from some networks
#
allow_from_network:
  - '172.16.58.3/16'
  - '172.16.17.32/16'
  - '172.16.58.3/24'
  - '172.16.58.3/24'
  - '172.16.31.10/23'
  - '172.16.31.10/24'
  - '172.16.31.10/32'
  - '172.16.58.3/32'
  - '172.16.31.10/32'
  - '172.16.58.3/32'
  - '192.168.127.12/16'
  - '192.168.3.11/16'

#
# Default interfaces
#
named_interfaces::config:
  mgmt:
    - eth0
  transport: #FIXME
    - eth1
  trp:
    - eth1
  service: #FIXME
    - eth1
  public:
    - dummy0

#
# Networks
# See http://iaas.readthedocs.io/en/latest/installation/ip.html
# For config that require network info about other network
#
network_service:    '0.0.0.0/32'
network_transport:  '0.0.0.0/32'
network_public:     '0.0.0.0/32'

# API endpint protocole
endpoint_protocol: 'http'

#
# Openstack services
#

# public
service__address__status:            "status.%{hiera('domain_public')}"
service__address__horizon:           "dashboard.%{hiera('domain_public')}"
service__address__keystone_public:   "dashboard.%{hiera('domain_public')}"
service__address__glance_public_api: "dashboard.%{hiera('domain_public')}"
service__address__nova_public_api:   "dashboard.%{hiera('domain_public')}"
service__address__neutron_public:    "dashboard.%{hiera('domain_public')}"
service__address__cinder_public_api: "dashboard.%{hiera('domain_public')}"
service__address__consoleproxy:      "console.%{hiera('domain_public')}"

# transport
service__address__nova_api:          "novactrl.%{hiera('domain_trp')}"
service__address__nova_api_metadata: '127.0.0.1'
service__address__glance_registry:   "image.%{hiera('domain_trp')}"
service__address__glance_api:        "image.%{hiera('domain_trp')}"
service__address__keystone:          "identity.%{hiera('domain_trp')}"
service__address__keystone_admin:    "identity.%{hiera('domain_trp')}"
service__address__etcd_cluster:      "network.%{hiera('domain_trp')}"
service__address__neutron_server:    "network.%{hiera('domain_trp')}"
service__address__cinder_api:        "volume.%{hiera('domain_trp')}"
service__address__mysql:             "db.%{hiera('domain_trp')}"
service__address__rabbitmq_01:       "mq01.%{hiera('domain_trp')}"
service__address__rabbitmq_02:       "mq01.%{hiera('domain_trp')}"
service__address__rabbitmq_03:       "mq01.%{hiera('domain_trp')}"

# mgmt
service__address__rsyslog:           "logger.%{hiera('domain_mgmt')}"
service__address__proxy:             "proxy.%{hiera('domain_mgmt')}"
service__address__monitor:           "monitor.%{hiera('domain_mgmt')}"

#
# Network configuration data
#
networks:
  bgo:
    domain:
      mgmt: mgmt.iaas.intern
      oob: oob.iaas.intern
    subnet:
      mgmt: 172.16.0.1/21
      oob: 172.17.0.1/21
    dhcp:
      mgmt:
        ensure: absent
      oob:
        ensure: present
        interface: eth2
        start_offset: 100
        end_offset: 199
        lease: 43200
    nat:
      mgmt:
        ensure: present
      oob:
        ensure: present
  osl:
    domain:
      mgmt: iaas.uio.no
      oob: iaas.uio.no
    subnet:
      mgmt: 172.16.32.0/21
      oob: 172.17.32.0/21
    dhcp:
      mgmt:
        ensure: absent
      oob:
        ensure: absent
    nat:
      mgmt:
        ensure: absent
      oob:
        ensure: absent
  trd:
    domain:
      mgmt: iaas.ntnu.no
      oob: oob.iaas.ntnu.no
    subnet:
      mgmt: 10.171.91.1/24
      oob: 10.171.86.1/24
    dhcp:
      mgmt:
        ensure: absent
      oob:
        ensure: present
        interface: eth2
        start_offset: 100
        end_offset: 199
        lease: 43200
    nat:
      mgmt:
        ensure: present
      oob:
        ensure: present
  test01:
    domain:
      mgmt: mgmt.test.iaas.intern
    subnet:
      mgmt: 172.28.0.0/24
    dhcp:
      mgmt:
        ensure: absent
    nat:
      mgmt:
        ensure: present
      oob:
        ensure: present
  test02:
    domain:
      mgmt: iaas.uio.no
    subnet:
      mgmt: 172.28.32.0/24
    dhcp:
      mgmt:
        ensure: absent
    nat:
      mgmt:
        ensure: present
      oob:
        ensure: present
  vagrant:
    domain:
      mgmt: himlar.local
    subnet:
      mgmt: 10.0.3.1/24
      oob: 10.0.4.1/24
    dhcp:
      mgmt:
        ensure: absent
      oob:
        ensure: present
        interface: eth1
        start_offset: 100
        end_offset: 199
        lease: 43200
    nat:
      mgmt:
        ensure: present
      oob:
        ensure: present
  dev01:
    domain:
      mgmt: mgmt.dev.iaas.intern
    subnet:
      mgmt: 172.31.1.0/24
    dhcp:
      mgmt:
        ensure: absent
      oob:
        ensure: absent
    nat:
      mgmt:
        ensure: absent
      oob:
        ensure: absent
  dev02:
    domain:
      mgmt: dev.iaas.ntnu.no
      oob: oob.iaas.ntnu.no
    subnet:
      mgmt: 10.171.92.1/24
      oob: 10.171.93.1/24
    dhcp:
      mgmt:
        ensure: absent
      oob:
        ensure: present
        interface: eth2
        start_offset: 100
        end_offset: 199
        lease: 43200
  local1:
    domain:
      mgmt: mgmt.local.iaas.intern
    subnet:
      mgmt: 172.31.4.0/24
    dhcp:
      mgmt:
        ensure: present
        inferface: eth0
        start_offset: 150
        end_offset: 199
        lease: 43200
    nat:
      mgmt:
        ensure: present
        iniface: eth0
        outiface: eth1
  local2:
    domain:
      mgmt: mgmt.local.iaas.intern
    subnet:
      mgmt: 172.31.5.0/24
    dhcp:
      mgmt:
        ensure: present
        inferface: eth0
        start_offset: 150
        end_offset: 199
        lease: 43200
    nat:
      mgmt:
        ensure: present
        iniface: eth0
        outiface: eth1
  local3:
    domain:
      mgmt: mgmt.local3.intern
    subnet:
      mgmt: 172.31.4.0/24
    dhcp:
      mgmt:
        ensure: present
        inferface: eth0
        start_offset: 150
        end_offset: 199
        lease: 43200
    nat:
      mgmt:
        ensure: present
        iniface: eth1
        outiface: eth0
<commit_msg>Deny access while installing osl<commit_after>---
include:
  default:
    - profile::base::common
    - profile::base::firewall
  kickstart:
    - profile::base::common
  bootstrap:
    - profile::base::common
    - profile::base::firewall

profile::firewall::pre::ssh_settings:
  source: "%{::network_mgmt1}/%{::netmask_mgmt1}"

#
# Location metadata
#
location_description: unset
location_environment: unset
location_tag: unset

domain_public: "%{::domain}"
domain_trp:    "%{::domain}"
domain_mgmt:   "%{::domain}"

openstack_version: 'mitaka'

valid_location_tags:
  - bgo
  - osl
  - trd
  - test01
  - test02
  - vagrant
  - dev01
  - dev02
  - local1
  - local3
valid_location_environments:
  - prod
  - dev

#
# Use this for firewall rules to allow only from some networks
#
allow_from_network:
#  - '172.16.58.3/16'
#  - '172.16.17.32/16'
  - '172.16.58.3/24'
  - '172.16.58.3/24'
#  - '172.16.31.10/23'
  - '172.16.31.10/24'
  - '172.16.31.10/32'
  - '172.16.58.3/32'
  - '172.16.31.10/32'
  - '172.16.58.3/32'
#  - '192.168.127.12/16'
#  - '192.168.3.11/16'

#
# Default interfaces
#
named_interfaces::config:
  mgmt:
    - eth0
  transport: #FIXME
    - eth1
  trp:
    - eth1
  service: #FIXME
    - eth1
  public:
    - dummy0

#
# Networks
# See http://iaas.readthedocs.io/en/latest/installation/ip.html
# For config that require network info about other network
#
network_service:    '0.0.0.0/32'
network_transport:  '0.0.0.0/32'
network_public:     '0.0.0.0/32'

# API endpint protocole
endpoint_protocol: 'http'

#
# Openstack services
#

# public
service__address__status:            "status.%{hiera('domain_public')}"
service__address__horizon:           "dashboard.%{hiera('domain_public')}"
service__address__keystone_public:   "dashboard.%{hiera('domain_public')}"
service__address__glance_public_api: "dashboard.%{hiera('domain_public')}"
service__address__nova_public_api:   "dashboard.%{hiera('domain_public')}"
service__address__neutron_public:    "dashboard.%{hiera('domain_public')}"
service__address__cinder_public_api: "dashboard.%{hiera('domain_public')}"
service__address__consoleproxy:      "console.%{hiera('domain_public')}"

# transport
service__address__nova_api:          "novactrl.%{hiera('domain_trp')}"
service__address__nova_api_metadata: '127.0.0.1'
service__address__glance_registry:   "image.%{hiera('domain_trp')}"
service__address__glance_api:        "image.%{hiera('domain_trp')}"
service__address__keystone:          "identity.%{hiera('domain_trp')}"
service__address__keystone_admin:    "identity.%{hiera('domain_trp')}"
service__address__etcd_cluster:      "network.%{hiera('domain_trp')}"
service__address__neutron_server:    "network.%{hiera('domain_trp')}"
service__address__cinder_api:        "volume.%{hiera('domain_trp')}"
service__address__mysql:             "db.%{hiera('domain_trp')}"
service__address__rabbitmq_01:       "mq01.%{hiera('domain_trp')}"
service__address__rabbitmq_02:       "mq01.%{hiera('domain_trp')}"
service__address__rabbitmq_03:       "mq01.%{hiera('domain_trp')}"

# mgmt
service__address__rsyslog:           "logger.%{hiera('domain_mgmt')}"
service__address__proxy:             "proxy.%{hiera('domain_mgmt')}"
service__address__monitor:           "monitor.%{hiera('domain_mgmt')}"

#
# Network configuration data
#
networks:
  bgo:
    domain:
      mgmt: mgmt.iaas.intern
      oob: oob.iaas.intern
    subnet:
      mgmt: 172.16.0.1/21
      oob: 172.17.0.1/21
    dhcp:
      mgmt:
        ensure: absent
      oob:
        ensure: present
        interface: eth2
        start_offset: 100
        end_offset: 199
        lease: 43200
    nat:
      mgmt:
        ensure: present
      oob:
        ensure: present
  osl:
    domain:
      mgmt: iaas.uio.no
      oob: iaas.uio.no
    subnet:
      mgmt: 172.16.32.0/21
      oob: 172.17.32.0/21
    dhcp:
      mgmt:
        ensure: absent
      oob:
        ensure: absent
    nat:
      mgmt:
        ensure: absent
      oob:
        ensure: absent
  trd:
    domain:
      mgmt: iaas.ntnu.no
      oob: oob.iaas.ntnu.no
    subnet:
      mgmt: 10.171.91.1/24
      oob: 10.171.86.1/24
    dhcp:
      mgmt:
        ensure: absent
      oob:
        ensure: present
        interface: eth2
        start_offset: 100
        end_offset: 199
        lease: 43200
    nat:
      mgmt:
        ensure: present
      oob:
        ensure: present
  test01:
    domain:
      mgmt: mgmt.test.iaas.intern
    subnet:
      mgmt: 172.28.0.0/24
    dhcp:
      mgmt:
        ensure: absent
    nat:
      mgmt:
        ensure: present
      oob:
        ensure: present
  test02:
    domain:
      mgmt: iaas.uio.no
    subnet:
      mgmt: 172.28.32.0/24
    dhcp:
      mgmt:
        ensure: absent
    nat:
      mgmt:
        ensure: present
      oob:
        ensure: present
  vagrant:
    domain:
      mgmt: himlar.local
    subnet:
      mgmt: 10.0.3.1/24
      oob: 10.0.4.1/24
    dhcp:
      mgmt:
        ensure: absent
      oob:
        ensure: present
        interface: eth1
        start_offset: 100
        end_offset: 199
        lease: 43200
    nat:
      mgmt:
        ensure: present
      oob:
        ensure: present
  dev01:
    domain:
      mgmt: mgmt.dev.iaas.intern
    subnet:
      mgmt: 172.31.1.0/24
    dhcp:
      mgmt:
        ensure: absent
      oob:
        ensure: absent
    nat:
      mgmt:
        ensure: absent
      oob:
        ensure: absent
  dev02:
    domain:
      mgmt: dev.iaas.ntnu.no
      oob: oob.iaas.ntnu.no
    subnet:
      mgmt: 10.171.92.1/24
      oob: 10.171.93.1/24
    dhcp:
      mgmt:
        ensure: absent
      oob:
        ensure: present
        interface: eth2
        start_offset: 100
        end_offset: 199
        lease: 43200
  local1:
    domain:
      mgmt: mgmt.local.iaas.intern
    subnet:
      mgmt: 172.31.4.0/24
    dhcp:
      mgmt:
        ensure: present
        inferface: eth0
        start_offset: 150
        end_offset: 199
        lease: 43200
    nat:
      mgmt:
        ensure: present
        iniface: eth0
        outiface: eth1
  local2:
    domain:
      mgmt: mgmt.local.iaas.intern
    subnet:
      mgmt: 172.31.5.0/24
    dhcp:
      mgmt:
        ensure: present
        inferface: eth0
        start_offset: 150
        end_offset: 199
        lease: 43200
    nat:
      mgmt:
        ensure: present
        iniface: eth0
        outiface: eth1
  local3:
    domain:
      mgmt: mgmt.local3.intern
    subnet:
      mgmt: 172.31.4.0/24
    dhcp:
      mgmt:
        ensure: present
        inferface: eth0
        start_offset: 150
        end_offset: 199
        lease: 43200
    nat:
      mgmt:
        ensure: present
        iniface: eth1
        outiface: eth0

{'fraction_non_alphanumeric': 0.12048642196359295, 'fraction_numerical': 0.06430916144434497, 'mean_word_length': 2.128354725787631, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 64, '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': '747819', 'n_tokens_mistral': 5499, 'n_tokens_neox': 5005, 'n_words': 900}