6bd2befa98
Prior to this commit, if you attempted to use the module to manage postgres on any OS other than Redhat/Debian, there was an explicit check for that, and a call to `fail`. In reality, the OS family is only used to build up defaults for various path and package names, which are all exposed as parameters. If the user is willing to explicitly pass in all of those parameters, there's no reason we should fail based on OS family. This commit adds checks to the 'default' osfamily case such that we now only fail if they're on a non-Redhat-or-Debian system *and* they haven't explicitly passed in values for all of the required parameters.
29 lines
586 B
Puppet
29 lines
586 B
Puppet
# Class: postgresql::java
|
|
#
|
|
# This class installs the postgresql jdbc connector.
|
|
#
|
|
# Parameters:
|
|
# [*package_name*] - The name of the postgresql java package.
|
|
# [*package_ensure*] - The ensure value of the package.
|
|
#
|
|
# Actions:
|
|
#
|
|
# Requires:
|
|
#
|
|
# Sample Usage:
|
|
#
|
|
# class { 'postgresql::java': }
|
|
#
|
|
class postgresql::java (
|
|
$package_name = $postgresql::params::java_package_name,
|
|
$package_ensure = 'present'
|
|
) inherits postgresql::params {
|
|
|
|
validate_string($package_name)
|
|
|
|
package { 'postgresql-jdbc':
|
|
ensure => $package_ensure,
|
|
name => $package_name,
|
|
}
|
|
|
|
}
|