Add actual postgresl module from puppetlabs
[mirror/dsa-puppet.git] / 3rdparty / modules / postgresql / manifests / python.pp
diff --git a/3rdparty/modules/postgresql/manifests/python.pp b/3rdparty/modules/postgresql/manifests/python.pp
new file mode 100644 (file)
index 0000000..16fc638
--- /dev/null
@@ -0,0 +1,18 @@
+# Class: postgresql::python
+# This class installs the python libs for postgresql.
+#
+# Parameters:
+#   [*ensure*]       - ensure state for package.
+#                        can be specified as version.
+#   [*package_name*] - name of package
+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,
+  }
+
+}