<commit_before>---
include:
  default:
    - profile::openstack::openrc
    - profile::logging::rsyslog::client
    - profile::webserver::apache
    - profile::application::builder

profile::base::common::packages:
  'python-openstackclient': {}
  'packer': {}
  'python3': {}
  'qemu-img': {}
  'bash-completion': {}
  'bash-completion-extras': {}
  'jq': {}

named_interfaces::config:
  mgmt:
    - eth0

profile::base::lvm::physical_volume:
  '/dev/vdb':
    ensure: present
    force:  true
profile::base::lvm::volume_group:
  'vg_images':
    physical_volumes:
      - /dev/vdb
profile::base::lvm::logical_volume:
  'lv_images':
    volume_group: 'vg_images'
    fs_type:      "xfs"
    mountpath:    "/opt/images"

profile::webserver::apache::vhosts:
  'builds':
    servername:     "builder.%{hiera('domain_mgmt')}"
    ip:             "%{::ipaddress_mgmt1}"
    port:           80
    docroot:        '/opt/images/public_builds'
    docroot_owner:  'iaas'

profile::openstack::openrc::filename:         '/home/imagebuilder/openrc'
profile::openstack::openrc::username:         'imagebuilder'
profile::openstack::openrc::project_name:     'imagebuilder'
profile::openstack::openrc::password:         "%{<PASSWORD>')}"
profile::openstack::openrc::interface:        'public'


profile::application::builder::package_url:   "https://download.iaas.uio.no/nrec/nrec-internal/%{hiera('repo_dist')}/imagebuilder-1.0-14.el7.x86_64.rpm"
profile::application::builder::ipv6:          true
profile::application::builder::flavor:        'img.zerodisk'
profile::application::builder::template_dir:  '/etc/imagebuilder'
profile::application::builder::download_dir:  '/opt/images/public_builds'
profile::application::builder::rc_file:       '/home/imagebuilder/openrc'
profile::application::builder::images:
  'centos7':
    'image_name':       'IMAGEBUILDER CentOS 7'
    'url':              'http://cloud.centos.org/centos/7/images/'
    'latest':           'CentOS-7-x86_64-GenericCloud.qcow2'
    'checksum_file':    'sha256sum.txt'
    'checksum':         'sha256'
    'min_ram':          768
    'min_disk':         8
    'username':         'centos'
    'hour':             2
    'minute':           30
  'centos7_nv_vgpu':
    'image_name':       'IMAGEBUILDER CentOS 7 (NVIDIA VGPU)'
    'url':              'http://cloud.centos.org/centos/7/images/'
    'latest':           'CentOS-7-x86_64-GenericCloud.qcow2'
    'checksum_file':    'sha256sum.txt'
    'checksum':         'sha256'
    'min_ram':          768
    'min_disk':         8
    'username':         'centos'
    'environment':      [ 'IMAGEBUILDER_REPORT=true', 'IB_TEMPLATE_DIR=/etc/imagebuilder/nv_vgpu' ]
    'hour':             3
  'centos8':
    'image_name':       'IMAGEBUILDER CentOS 8'
    'url':              'http://cloud.centos.org/centos/8/x86_64/images/'
    'latest':           'CentOS-8-GenericCloud-8.4.2105-20210603.0.x86_64.qcow2'
    'checksum_file':    'CHECKSUM'
    'checksum':         'sha256'
    'min_ram':          768
    'min_disk':         8
    'username':         'centos'
    'hour':             4
  'centos8_nv_vgpu':
    'image_name':       'IMAGEBUILDER CentOS 8 (NVIDIA VGPU)'
    'url':              'http://cloud.centos.org/centos/8/x86_64/images/'
    'latest':           'CentOS-8-GenericCloud-8.4.2105-20210603.0.x86_64.qcow2'
    'checksum_file':    'CHECKSUM'
    'checksum':         'sha256'
    'min_ram':          768
    'min_disk':         8
    'username':         'centos'
    'environment':      [ 'IMAGEBUILDER_REPORT=true', 'IB_TEMPLATE_DIR=/etc/imagebuilder/nv_vgpu' ]
    'hour':             13
  'centosstream8':
    'image_name':       'IMAGEBUILDER CentOS Stream 8'
    'url':              'https://cloud.centos.org/centos/8-stream/x86_64/images/'
    'latest':           'CentOS-Stream-GenericCloud-8-20210603.0.x86_64.qcow2'
    'checksum_file':    'CHECKSUM'
    'checksum':         'sha256'
    'min_ram':          768
    'min_disk':         8
    'username':         'centos'
    'hour':             4<commit_msg>do not build centos 7 vgpu images anymore<commit_after>---
include:
  default:
    - profile::openstack::openrc
    - profile::logging::rsyslog::client
    - profile::webserver::apache
    - profile::application::builder

profile::base::common::packages:
  'python-openstackclient': {}
  'packer': {}
  'python3': {}
  'qemu-img': {}
  'bash-completion': {}
  'bash-completion-extras': {}
  'jq': {}

named_interfaces::config:
  mgmt:
    - eth0

profile::base::lvm::physical_volume:
  '/dev/vdb':
    ensure: present
    force:  true
profile::base::lvm::volume_group:
  'vg_images':
    physical_volumes:
      - /dev/vdb
profile::base::lvm::logical_volume:
  'lv_images':
    volume_group: 'vg_images'
    fs_type:      "xfs"
    mountpath:    "/opt/images"

profile::webserver::apache::vhosts:
  'builds':
    servername:     "builder.%{hiera('domain_mgmt')}"
    ip:             "%{::ipaddress_mgmt1}"
    port:           80
    docroot:        '/opt/images/public_builds'
    docroot_owner:  'iaas'

profile::openstack::openrc::filename:         '/home/imagebuilder/openrc'
profile::openstack::openrc::username:         'imagebuilder'
profile::openstack::openrc::project_name:     'imagebuilder'
profile::openstack::openrc::password:         "%{hiera('imagebuilder_password')}"
profile::openstack::openrc::interface:        'public'


profile::application::builder::package_url:   "https://download.iaas.uio.no/nrec/nrec-internal/%{hiera('repo_dist')}/imagebuilder-1.0-14.el7.x86_64.rpm"
profile::application::builder::ipv6:          true
profile::application::builder::flavor:        'img.zerodisk'
profile::application::builder::template_dir:  '/etc/imagebuilder'
profile::application::builder::download_dir:  '/opt/images/public_builds'
profile::application::builder::rc_file:       '/home/imagebuilder/openrc'
profile::application::builder::images:
  'centos7':
    'image_name':       'IMAGEBUILDER CentOS 7'
    'url':              'http://cloud.centos.org/centos/7/images/'
    'latest':           'CentOS-7-x86_64-GenericCloud.qcow2'
    'checksum_file':    'sha256sum.txt'
    'checksum':         'sha256'
    'min_ram':          768
    'min_disk':         8
    'username':         'centos'
    'hour':             2
    'minute':           30
  'centos8':
    'image_name':       'IMAGEBUILDER CentOS 8'
    'url':              'http://cloud.centos.org/centos/8/x86_64/images/'
    'latest':           'CentOS-8-GenericCloud-8.4.2105-20210603.0.x86_64.qcow2'
    'checksum_file':    'CHECKSUM'
    'checksum':         'sha256'
    'min_ram':          768
    'min_disk':         8
    'username':         'centos'
    'hour':             4
  'centos8_nv_vgpu':
    'image_name':       'IMAGEBUILDER CentOS 8 (NVIDIA VGPU)'
    'url':              'http://cloud.centos.org/centos/8/x86_64/images/'
    'latest':           'CentOS-8-GenericCloud-8.4.2105-20210603.0.x86_64.qcow2'
    'checksum_file':    'CHECKSUM'
    'checksum':         'sha256'
    'min_ram':          768
    'min_disk':         8
    'username':         'centos'
    'environment':      [ 'IMAGEBUILDER_REPORT=true', 'IB_TEMPLATE_DIR=/etc/imagebuilder/nv_vgpu' ]
    'hour':             13
  'centosstream8':
    'image_name':       'IMAGEBUILDER CentOS Stream 8'
    'url':              'https://cloud.centos.org/centos/8-stream/x86_64/images/'
    'latest':           'CentOS-Stream-GenericCloud-8-20210603.0.x86_64.qcow2'
    'checksum_file':    'CHECKSUM'
    'checksum':         'sha256'
    'min_ram':          768
    'min_disk':         8
    'username':         'centos'
    'hour':             4
{'fraction_non_alphanumeric': 0.1601833660772757, 'fraction_numerical': 0.03942370661427636, 'mean_word_length': 2.5483271375464684, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2213956', 'n_tokens_mistral': 2812, 'n_tokens_neox': 2671, 'n_words': 358}