Skip to content

Commit 15cc37e

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Refix --registry-enabled"
2 parents 4888f70 + 679a174 commit 15cc37e

File tree

5 files changed

+13
-9
lines changed

5 files changed

+13
-9
lines changed

magnum/drivers/common/templates/fragments/configure-docker-registry.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
. /etc/sysconfig/heat-params
44

5-
if [ "$REGISTRY_ENABLED" = "True" ]; then
5+
if [ "$(echo $REGISTRY_ENABLED | tr '[:upper:]' '[:lower:]')" = "true" ]; then
66
ssh_cmd="ssh -F /srv/magnum/.ssh/config root@localhost"
77
$ssh_cmd cat > /etc/sysconfig/registry-config.yml << EOF
88
version: 0.1

magnum/drivers/common/templates/fragments/enable-docker-registry.sh

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@
22

33
. /etc/sysconfig/heat-params
44

5-
if [ "$REGISTRY_ENABLED" = "False" ]; then
6-
exit 0
7-
fi
8-
95
ssh_cmd="ssh -F /srv/magnum/.ssh/config root@localhost"
106

11-
echo "starting docker registry ..."
12-
$ssh_cmd systemctl daemon-reload
13-
$ssh_cmd systemctl enable registry
14-
$ssh_cmd systemctl --no-block start registry
7+
if [ "$(echo $REGISTRY_ENABLED | tr '[:upper:]' '[:lower:]')" = "true" ]; then
8+
echo "starting docker registry ..."
9+
$ssh_cmd systemctl daemon-reload
10+
$ssh_cmd systemctl enable registry
11+
$ssh_cmd systemctl --no-block start registry
12+
fi

magnum/drivers/common/templates/kubernetes/fragments/write-heat-params.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ FLANNEL_NETWORK_CIDR="$FLANNEL_NETWORK_CIDR"
6262
PODS_NETWORK_CIDR="$PODS_NETWORK_CIDR"
6363
KUBE_VERSION="$KUBE_VERSION"
6464
TRUSTEE_USER_ID="$TRUSTEE_USER_ID"
65+
TRUSTEE_USERNAME="$TRUSTEE_USERNAME"
6566
TRUSTEE_PASSWORD="$TRUSTEE_PASSWORD"
67+
TRUSTEE_DOMAIN_ID="$TRUSTEE_DOMAIN_ID"
6668
TRUST_ID="$TRUST_ID"
6769
CLOUD_PROVIDER_ENABLED="$CLOUD_PROVIDER_ENABLED"
6870
INSECURE_REGISTRY_URL="$INSECURE_REGISTRY_URL"

magnum/drivers/k8s_fedora_atomic_v1/templates/kubeminion.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,9 @@ resources:
444444
$PODS_NETWORK_CIDR: {get_param: pods_network_cidr}
445445
$KUBE_VERSION: {get_param: kube_version}
446446
$TRUSTEE_USER_ID: {get_param: trustee_user_id}
447+
$TRUSTEE_USERNAME: {get_param: trustee_username}
447448
$TRUSTEE_PASSWORD: {get_param: trustee_password}
449+
$TRUSTEE_DOMAIN_ID: {get_param: trustee_domain_id}
448450
$TRUST_ID: {get_param: trust_id}
449451
$AUTH_URL: {get_param: auth_url}
450452
$CLOUD_PROVIDER_ENABLED: {get_param: cloud_provider_enabled}

magnum/drivers/k8s_fedora_coreos_v1/templates/kubeminion.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,9 @@ resources:
469469
$PODS_NETWORK_CIDR: {get_param: pods_network_cidr}
470470
$KUBE_VERSION: {get_param: kube_version}
471471
$TRUSTEE_USER_ID: {get_param: trustee_user_id}
472+
$TRUSTEE_USERNAME: {get_param: trustee_username}
472473
$TRUSTEE_PASSWORD: {get_param: trustee_password}
474+
$TRUSTEE_DOMAIN_ID: {get_param: trustee_domain_id}
473475
$TRUST_ID: {get_param: trust_id}
474476
$AUTH_URL: {get_param: auth_url}
475477
$CLOUD_PROVIDER_ENABLED: {get_param: cloud_provider_enabled}

0 commit comments

Comments
 (0)