fix api.pp and registry.pp to work with postgresql

Validation SQL connection string for postgres was wrong. Compare with
the code section som lines below the patched line, where the correct value is used.

Change-Id: I772761168374fbe4957886026b52ff607002f7d5
This commit is contained in:
Benedikt Trefzer
2013-06-17 20:31:06 +02:00
parent b144d4e6c5
commit ebb78d8d01
2 changed files with 2 additions and 2 deletions

View File

@@ -66,7 +66,7 @@ class glance::api(
# used to configure concat
require 'keystone::python'
validate_re($sql_connection, '(sqlite|mysql|posgres):\/\/(\S+:\S+@\S+\/\S+)?')
validate_re($sql_connection, '(sqlite|mysql|postgresql):\/\/(\S+:\S+@\S+\/\S+)?')
Package['glance'] -> Glance_api_config<||>
Package['glance'] -> Glance_cache_config<||>

View File

@@ -82,7 +82,7 @@ class glance::registry(
require 'keystone::python'
validate_re($sql_connection, '(sqlite|mysql|posgres):\/\/(\S+:\S+@\S+\/\S+)?')
validate_re($sql_connection, '(sqlite|mysql|postgresql):\/\/(\S+:\S+@\S+\/\S+)?')
Package['glance'] -> Glance_registry_config<||>
Glance_registry_config<||> ~> Exec<| title == 'glance-manage db_sync' |>