Creates keystonerc_admin for user

- creates keystonerc_admin for user running Packstack
in case OpenStack client host is the host where packstack
is running (eg. all-in-one installation)

Change-Id: I37be40de46f54c78c934a27bc3f5e3c9381e7f19
Fixes: rhbz#964005, rhbz#976394
This commit is contained in:
Martin Magr
2013-09-26 17:20:21 +02:00
parent 8bad2a3b0b
commit bd41088be6
6 changed files with 74 additions and 25 deletions

View File

@@ -5,7 +5,6 @@ Installs and configures Keystone
import logging
import uuid
from packstack.installer import validators
from packstack.installer import basedefs
from packstack.installer import utils
@@ -112,11 +111,13 @@ def initConfig(controllerObject):
def initSequences(controller):
keystonesteps = [
{'title': 'Adding Keystone manifest entries', 'functions':[createmanifest]}
{'title': 'Adding Keystone manifest entries',
'functions': [create_manifest]},
]
controller.addSequence("Installing OpenStack Keystone", [], [], keystonesteps)
controller.addSequence("Installing OpenStack Keystone", [], [],
keystonesteps)
def createmanifest(config):
manifestfile = "%s_keystone.pp"%controller.CONF['CONFIG_KEYSTONE_HOST']
def create_manifest(config):
manifestfile = "%s_keystone.pp" % config['CONFIG_KEYSTONE_HOST']
manifestdata = getManifestTemplate("keystone.pp")
appendManifestFile(manifestfile, manifestdata)