c4bca511e9
rhel support added by @mcanevet, but the branch has been squashed. thanks!
27 lines
935 B
Puppet
27 lines
935 B
Puppet
# 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',
|
|
}
|
|
|
|
if($package_ensure == 'present' or $package_ensure == true) {
|
|
anchor { 'postgresql::server::postgis::start': }->
|
|
Class['postgresql::server::install']->
|
|
Package['postgresql-postgis']->
|
|
Class['postgresql::server::service']->
|
|
anchor { 'postgresql::server::postgis::end': }
|
|
} else {
|
|
anchor { 'postgresql::server::postgis::start': }->
|
|
Class['postgresql::server::service']->
|
|
Package['postgresql-postgis']->
|
|
Class['postgresql::server::install']->
|
|
anchor { 'postgresql::server::postgis::end': }
|
|
}
|
|
}
|