EOX GitLab Instance

Commit b451b164 authored by Marko Locher's avatar Marko Locher
Browse files

Ensure that package repositories are installed before packages

Also, renamed xerces-c-devel to libxerces-c-devel
parent 1a019d31
class gdal-shibboleth { class gdal-shibboleth {
Package {
require => [
Yumrepo['security:shibboleth'],
Augeas['enable_eox-testing']
]
}
# enable EOX-testing repository # enable EOX-testing repository
augeas { 'enable_eox-testing': augeas { 'enable_eox-testing':
context => '/files/etc/yum.repos.d/eox-testing.repo', context => '/files/etc/yum.repos.d/eox-testing.repo',
...@@ -6,7 +13,8 @@ class gdal-shibboleth { ...@@ -6,7 +13,8 @@ class gdal-shibboleth {
'set eox-testing/enabled 1', 'set eox-testing/enabled 1',
'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'],
} }
# enable security:shibboleth to install libxerces-c-devel # enable security:shibboleth to install libxerces-c-devel
...@@ -16,11 +24,16 @@ class gdal-shibboleth { ...@@ -16,11 +24,16 @@ 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'],
}
exec { 'shib_yum_clean_all':
command => '/usr/bin/yum clean all',
refreshonly => true,
} }
package { 'python-devel': ensure => 'latest' } package { 'python-devel': ensure => 'latest' }
package { 'numpy': ensure => 'latest' } package { 'numpy': ensure => 'latest' }
package { 'xerces-c-devel': ensure => 'latest' }
package { 'libpng-devel': ensure => 'latest' } package { 'libpng-devel': ensure => 'latest' }
package { 'giflib-devel': ensure => 'latest' } package { 'giflib-devel': ensure => 'latest' }
package { 'libjpeg-turbo-devel': ensure => 'latest' } package { 'libjpeg-turbo-devel': ensure => 'latest' }
...@@ -53,5 +66,6 @@ class gdal-shibboleth { ...@@ -53,5 +66,6 @@ class gdal-shibboleth {
package { 'java-1.6.0-openjdk-devel': ensure => 'latest' } package { 'java-1.6.0-openjdk-devel': ensure => 'latest' }
package { 'libtool': ensure => 'latest' } package { 'libtool': ensure => 'latest' }
package { 'perl-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'] } package { 'libxerces-c-3_1': ensure => 'latest', require => Yumrepo['security:shibboleth'] }
} }
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