Skip to content

Commit 9a307d9

Browse files
flaper87dprince
authored andcommitted
Add support for psycopg installation
1 parent 8aa9165 commit 9a307d9

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

manifests/params.pp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@
134134
}
135135

136136
$service_status = undef
137+
$python_package_name="python-psycopg2"
137138
}
138139

139140
'Debian': {

manifests/python.pp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Class: postgresql::python
2+
# This class installs the python libs for postgresql.
3+
4+
class postgresql::python(
5+
$package_name = $postgresql::params::python_package_name,
6+
$package_ensure = 'present'
7+
) inherits postgresql::params {
8+
9+
package { 'python-psycopg2':
10+
ensure => $package_ensure,
11+
name => $package_name,
12+
}
13+
14+
}

0 commit comments

Comments
 (0)