
Move the EPEL testing to its own context because we were testing with a specified value that was not the default. Change-Id: Ib51009fb3584ea6ec8f423a5e8b2486714e47fe8
37 lines
1017 B
Puppet
37 lines
1017 B
Puppet
# == Class: openstack_extras::repo::redhat::params
|
|
#
|
|
# This repo sets defaults for use with the redhat
|
|
# osfamily repo classes.
|
|
#
|
|
class openstack_extras::repo::redhat::params
|
|
{
|
|
$release = 'ussuri'
|
|
|
|
$repo_defaults = { 'enabled' => '1',
|
|
'gpgcheck' => '1',
|
|
'notify' => 'Exec[yum_refresh]',
|
|
'mirrorlist' => 'absent',
|
|
'require' => 'Anchor[openstack_extras_redhat]',
|
|
}
|
|
|
|
$gpgkey_defaults = { 'owner' => 'root',
|
|
'group' => 'root',
|
|
'mode' => '0644',
|
|
'before' => 'Anchor[openstack_extras_redhat]',
|
|
}
|
|
|
|
case $::operatingsystem {
|
|
'centos', 'redhat', 'scientific', 'slc': {
|
|
$dist_full = 'epel-'
|
|
$dist_short = 'el'
|
|
}
|
|
'fedora': {
|
|
$dist_full = 'fedora-'
|
|
$dist_short = 'f'
|
|
}
|
|
default: {
|
|
warning('Unrecognised operatingsystem')
|
|
}
|
|
}
|
|
}
|