EOX GitLab Instance

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

Merge branch 'mapserver' of gitlab.eox.at:vagrant/builder_rpm

parents f626c58c 8e2826de
.vagrant
build/RPMS
build/SOURCES
build/SPECS
build/SRPMS
\ No newline at end of file
......@@ -47,10 +47,11 @@ Vagrant::Config.run do |config|
# are contained in a directory path relative to this Vagrantfile.
# You will need to create the manifests directory and a manifest in
# the file rpmbuild.pp in the manifests_path directory.
config.vm.provision :puppet do |puppet|
config.vm.provision :puppet, :facter => { "project" => "mapserver" } do |puppet|
puppet.manifests_path = "puppet/manifests"
puppet.manifest_file = "rpmbuild.pp"
puppet.module_path = "puppet/modules"
puppet.facter
end
# Auto update guest additions, to use this, please install vagrant-vbguest
......
......@@ -2,5 +2,10 @@
# include mockbuild module from
# https://github.com/jeffmccune/jeffmccune-mockbuild
include buildtools
include eox-release
include rasdaman
\ No newline at end of file
notify { "Installing build dependencies for <$project>!": }
case $project {
'eox-release': { include eox-release }
'rasdaman': { include rasdaman }
'mapserver': { include mapserver }
}
\ No newline at end of file
class buildtools {
include 'repos'
$home = '/home/vagrant'
File {
......@@ -11,14 +13,15 @@ class buildtools {
package { 'redhat-rpm-config': ensure => 'latest' }
package { 'make': ensure => 'latest' }
package { 'gcc': ensure => 'latest' }
package { 'gcc-c++': ensure => 'latest' }
file { $home: ensure => directory }
file { "${home}/.rpmmacros":
ensure => file,
content => "%_topdir ${home}/rpmbuild\n",
ensure => file,
content => "%_topdir ${home}/rpmbuild\n",
}
file { "${home}/rpmbuild":
ensure => directory,
ensure => directory,
}
file {[ "${home}/rpmbuild/BUILD",
"${home}/rpmbuild/BUILDROOT",
......@@ -26,5 +29,6 @@ class buildtools {
"${home}/rpmbuild/SOURCES",
"${home}/rpmbuild/SPECS",
"${home}/rpmbuild/SRPMS" ]:
ensure => directory,
ensure => directory,
mode => '0775'
}}
class repos {
# missing repositories elgis & epel
package { 'epel-release':
provider => 'rpm',
ensure => 'installed',
source => 'http://fedora.aau.at/epel/6/i386/epel-release-6-8.noarch.rpm'
}
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',
source => 'http://yum.packages.eox.at/el/eox-release-6-2.noarch.rpm'
}
exec { 'yum_clean':
command => '/usr/bin/yum clean all',
refreshonly => true,
subscribe => [
Package['epel-release'],
Package['elgis-release'],
Package['eox-release']
]
}
}
\ No newline at end of file
class mapserver {
# 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',
]
}
package { 'libXpm-devel': ensure => 'latest', require => [ Package['epel-release'], Package['elgis-release'], Package['eox-release'] ] }
package { 'httpd-devel': ensure => 'latest', require => [ Package['epel-release'], Package['elgis-release'], Package['eox-release'] ] }
package { 'php-devel': ensure => 'latest', require => [ Package['epel-release'], Package['elgis-release'], Package['eox-release'] ] }
package { 'libxslt-devel': ensure => 'latest', require => [ Package['epel-release'], Package['elgis-release'], Package['eox-release'] ] }
package { 'pam-devel': ensure => 'latest', require => [ Package['epel-release'], Package['elgis-release'], Package['eox-release'] ] }
package { 'fcgi-devel': ensure => 'latest', require => [ Package['epel-release'], Package['elgis-release'], Package['eox-release'] ] }
package { 'perl': ensure => 'latest', require => [ Package['epel-release'], Package['elgis-release'], Package['eox-release'] ] }
package { 'postgresql-devel': ensure => 'latest', require => [ Package['epel-release'], Package['elgis-release'], Package['eox-release'] ] }
package { 'mysql-devel': ensure => 'latest', require => [ Package['epel-release'], Package['elgis-release'], Package['eox-release'] ] }
package { 'java-1.6.0-openjdk-devel': ensure => 'latest', require => [ Package['epel-release'], Package['elgis-release'], Package['eox-release'] ] }
package { 'swig': ensure => 'latest', require => [ Package['epel-release'], Package['elgis-release'], Package['eox-release'] ] }
package { 'java-1.6.0-openjdk': ensure => 'latest', require => [ Package['epel-release'], Package['elgis-release'], Package['eox-release'] ] }
package { 'geos-devel': ensure => 'latest', require => [ Package['epel-release'], Package['elgis-release'], Package['eox-release'] ] }
package { 'proj-devel': ensure => 'latest', require => [ Package['epel-release'], Package['elgis-release'], Package['eox-release'] ] }
package { 'gdal-devel': ensure => 'latest', require => [ Package['epel-release'], Package['elgis-release'], Package['eox-release'] ] }
package { 'cairo-devel': ensure => 'latest', require => [ Package['epel-release'], Package['elgis-release'], Package['eox-release'] ] }
package { 'freetype-devel': ensure => 'latest', require => [ Package['epel-release'], Package['elgis-release'], Package['eox-release'] ] }
package { 'gd-devel': ensure => 'latest', require => [ Package['epel-release'], Package['elgis-release'], Package['eox-release'] ] }
package { 'python-devel': ensure => 'latest', require => [ Package['epel-release'], Package['elgis-release'], Package['eox-release'] ] }
package { 'libcurl-devel': ensure => 'latest', require => [ Package['epel-release'], Package['elgis-release'], Package['eox-release'] ] }
package { 'libxml2-devel': ensure => 'latest', require => [ Package['epel-release'], Package['elgis-release'], Package['eox-release'] ] }
package { 'libjpeg-devel': ensure => 'latest', require => [ Package['epel-release'], Package['elgis-release'], Package['eox-release'] ] }
package { 'libpng-devel': ensure => 'latest', require => [ Package['epel-release'], Package['elgis-release'], Package['eox-release'] ] }
package { 'fribidi-devel': ensure => 'latest', require => [ Package['epel-release'], Package['elgis-release'], Package['eox-release'] ] }
package { 'giflib-devel': ensure => 'latest', require => [ Package['epel-release'], Package['elgis-release'], Package['eox-release'] ] }
package { 'pcre': ensure => 'latest', require => [ Package['epel-release'], Package['elgis-release'], Package['eox-release'] ] }
package { 'pcre-devel': ensure => 'latest', require => [ Package['epel-release'], Package['elgis-release'], Package['eox-release'] ] }
package { 'perl-ExtUtils-MakeMaker': ensure => 'latest', require => [ Package['epel-release'], Package['elgis-release'], Package['eox-release'] ] }
}
\ No newline at end of file
class rasdaman {
# missing repositories elgis & epel
package { 'epel-release':
provider => 'rpm',
ensure => 'installed',
source => 'http://fedora.aau.at/epel/6/i386/epel-release-6-8.noarch.rpm'
}
package { 'elgis-release':
provider => 'rpm',
ensure => 'installed',
source => 'http://elgis.argeo.org/repos/6/elgis-release-6-6_0.noarch.rpm'
}
exec { 'yum_clean':
command => '/usr/bin/yum clean all',
refreshonly => true,
subscribe => [
Package['epel-release'],
Package['elgis-release']
]
}
package { 'bison': ensure => 'latest', require => [ Package['epel-release'], Package['elgis-release'] ] }
package { 'libtiff-devel': ensure => 'latest', require => [ Package['epel-release'], Package['elgis-release'] ] }
package { 'hdf-devel': ensure => 'latest', require => [ Package['epel-release'], Package['elgis-release'] ] }
......
Supports Markdown
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