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:
@@ -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<||>
|
||||
|
@@ -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' |>
|
||||
|
Reference in New Issue
Block a user