0fc013377b
This patch adds support for managing repos for major distros, separated by osfamily at the top level and operatingsystem below that. Since redhat, fedora and centos can all install from rdo, which is the only current option, the fedora and centos classes simply wrap around the redhat one. This may change in the future if any of them change (for example if RHOS support is added and redhat is now different to fedora) Change-Id: I5b18f393999d6f70757a2dfd9b12da049d6b64e1
34 lines
1.4 KiB
YAML
34 lines
1.4 KiB
YAML
# This is an example of how to define your own repos in hiera
|
|
# in addition to RDO when using the redhat repo class
|
|
# assuming you have included the class somewhere
|
|
#
|
|
# This is taken from the aptira hiera data files in
|
|
# puppet_openstack_builder and may go out of date.
|
|
#
|
|
# Set up repositories using openstack_extras
|
|
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::repo_defaults:
|
|
'proxy': "http://%{hiera('proxy_host')}:%{hiera('proxy_port')}"
|
|
|
|
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
|