EOX GitLab Instance

init.pp 2.62 KB
Newer Older
1
class gdal-shibboleth {
2
3
4
5
6
7
8
	Package {
		require => [
			Yumrepo['security:shibboleth'],
			Augeas['enable_eox-testing']
		]
	}

9
10
11
12
13
14
15
	# enable EOX-testing repository
	augeas { 'enable_eox-testing':
		context	=> '/files/etc/yum.repos.d/eox-testing.repo',
		changes	=> [
			'set eox-testing/enabled 1',
			'set eox-testing-source/enabled 1',
			'set eox-testing-noarch/enabled 1',
16
17
		],
		notify => Exec['shib_yum_clean_all'],
18
19
20
21
22
23
24
25
26
	}

	# enable security:shibboleth to install libxerces-c-devel
	yumrepo { "security:shibboleth":
		baseurl => "http://download.opensuse.org/repositories/security:/shibboleth/RHEL_6/",
		descr => "Shibboleth (RHEL_6)",
		enabled => 1,
		gpgcheck => 1,
		gpgkey => "http://download.opensuse.org/repositories/security:/shibboleth/RHEL_6/repodata/repomd.xml.key",
27
28
29
30
31
32
		notify => Exec['shib_yum_clean_all'],
	}

	exec { 'shib_yum_clean_all':
		command		=> '/usr/bin/yum clean all',
		refreshonly	=> true,
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
	}

	package { 'python-devel': ensure => 'latest' }
	package { 'numpy': ensure => 'latest' }
	package { 'libpng-devel': ensure => 'latest' }
	package { 'giflib-devel': ensure => 'latest' }
	package { 'libjpeg-turbo-devel': ensure => 'latest' }
	package { 'libtiff-devel': ensure => 'latest' }
	package { 'doxygen': ensure => 'latest' }
	package { 'texlive-latex': ensure => 'latest' }
	package { 'ghostscript': ensure => 'latest' }
	package { 'jpackage-utils': ensure => 'latest' }
	package { 'jasper-devel': ensure => 'latest' }
	package { 'cfitsio-devel': ensure => 'latest' }
	package { 'libdap-devel': ensure => 'latest' }
	package { 'librx-devel': ensure => 'latest' }
	package { 'hdf-devel': ensure => 'latest' }
	package { 'unixODBC-devel': ensure => 'latest' }
	package { 'mysql-devel': ensure => 'latest' }
	package { 'postgresql-devel': ensure => 'latest' }
	package { 'libspatialite-devel': ensure => 'latest' }
	package { 'proj-devel': ensure => 'latest' }
	package { 'geos-devel': ensure => 'latest' }
	package { 'netcdf-devel': ensure => 'latest' }
	package { 'hdf5-devel': ensure => 'latest' }
	package { 'ogdi-devel': ensure => 'latest' }
	package { 'libgeotiff-devel': ensure => 'latest' }
	package { 'libcurl-devel': ensure => 'latest' }
	package { 'perl': ensure => 'latest' }
	package { 'chrpath': ensure => 'latest' }
	package { 'ant': ensure => 'latest' }
	package { 'swig': ensure => 'latest' }
	package { 'java-1.5.0-gcj-devel': ensure => 'latest' }
	package { 'java-1.6.0-openjdk-devel': ensure => 'latest' }
	package { 'libtool': ensure => 'latest' }
68
	package { 'perl-devel': ensure => 'latest' }
69
	package { 'libxerces-c-devel': ensure => 'latest' }
70
	package { 'libxerces-c-3_1': ensure => 'latest', require => Yumrepo['security:shibboleth'] }
71
}