556ab32b73
Modify params.pp to abstract the package name for the postgresql JDBC connector and add Class['postgresql::java']. Also update the README.md to mention the availability of this class.
26 lines
496 B
Puppet
26 lines
496 B
Puppet
# Class: postgresql::java
|
|
#
|
|
# This class installs the postgresql jdbc connector.
|
|
#
|
|
# Parameters:
|
|
# [*java_package_name*] - The name of the postgresql java package.
|
|
#
|
|
# Actions:
|
|
#
|
|
# Requires:
|
|
#
|
|
# Sample Usage:
|
|
#
|
|
# class { 'postgresql::java': }
|
|
#
|
|
class postgresql::java (
|
|
$package_name = $postgresql::params::java_package_name,
|
|
$package_ensure = 'present'
|
|
) inherits postgresql::params {
|
|
|
|
package { 'postgresql-jdbc':
|
|
ensure => $package_ensure,
|
|
name => $package_name,
|
|
}
|
|
|
|
}
|