EOX GitLab Instance

repos.pp 958 Bytes
Newer Older
1
class repos {
2
3
4
5
6
	# CR repository
	package { 'centos-release-cr':
		ensure		=> 'installed'
	}
	# missing repositories elgis, epel, &eox
7
	package { 'epel-release':
8
		ensure		=> 'installed'
9
10
11
12
13
14
15
16
17
	}
	package { 'elgis-release':
		provider	=> 'rpm',
		ensure		=> 'installed',
		source		=> 'http://elgis.argeo.org/repos/6/elgis-release-6-6_0.noarch.rpm'
	}
	package { 'eox-release':
		provider	=> 'rpm',
		ensure		=> 'installed',
18
		source		=> 'http://yum.packages.eox.at/el/6/stable/noarch/eox-release-6-2.noarch.rpm'
19
20
	}

21
	$yfmcnf="/etc/yum/pluginconf.d/fastestmirror.conf"
22

23
	exec{ 'exclude_tuwien' :
24
25
		command 	=> "/bin/ex -c '/^exclude:/d' -c wq ${yfmcnf} ; /bin/sh -c 'echo exclude: gd.tuwien.ac.at >> ${yfmcnf}'",
		before 		=> Exec['yum_clean']
26
	}
27

28
	exec { 'yum_clean':
29
		command		=> '/usr/bin/yum clean all ; /usr/bin/yum makecache',
30
31
		refreshonly	=> true,
		subscribe	=> [
32
			Package['epel-release'],
33
34
35
36
			Package['elgis-release'],
			Package['eox-release']
		]
	}
37
}