[Horizon] ensure horizon secret key stays same
We can't regenerate secret key for horizon in each packstack run as it causes restart of httpd daemon. Change-Id: Id6581fd12c223389c20e545703d79d3f505b4ad1
This commit is contained in:
@@ -841,6 +841,9 @@ OpenStack Horizon Config parameters
|
|||||||
**CONFIG_HORIZON_SSL**
|
**CONFIG_HORIZON_SSL**
|
||||||
Specify 'y' to set up Horizon communication over https. ['y', 'n']
|
Specify 'y' to set up Horizon communication over https. ['y', 'n']
|
||||||
|
|
||||||
|
**CONFIG_HORIZON_SECRET_KEY**
|
||||||
|
Secret key to use for Horizon Secret Encryption Key.
|
||||||
|
|
||||||
SSL Config parameters
|
SSL Config parameters
|
||||||
---------------------
|
---------------------
|
||||||
|
|
||||||
|
|||||||
@@ -49,6 +49,18 @@ def initConfig(controller):
|
|||||||
"USE_DEFAULT": False,
|
"USE_DEFAULT": False,
|
||||||
"NEED_CONFIRM": False,
|
"NEED_CONFIRM": False,
|
||||||
"CONDITION": False},
|
"CONDITION": False},
|
||||||
|
|
||||||
|
{"CMD_OPTION": "os-horizon-secretkey",
|
||||||
|
"PROMPT": "Horizon Secret Encryption Key",
|
||||||
|
"OPTION_LIST": [],
|
||||||
|
"VALIDATORS": [validators.validate_not_empty],
|
||||||
|
"DEFAULT_VALUE": uuid.uuid4().hex,
|
||||||
|
"MASK_INPUT": True,
|
||||||
|
"LOOSE_VALIDATION": False,
|
||||||
|
"CONF_NAME": "CONFIG_HORIZON_SECRET_KEY",
|
||||||
|
"USE_DEFAULT": True,
|
||||||
|
"NEED_CONFIRM": False,
|
||||||
|
"CONDITION": False},
|
||||||
]
|
]
|
||||||
update_params_usage(basedefs.PACKSTACK_DOC, params, sectioned=False)
|
update_params_usage(basedefs.PACKSTACK_DOC, params, sectioned=False)
|
||||||
group = {"GROUP_NAME": "OSHORIZON",
|
group = {"GROUP_NAME": "OSHORIZON",
|
||||||
@@ -128,7 +140,6 @@ def initSequences(controller):
|
|||||||
# -------------------------- step functions --------------------------
|
# -------------------------- step functions --------------------------
|
||||||
|
|
||||||
def create_manifest(config, messages):
|
def create_manifest(config, messages):
|
||||||
config["CONFIG_HORIZON_SECRET_KEY"] = uuid.uuid4().hex
|
|
||||||
horizon_host = config['CONFIG_CONTROLLER_HOST']
|
horizon_host = config['CONFIG_CONTROLLER_HOST']
|
||||||
manifestfile = "%s_horizon.pp" % horizon_host
|
manifestfile = "%s_horizon.pp" % horizon_host
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user