Add support for psycopg installation
This commit is contained in:
parent
8aa916583e
commit
9a307d986a
2 changed files with 15 additions and 0 deletions
|
@ -134,6 +134,7 @@ class postgresql::params(
|
|||
}
|
||||
|
||||
$service_status = undef
|
||||
$python_package_name="python-psycopg2"
|
||||
}
|
||||
|
||||
'Debian': {
|
||||
|
|
14
manifests/python.pp
Normal file
14
manifests/python.pp
Normal file
|
@ -0,0 +1,14 @@
|
|||
# Class: postgresql::python
|
||||
# This class installs the python libs for postgresql.
|
||||
|
||||
class postgresql::python(
|
||||
$package_name = $postgresql::params::python_package_name,
|
||||
$package_ensure = 'present'
|
||||
) inherits postgresql::params {
|
||||
|
||||
package { 'python-psycopg2':
|
||||
ensure => $package_ensure,
|
||||
name => $package_name,
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in a new issue