EOX GitLab Instance

Commit a1fb8d69 authored by Stephan Meißl's avatar Stephan Meißl
Browse files

Add CentOS CR repository and install epel from official packages.

parent dbc8e8f2
class repos { class repos {
# missing repositories elgis & epel # CR repository
package { 'centos-release-cr':
ensure => 'installed'
}
# missing repositories elgis, epel, &eox
package { 'epel-release': package { 'epel-release':
provider => 'rpm', ensure => 'installed'
ensure => 'installed',
source => 'http://fedora.aau.at/epel/6/i386/epel-release-6-8.noarch.rpm'
} }
package { 'elgis-release': package { 'elgis-release':
provider => 'rpm', provider => 'rpm',
...@@ -16,18 +18,18 @@ class repos { ...@@ -16,18 +18,18 @@ class repos {
source => 'http://yum.packages.eox.at/el/6/stable/noarch/eox-release-6-2.noarch.rpm' source => 'http://yum.packages.eox.at/el/6/stable/noarch/eox-release-6-2.noarch.rpm'
} }
$yfmcnf="/etc/yum/pluginconf.d/fastestmirror.conf" $yfmcnf="/etc/yum/pluginconf.d/fastestmirror.conf"
exec{ 'exclude_tuwien' : exec{ 'exclude_tuwien' :
command => "/bin/ex -c '/^exclude:/d' -c wq ${yfmcnf} ; /bin/sh -c 'echo exclude: gd.tuwien.ac.at >> ${yfmcnf}'", command => "/bin/ex -c '/^exclude:/d' -c wq ${yfmcnf} ; /bin/sh -c 'echo exclude: gd.tuwien.ac.at >> ${yfmcnf}'",
before => Exec['yum_clean'] before => Exec['yum_clean']
} }
exec { 'yum_clean': exec { 'yum_clean':
command => '/usr/bin/yum clean all ; /usr/bin/yum makecache', command => '/usr/bin/yum clean all ; /usr/bin/yum makecache',
refreshonly => true, refreshonly => true,
subscribe => [ subscribe => [
Package['epel-release'], Package['epel-release'],
Package['elgis-release'], Package['elgis-release'],
Package['eox-release'] Package['eox-release']
] ]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment