Added modules
This commit is contained in:
parent
c53c931217
commit
59ec520742
646 changed files with 35182 additions and 0 deletions
29
modules/postgresql/manifests/client.pp
Normal file
29
modules/postgresql/manifests/client.pp
Normal file
|
@ -0,0 +1,29 @@
|
|||
# Install client cli tool. See README.md for more details.
|
||||
class postgresql::client (
|
||||
$package_name = $postgresql::params::client_package_name,
|
||||
$package_ensure = 'present'
|
||||
) inherits postgresql::params {
|
||||
validate_string($package_name)
|
||||
|
||||
package { 'postgresql-client':
|
||||
ensure => $package_ensure,
|
||||
name => $package_name,
|
||||
tag => 'postgresql',
|
||||
}
|
||||
|
||||
$file_ensure = $package_ensure ? {
|
||||
'present' => 'file',
|
||||
true => 'file',
|
||||
'absent' => 'absent',
|
||||
false => 'absent',
|
||||
default => 'file',
|
||||
}
|
||||
file { "/usr/local/bin/validate_postgresql_connection.sh":
|
||||
ensure => $file_ensure,
|
||||
source => "puppet:///modules/postgresql/validate_postgresql_connection.sh",
|
||||
owner => 0,
|
||||
group => 0,
|
||||
mode => 0755,
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue