diff --git a/manifests/params.pp b/manifests/params.pp index f13fdcd..aa3accf 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -134,6 +134,7 @@ class postgresql::params( } $service_status = undef + $python_package_name="python-psycopg2" } 'Debian': { diff --git a/manifests/python.pp b/manifests/python.pp new file mode 100644 index 0000000..8919b67 --- /dev/null +++ b/manifests/python.pp @@ -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, + } + +}