Browse Source

Enable barbican cert manager in devstack

If barbican service is enabled, this patch enable barbican cert
manager to store certificate.

Change-Id: I93c60abac6e1542204434465b60c488eafcd8746
Partially-Implements: blueprint barbican-support
changes/66/227066/2
OTSUKA, Yuanying 6 years ago
parent
commit
d79b73144e
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      devstack/lib/magnum

+ 6
- 2
devstack/lib/magnum View File

@ -186,8 +186,12 @@ function create_magnum_conf {
sudo mkdir -p $MAGNUM_LOCAL_CERT_DIR
sudo chown $STACK_USER $MAGNUM_LOCAL_CERT_DIR
fi
iniset $MAGNUM_CONF certificates storage_path "$MAGNUM_LOCAL_CERT_DIR"
iniset $MAGNUM_CONF certificates cert_manager_type "local"
if is_service_enabled barbican; then
iniset $MAGNUM_CONF certificates cert_manager_type "barbican"
else
iniset $MAGNUM_CONF certificates storage_path "$MAGNUM_LOCAL_CERT_DIR"
iniset $MAGNUM_CONF certificates cert_manager_type "local"
fi
}
function update_heat_policy {


Loading…
Cancel
Save