Large update for using apt-gets regex feature (thx apt!) and fixing new command added to keystone.

This commit is contained in:
Joshua Harlow
2012-01-27 13:59:16 -08:00
parent 909d309dc2
commit 2f801e1eb9
22 changed files with 226 additions and 1262 deletions

View File

@@ -46,7 +46,7 @@ MANAGE_DATA_CONF = 'keystone_data.sh'
MANAGER_CMD_ROOT = [sh.joinpths("/", "bin", 'bash')]
#sync db command
SYNC_DB_CMD = ['keystone-manage', 'sync_database']
SYNC_DB_CMD = [sh.joinpths('%BINDIR%', 'keystone-manage'), 'sync_database']
#what to start
APP_OPTIONS = {
@@ -88,7 +88,12 @@ class KeystoneInstaller(comp.PythonInstallComponent):
def _sync_db(self):
LOG.info("Syncing keystone to database named %s", DB_NAME)
sh.execute(*SYNC_DB_CMD, cwd=self.bindir)
params = dict()
#it seems like this command only works if fully specified
#probably a bug
params['BINDIR'] = self.bindir
cmds = [{'cmd': SYNC_DB_CMD}]
utils.execute_template(*cmds, cwd=self.bindir, params=params)
def _get_config_files(self):
return list(CONFIGS)