Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9344404
client.pp
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
client.pp
View Options
# @summary Installs PostgreSQL client software. Set the following parameters if you have a custom version you would like to install.
#
# @note
# Make sure to add any necessary yum or apt repositories if specifying a custom version.
#
# @param file_ensure
# Ensure the connection validation script is present
# @param validcon_script_path
# Optional. Absolute path for the postgresql connection validation script.
# @param package_name
# Sets the name of the PostgreSQL client package.
# @param package_ensure
# Ensure the client package is installed
class
postgresql
::
client
(
Enum
[
'file'
,
'absent'
]
$file_ensure
=
'file'
,
Stdlib
::
Absolutepath
$validcon_script_path
=
$postgresql::params::validcon_script_path,
String
[
1
]
$package_name
=
$postgresql::params::client_package_name,
String
[
1
]
$package_ensure
=
'present'
)
inherits
postgresql
::
params
{
if
$package_name
!=
'UNSET'
{
package
{
'postgresql-client'
:
ensure
=>
$package_ensure,
name
=>
$package_name,
tag
=>
'puppetlabs-postgresql'
,
}
}
file
{
$validcon_script_path:
ensure
=>
$file_ensure,
source
=>
'puppet:///modules/postgresql/validate_postgresql_connection.sh'
,
owner
=>
0
,
group
=>
0
,
mode
=>
'0755'
,
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jul 4, 2:24 PM (1 d, 23 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3296476
Attached To
rSPPG PostgreSQL puppet module
Event Timeline
Log In to Comment