EOX GitLab Instance

init.pp 3.04 KB
Newer Older
1
class gdal-shibboleth {
Martin Paces's avatar
Martin Paces committed
2
3
4
5

# this VM serves for re-building of Shibboleth-friendly 
# Rasdaman-enabled gdal RPM packages 

6
7
8
	Package {
		require => [
			Yumrepo['security:shibboleth'],
9
10
			Augeas['enable_eox-testing'], 
			Exec['shib_yum_clean_all']
11
12
13
		]
	}

14
15
16
17
18
19
20
	# 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',
21
		],
22
		before => Exec['shib_yum_clean_all'],
23
24
25
26
27
28
29
30
31
	}

	# 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",
32
		before => Exec['shib_yum_clean_all'],
33
34
35
	}

	exec { 'shib_yum_clean_all':
36
		command		=> '/usr/bin/yum clean all ; /usr/bin/yum makecache'
37
38
	}

39
40
41
42
	package { 'ant': ensure => 'latest' }
#	package { 'atlas-devel': ensure => 'latest' }
	package { 'cfitsio-devel': ensure => 'latest' }
	package { 'chrpath': ensure => 'latest' }
43
	package { 'doxygen': ensure => 'latest' }
44
	package { 'geos-devel': ensure => 'latest' }
45
	package { 'ghostscript': ensure => 'latest' }
46
47
48
	package { 'giflib-devel': ensure => 'latest' }
	package { 'hdf5-devel': ensure => 'latest' }
	package { 'hdf-devel': ensure => 'latest' }
49
	package { 'jasper-devel': ensure => 'latest' }
50
51
52
53
	package { 'java-1.5.0-gcj-devel': ensure => 'latest' }
	package { 'java-1.6.0-openjdk-devel': ensure => 'latest' }
	package { 'jpackage-utils': ensure => 'latest' }
	package { 'libcurl-devel': ensure => 'latest' }
54
	package { 'libdap-devel': ensure => 'latest' }
55
56
57
	package { 'libgeotiff-devel': ensure => 'latest' }
	package { 'libjpeg-turbo-devel': ensure => 'latest' }
	package { 'libpng-devel': ensure => 'latest' }
58
59
	package { 'librx-devel': ensure => 'latest' }
	package { 'libspatialite-devel': ensure => 'latest' }
60
61
62
63
64
	package { 'libtiff-devel': ensure => 'latest' }
	package { 'libtool': ensure => 'latest' }
	package { 'libxerces-c-3_1': ensure => 'latest', require => Yumrepo['security:shibboleth'] }
	package { 'libxerces-c-devel': ensure => 'latest' }
	package { 'mysql-devel': ensure => 'latest' }
65
	package { 'netcdf-devel': ensure => 'latest' }
66
	package { 'numpy': ensure => 'latest' }
67
	package { 'ogdi-devel': ensure => 'latest' }
68
69
70
71
72
73
74
75
76
	package { 'perl-ExtUtils-MakeMaker': ensure => 'latest' }
	package { 'pkgconfig': ensure => 'latest' }
	package { 'postgresql-devel': ensure => 'latest' }
	package { 'proj-devel': ensure => 'latest' }
	package { 'python-devel': ensure => 'latest' }
	package { 'rasdaman-devel': ensure => 'latest' }
	package { 'ruby': ensure => 'latest' }
	package { 'ruby-devel': ensure => 'latest' }
	package { 'sqlite-devel': ensure => 'latest' }
77
	package { 'swig': ensure => 'latest' }
78
79
80
	package { 'texlive-latex': ensure => 'latest' }
	package { 'unixODBC-devel': ensure => 'latest' }
	package { 'zlib-devel': ensure => 'latest' }
81
}