2013-10-16 21:46:50 +02:00
|
|
|
# Install the postgis postgresql packaging. See README.md for more details.
|
|
|
|
class postgresql::server::postgis (
|
|
|
|
$package_name = $postgresql::params::postgis_package_name,
|
|
|
|
$package_ensure = 'present'
|
|
|
|
) inherits postgresql::params {
|
|
|
|
validate_string($package_name)
|
|
|
|
|
|
|
|
package { 'postgresql-postgis':
|
|
|
|
ensure => $package_ensure,
|
|
|
|
name => $package_name,
|
|
|
|
tag => 'postgresql',
|
|
|
|
}
|
|
|
|
|
2014-07-02 16:45:07 +02:00
|
|
|
anchor { 'postgresql::server::postgis::start': }->
|
|
|
|
Class['postgresql::server::install']->
|
|
|
|
Package['postgresql-postgis']->
|
|
|
|
Class['postgresql::server::service']->
|
|
|
|
anchor { 'postgresql::server::postgis::end': }
|
2014-05-08 22:47:10 +02:00
|
|
|
|
2014-07-02 16:45:07 +02:00
|
|
|
if $postgresql::globals::manage_package_repo {
|
|
|
|
Class['postgresql::repo'] ->
|
|
|
|
Package['postgresql-postgis']
|
2013-10-16 21:46:50 +02:00
|
|
|
}
|
|
|
|
}
|