# Repository Management
openstack_extras::repo::redhat::redhat::repo_hash:
  'CentOS-Base':
    'descr': 'CentOS-$releasever - Base'
    'baseurl': "%{hiera('yum_base_mirror')}/$releasever/os/$basearch/"
  'CentOS-Updates':
    'descr': 'CentOS-$releasever - Updates'
    'baseurl': "%{hiera('yum_base_mirror')}/$releasever/updates/$basearch/"
  'CentOS-Extras':
    'descr': 'CentOS-$releasever - Extras'
    'baseurl': "%{hiera('yum_base_mirror')}/$releasever/extras/$basearch/"
  'epel':
    'descr': 'Extra Packages for Enterprise Linux 6 - $basearch'
    'baseurl': "%{hiera('yum_epel_mirror')}/$releasever/$basearch/"
    'gpgkey': 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6'
    'failovermethod': 'priority'
openstack_extras::repo::redhat::redhat::gpgkey_hash:
  '/etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6':
    'source': 'puppet:///modules/openstack_extras/RPM-GPG-KEY-EPEL-6'
openstack_extras::repo::redhat::redhat::purge_unmanaged: true
openstack_extras::repo::redhat::redhat::package_require: true
openstack_extras::repo::redhat::redhat::manage_epel: false

# Repository Management
openstack_extras::repo::redhat::redhat::repo_hash:
  'CentOS-Base':
    'descr': 'CentOS-$releasever - Base'
    'baseurl': "%{hiera('yum_base_mirror')}/$releasever/os/$basearch/"
  'CentOS-Updates':
    'descr': 'CentOS-$releasever - Updates'
    'baseurl': "%{hiera('yum_base_mirror')}/$releasever/updates/$basearch/"
  'CentOS-Extras':
    'descr': 'CentOS-$releasever - Extras'
    'baseurl': "%{hiera('yum_base_mirror')}/$releasever/extras/$basearch/"
  'epel':
    'descr': "Extra Packages for Enterprise Linux %{operatingsystemmajrelease} - $basearch"
    'baseurl': "%{hiera('yum_epel_mirror')}/$releasever/$basearch/"
    'gpgkey': 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7'
    'failovermethod': 'priority'
openstack_extras::repo::redhat::redhat::gpgkey_hash:
  '/etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7':
    'source': 'puppet:///modules/openstack_extras/RPM-GPG-KEY-EPEL-7'
openstack_extras::repo::redhat::redhat::purge_unmanaged: true
openstack_extras::repo::redhat::redhat::package_require: true
openstack_extras::repo::redhat::redhat::manage_epel: false

Move to centos 7 from 6
Move to centos 7 from 6
