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

profile::base::common::packages:
  'python-openstackclient': {}
  'packer': {}
  'python34': {}
  '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::application::builder::package_url: 'https://download.iaas.uio.no/uh-iaas/yumrepo/imagebuilder-0.1-33.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:
  'centos6':
    'image_name':       'IMAGEBUILDER CentOS 6'
    'url':              'http://cloud.centos.org/centos/6/images/'
    'latest':           'CentOS-6-x86_64-GenericCloud.qcow2'
    'checksum_file':    'sha256sum.txt'
    'checksum':         'sha256'
    'min_ram':          1024
    'min_disk':         8
    'username':         'centos'
  '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'
  'fedora_28':
    'image_name':       'IMAGEBUILDER Fedora 28'
    'url':              'https://www.mirrorservice.org/sites/dl.fedoraproject.org/pub/fedora/linux/releases/28/Cloud/x86_64/images/'
    'latest':           'Fedora-Cloud-Base-28-1.1.x86_64.qcow2'
    'checksum_file':    'Fedora-Cloud-28-1.1-x86_64-CHECKSUM'
    'checksum':         'sha256'
    'min_ram':          768
    'min_disk':         3
    'username':         'fedora'
  'fedora_30':
    'image_name':       'IMAGEBUILDER Fedora 30'
    'url':              'https://www.mirrorservice.org/sites/dl.fedoraproject.org/pub/fedora/linux/releases/30/Cloud/x86_64/images/'
    'latest':           'Fedora-Cloud-Base-30-1.2.x86_64.qcow2'
    'checksum_file':    'Fedora-Cloud-30-1.2-x86_64-CHECKSUM'
    'checksum':         'sha256'
    'min_ram':          768
    'min_disk':         3
    'username':         'fedora'
  'ubuntu_1604':
    'image_name':       'IMAGEBUILDER Ubuntu 16.04 LTS'
    'url':              'https://cloud-images.ubuntu.com/xenial/current/'
    'latest':           'xenial-server-cloudimg-amd64-disk1.img'
    'checksum_file':    'SHA256SUMS'
    'checksum':         'sha256'
    'min_ram':          768
    'min_disk':         3
    'username':         'ubuntu'
  'ubuntu_1804':
    'image_name':       'IMAGEBUILDER Ubuntu 18.04 LTS'
    'url':              'https://cloud-images.ubuntu.com/bionic/current/'
    'latest':           'bionic-server-cloudimg-amd64.img'
    'checksum_file':    'SHA256SUMS'
    'checksum':         'sha256'
    'min_ram':          768
    'min_disk':         3
    'username':         'ubuntu'
  'ubuntu_1904':
    'image_name':       'IMAGEBUILDER Ubuntu 19.04'
    'url':              'https://cloud-images.ubuntu.com/eoan/current/'
    'latest':           'eoan-server-cloudimg-amd64.img'
    'checksum_file':    'SHA256SUMS'
    'checksum':         'sha256'
    'min_ram':          768
    'min_disk':         3
    'username':         'ubuntu'
  'debian9':
    'image_name':       'IMAGEBUILDER Debian 9'
    'url':              'http://cdimage.debian.org/cdimage/openstack/current-9/'
    'latest':           'debian-9-openstack-amd64.qcow2'
    'checksum_file':    'SHA256SUMS'
    'checksum':         'sha256'
    'min_ram':          768
    'min_disk':         3
    'username':         'debian'

# Enable extra yum repo
profile::base::yumrepo::repo_hash:<commit_msg>fix url for ubuntu 19.04 on builder<commit_after>---
include:
  default:
    - profile::openstack::openrc
    - profile::logging::rsyslog::client
    - profile::webserver::apache
    - profile::application::builder

profile::base::common::packages:
  'python-openstackclient': {}
  'packer': {}
  'python34': {}
  '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::application::builder::package_url: 'https://download.iaas.uio.no/uh-iaas/yumrepo/imagebuilder-0.1-33.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:
  'centos6':
    'image_name':       'IMAGEBUILDER CentOS 6'
    'url':              'http://cloud.centos.org/centos/6/images/'
    'latest':           'CentOS-6-x86_64-GenericCloud.qcow2'
    'checksum_file':    'sha256sum.txt'
    'checksum':         'sha256'
    'min_ram':          1024
    'min_disk':         8
    'username':         'centos'
  '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'
  'fedora_28':
    'image_name':       'IMAGEBUILDER Fedora 28'
    'url':              'https://www.mirrorservice.org/sites/dl.fedoraproject.org/pub/fedora/linux/releases/28/Cloud/x86_64/images/'
    'latest':           'Fedora-Cloud-Base-28-1.1.x86_64.qcow2'
    'checksum_file':    'Fedora-Cloud-28-1.1-x86_64-CHECKSUM'
    'checksum':         'sha256'
    'min_ram':          768
    'min_disk':         3
    'username':         'fedora'
  'fedora_30':
    'image_name':       'IMAGEBUILDER Fedora 30'
    'url':              'https://www.mirrorservice.org/sites/dl.fedoraproject.org/pub/fedora/linux/releases/30/Cloud/x86_64/images/'
    'latest':           'Fedora-Cloud-Base-30-1.2.x86_64.qcow2'
    'checksum_file':    'Fedora-Cloud-30-1.2-x86_64-CHECKSUM'
    'checksum':         'sha256'
    'min_ram':          768
    'min_disk':         3
    'username':         'fedora'
  'ubuntu_1604':
    'image_name':       'IMAGEBUILDER Ubuntu 16.04 LTS'
    'url':              'https://cloud-images.ubuntu.com/xenial/current/'
    'latest':           'xenial-server-cloudimg-amd64-disk1.img'
    'checksum_file':    'SHA256SUMS'
    'checksum':         'sha256'
    'min_ram':          768
    'min_disk':         3
    'username':         'ubuntu'
  'ubuntu_1804':
    'image_name':       'IMAGEBUILDER Ubuntu 18.04 LTS'
    'url':              'https://cloud-images.ubuntu.com/bionic/current/'
    'latest':           'bionic-server-cloudimg-amd64.img'
    'checksum_file':    'SHA256SUMS'
    'checksum':         'sha256'
    'min_ram':          768
    'min_disk':         3
    'username':         'ubuntu'
  'ubuntu_1904':
    'image_name':       'IMAGEBUILDER Ubuntu 19.04'
    'url':              'https://cloud-images.ubuntu.com/disco/current/'
    'latest':           'disco-server-cloudimg-amd64.img'
    'checksum_file':    'SHA256SUMS'
    'checksum':         'sha256'
    'min_ram':          768
    'min_disk':         3
    'username':         'ubuntu'
  'debian9':
    'image_name':       'IMAGEBUILDER Debian 9'
    'url':              'http://cdimage.debian.org/cdimage/openstack/current-9/'
    'latest':           'debian-9-openstack-amd64.qcow2'
    'checksum_file':    'SHA256SUMS'
    'checksum':         'sha256'
    'min_ram':          768
    'min_disk':         3
    'username':         'debian'

# Enable extra yum repo
profile::base::yumrepo::repo_hash:
{'fraction_non_alphanumeric': 0.1586071502376524, 'fraction_numerical': 0.04195081628435627, 'mean_word_length': 2.393758765778401, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 12, 'lorem ipsum': 0, 'www.': 4, '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': '3850232', 'n_tokens_mistral': 3689, 'n_tokens_neox': 3397, 'n_words': 461}