From ed2b5944d7e134cbae734c473f38fd1f883415d4 Mon Sep 17 00:00:00 2001 From: Sebastien Badia Date: Fri, 16 Jan 2015 14:23:22 +0100 Subject: [PATCH] Fix db sync relationships The tuskar puppet module doesn't specify a 'tuskar' package (or title), the package declaration is managed by generic_service define, and the package title is generated using service name (eg. 'api') and the prefix 'tuskar-', so let's switch to 'tuskar-api' for package dependency. The tuskar puppet module doesn't specify a 'tuskar' user, let's remove this relationship. And finally this patch fix the relationship about 'database/connection' it's 'database/sql_connection' in this module, and use tuskar_config instead of Keystone_config. Change-Id: I7d145f42379abf3c11936fe27ec6d0cdbfc10ab9 --- manifests/db/sync.pp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/manifests/db/sync.pp b/manifests/db/sync.pp index d8b39e6..736777b 100644 --- a/manifests/db/sync.pp +++ b/manifests/db/sync.pp @@ -22,7 +22,6 @@ class tuskar::db::sync { path => '/usr/bin', user => 'tuskar', refreshonly => true, - subscribe => [Package['tuskar'], Keystone_config['DEFAULT/sql_connection']], - require => User['tuskar'], + subscribe => [Package['tuskar-api'], Tuskar_config['database/sql_connection']], } }