Skip to content

Commit

Permalink
fix postgresql connection string
Browse files Browse the repository at this point in the history
Change-Id: I55fab1b9256df92cd521141a9d04a2aa2feb08c9
  • Loading branch information
trefzer committed Nov 6, 2013
1 parent 8dd62be commit 0bd24d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manifests/db.pp
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
Package<| title == 'ceilometer-common' |> -> Class['ceilometer::db']

validate_re($database_connection,
'(sqlite|mysql|posgres|mongodb):\/\/(\S+:\S+@\S+\/\S+)?')
'(sqlite|mysql|postgresql|mongodb):\/\/(\S+:\S+@\S+\/\S+)?')

case $database_connection {
/^mysql:\/\//: {
$backend_package = false
include mysql::python
}
/^postgres:\/\//: {
/^postgresql:\/\//: {
$backend_package = 'python-psycopg2'
}
/^mongodb:\/\//: {
Expand Down

0 comments on commit 0bd24d0

Please sign in to comment.