File: redhat_repo.yaml

package info (click to toggle)
puppet-module-openstack-extras 25.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 492 kB
  • sloc: ruby: 844; sh: 62; python: 36; makefile: 10
file content (33 lines) | stat: -rw-r--r-- 1,421 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# 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