Add support for psycopg installation

This commit is contained in:
Flaper Fesp 2013-01-17 10:52:46 +01:00 committed by Dan Prince
parent 8aa916583e
commit 9a307d986a
2 changed files with 15 additions and 0 deletions

View file

@ -134,6 +134,7 @@ class postgresql::params(
}
$service_status = undef
$python_package_name="python-psycopg2"
}
'Debian': {

14
manifests/python.pp Normal file
View 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,
}
}