EOX GitLab Instance

Commit 5f95c736 authored by Martin Paces's avatar Martin Paces
Browse files

GDAL RPM compilation and repository setup

parent b451b164
...@@ -16,8 +16,15 @@ class repos { ...@@ -16,8 +16,15 @@ 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"
exec{ 'exclude_tuwien' :
command => "/bin/ex -c '/^exclude:/d' -c wq ${yfmcnf} ; /bin/sh -c 'echo exclude: gd.tuwien.ac.at >> ${yfmcnf}'",
before => Exec['yum_clean']
}
exec { 'yum_clean': exec { 'yum_clean':
command => '/usr/bin/yum clean all', command => '/usr/bin/yum clean all ; /usr/bin/yum makecache',
refreshonly => true, refreshonly => true,
subscribe => [ subscribe => [
Package['epel-release'], Package['epel-release'],
......
class gdal-ras {
Package {
require => [
Augeas['enable_eox-testing'],
Exec['yum_clean_all2']
]
}
# 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',
],
before => Exec['yum_clean_all2'],
}
exec { 'yum_clean_all2':
command => '/usr/bin/yum clean all ; /usr/bin/yum makecache',
}
package { 'ant': ensure => 'latest' }
# package { 'atlas-devel': ensure => 'latest' }
package { 'cfitsio-devel': ensure => 'latest' }
package { 'chrpath': ensure => 'latest' }
package { 'doxygen': ensure => 'latest' }
package { 'geos-devel': ensure => 'latest' }
package { 'ghostscript': ensure => 'latest' }
package { 'giflib-devel': ensure => 'latest' }
package { 'hdf5-devel': ensure => 'latest' }
package { 'hdf-devel': ensure => 'latest' }
package { 'jasper-devel': ensure => 'latest' }
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' }
package { 'libdap-devel': ensure => 'latest' }
package { 'libgeotiff-devel': ensure => 'latest' }
package { 'libjpeg-turbo-devel': ensure => 'latest' }
package { 'libpng-devel': ensure => 'latest' }
package { 'librx-devel': ensure => 'latest' }
package { 'libspatialite-devel': ensure => 'latest' }
package { 'libtiff-devel': ensure => 'latest' }
package { 'libtool': ensure => 'latest' }
package { 'mysql-devel': ensure => 'latest' }
package { 'netcdf-devel': ensure => 'latest' }
package { 'numpy': ensure => 'latest' }
package { 'ogdi-devel': ensure => 'latest' }
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' }
package { 'swig': ensure => 'latest' }
package { 'texlive-latex': ensure => 'latest' }
package { 'unixODBC-devel': ensure => 'latest' }
package { 'xerces-c-devel': ensure => 'latest' }
package { 'zlib-devel': ensure => 'latest' }
}
...@@ -2,7 +2,8 @@ class gdal-shibboleth { ...@@ -2,7 +2,8 @@ class gdal-shibboleth {
Package { Package {
require => [ require => [
Yumrepo['security:shibboleth'], Yumrepo['security:shibboleth'],
Augeas['enable_eox-testing'] Augeas['enable_eox-testing'],
Exec['shib_yum_clean_all']
] ]
} }
...@@ -14,7 +15,7 @@ class gdal-shibboleth { ...@@ -14,7 +15,7 @@ class gdal-shibboleth {
'set eox-testing-source/enabled 1', 'set eox-testing-source/enabled 1',
'set eox-testing-noarch/enabled 1', 'set eox-testing-noarch/enabled 1',
], ],
notify => Exec['shib_yum_clean_all'], before => Exec['shib_yum_clean_all'],
} }
# enable security:shibboleth to install libxerces-c-devel # enable security:shibboleth to install libxerces-c-devel
...@@ -24,48 +25,53 @@ class gdal-shibboleth { ...@@ -24,48 +25,53 @@ class gdal-shibboleth {
enabled => 1, enabled => 1,
gpgcheck => 1, gpgcheck => 1,
gpgkey => "http://download.opensuse.org/repositories/security:/shibboleth/RHEL_6/repodata/repomd.xml.key", gpgkey => "http://download.opensuse.org/repositories/security:/shibboleth/RHEL_6/repodata/repomd.xml.key",
notify => Exec['shib_yum_clean_all'], before => Exec['shib_yum_clean_all'],
} }
exec { 'shib_yum_clean_all': exec { 'shib_yum_clean_all':
command => '/usr/bin/yum clean all', command => '/usr/bin/yum clean all ; /usr/bin/yum makecache'
refreshonly => true,
} }
package { 'python-devel': ensure => 'latest' } package { 'ant': ensure => 'latest' }
package { 'numpy': ensure => 'latest' } # package { 'atlas-devel': ensure => 'latest' }
package { 'libpng-devel': ensure => 'latest' } package { 'cfitsio-devel': ensure => 'latest' }
package { 'giflib-devel': ensure => 'latest' } package { 'chrpath': ensure => 'latest' }
package { 'libjpeg-turbo-devel': ensure => 'latest' }
package { 'libtiff-devel': ensure => 'latest' }
package { 'doxygen': ensure => 'latest' } package { 'doxygen': ensure => 'latest' }
package { 'texlive-latex': ensure => 'latest' } package { 'geos-devel': ensure => 'latest' }
package { 'ghostscript': ensure => 'latest' } package { 'ghostscript': ensure => 'latest' }
package { 'jpackage-utils': ensure => 'latest' } package { 'giflib-devel': ensure => 'latest' }
package { 'hdf5-devel': ensure => 'latest' }
package { 'hdf-devel': ensure => 'latest' }
package { 'jasper-devel': ensure => 'latest' } package { 'jasper-devel': ensure => 'latest' }
package { 'cfitsio-devel': ensure => 'latest' } 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' }
package { 'libdap-devel': ensure => 'latest' } package { 'libdap-devel': ensure => 'latest' }
package { 'libgeotiff-devel': ensure => 'latest' }
package { 'libjpeg-turbo-devel': ensure => 'latest' }
package { 'libpng-devel': ensure => 'latest' }
package { 'librx-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 { 'libspatialite-devel': ensure => 'latest' }
package { 'proj-devel': ensure => 'latest' } package { 'libtiff-devel': ensure => 'latest' }
package { 'geos-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' }
package { 'netcdf-devel': ensure => 'latest' } package { 'netcdf-devel': ensure => 'latest' }
package { 'hdf5-devel': ensure => 'latest' } package { 'numpy': ensure => 'latest' }
package { 'ogdi-devel': ensure => 'latest' } package { 'ogdi-devel': ensure => 'latest' }
package { 'libgeotiff-devel': ensure => 'latest' } package { 'perl-ExtUtils-MakeMaker': ensure => 'latest' }
package { 'libcurl-devel': ensure => 'latest' } package { 'pkgconfig': ensure => 'latest' }
package { 'perl': ensure => 'latest' } package { 'postgresql-devel': ensure => 'latest' }
package { 'chrpath': ensure => 'latest' } package { 'proj-devel': ensure => 'latest' }
package { 'ant': 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' }
package { 'swig': ensure => 'latest' } package { 'swig': ensure => 'latest' }
package { 'java-1.5.0-gcj-devel': ensure => 'latest' } package { 'texlive-latex': ensure => 'latest' }
package { 'java-1.6.0-openjdk-devel': ensure => 'latest' } package { 'unixODBC-devel': ensure => 'latest' }
package { 'libtool': ensure => 'latest' } package { 'zlib-devel': ensure => 'latest' }
package { 'perl-devel': ensure => 'latest' }
package { 'libxerces-c-devel': ensure => 'latest' }
package { 'libxerces-c-3_1': ensure => 'latest', require => Yumrepo['security:shibboleth'] }
} }
class gdal {
package { 'ant': ensure => 'latest' }
# package { 'atlas-devel': ensure => 'latest' }
package { 'cfitsio-devel': ensure => 'latest' }
package { 'chrpath': ensure => 'latest' }
package { 'doxygen': ensure => 'latest' }
package { 'geos-devel': ensure => 'latest' }
package { 'ghostscript': ensure => 'latest' }
package { 'giflib-devel': ensure => 'latest' }
package { 'hdf5-devel': ensure => 'latest' }
package { 'hdf-devel': ensure => 'latest' }
package { 'jasper-devel': ensure => 'latest' }
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' }
package { 'libdap-devel': ensure => 'latest' }
package { 'libgeotiff-devel': ensure => 'latest' }
package { 'libjpeg-turbo-devel': ensure => 'latest' }
package { 'libpng-devel': ensure => 'latest' }
package { 'librx-devel': ensure => 'latest' }
package { 'libspatialite-devel': ensure => 'latest' }
package { 'libtiff-devel': ensure => 'latest' }
package { 'libtool': ensure => 'latest' }
package { 'mysql-devel': ensure => 'latest' }
package { 'netcdf-devel': ensure => 'latest' }
package { 'numpy': ensure => 'latest' }
package { 'ogdi-devel': ensure => 'latest' }
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 { 'ruby': ensure => 'latest' }
package { 'ruby-devel': ensure => 'latest' }
package { 'sqlite-devel': ensure => 'latest' }
package { 'swig': ensure => 'latest' }
package { 'texlive-latex': ensure => 'latest' }
package { 'unixODBC-devel': ensure => 'latest' }
package { 'xerces-c-devel': ensure => 'latest' }
package { 'zlib-devel': ensure => 'latest' }
}
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