File tree Expand file tree Collapse file tree 5 files changed +13
-9
lines changed
k8s_fedora_atomic_v1/templates
k8s_fedora_coreos_v1/templates Expand file tree Collapse file tree 5 files changed +13
-9
lines changed Original file line number Diff line number Diff line change 2
2
3
3
. /etc/sysconfig/heat-params
4
4
5
- if [ " $REGISTRY_ENABLED " = " True " ]; then
5
+ if [ " $( echo $ REGISTRY_ENABLED | tr ' [:upper:] ' ' [:lower:] ' ) " = " true " ]; then
6
6
ssh_cmd=" ssh -F /srv/magnum/.ssh/config root@localhost"
7
7
$ssh_cmd cat > /etc/sysconfig/registry-config.yml << EOF
8
8
version: 0.1
Original file line number Diff line number Diff line change 2
2
3
3
. /etc/sysconfig/heat-params
4
4
5
- if [ " $REGISTRY_ENABLED " = " False" ]; then
6
- exit 0
7
- fi
8
-
9
5
ssh_cmd=" ssh -F /srv/magnum/.ssh/config root@localhost"
10
6
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
Original file line number Diff line number Diff line change @@ -62,7 +62,9 @@ FLANNEL_NETWORK_CIDR="$FLANNEL_NETWORK_CIDR"
62
62
PODS_NETWORK_CIDR="$PODS_NETWORK_CIDR "
63
63
KUBE_VERSION="$KUBE_VERSION "
64
64
TRUSTEE_USER_ID="$TRUSTEE_USER_ID "
65
+ TRUSTEE_USERNAME="$TRUSTEE_USERNAME "
65
66
TRUSTEE_PASSWORD="$TRUSTEE_PASSWORD "
67
+ TRUSTEE_DOMAIN_ID="$TRUSTEE_DOMAIN_ID "
66
68
TRUST_ID="$TRUST_ID "
67
69
CLOUD_PROVIDER_ENABLED="$CLOUD_PROVIDER_ENABLED "
68
70
INSECURE_REGISTRY_URL="$INSECURE_REGISTRY_URL "
Original file line number Diff line number Diff line change @@ -444,7 +444,9 @@ resources:
444
444
$PODS_NETWORK_CIDR : {get_param: pods_network_cidr}
445
445
$KUBE_VERSION : {get_param: kube_version}
446
446
$TRUSTEE_USER_ID : {get_param: trustee_user_id}
447
+ $TRUSTEE_USERNAME : {get_param: trustee_username}
447
448
$TRUSTEE_PASSWORD : {get_param: trustee_password}
449
+ $TRUSTEE_DOMAIN_ID : {get_param: trustee_domain_id}
448
450
$TRUST_ID : {get_param: trust_id}
449
451
$AUTH_URL : {get_param: auth_url}
450
452
$CLOUD_PROVIDER_ENABLED : {get_param: cloud_provider_enabled}
Original file line number Diff line number Diff line change @@ -469,7 +469,9 @@ resources:
469
469
$PODS_NETWORK_CIDR : {get_param: pods_network_cidr}
470
470
$KUBE_VERSION : {get_param: kube_version}
471
471
$TRUSTEE_USER_ID : {get_param: trustee_user_id}
472
+ $TRUSTEE_USERNAME : {get_param: trustee_username}
472
473
$TRUSTEE_PASSWORD : {get_param: trustee_password}
474
+ $TRUSTEE_DOMAIN_ID : {get_param: trustee_domain_id}
473
475
$TRUST_ID : {get_param: trust_id}
474
476
$AUTH_URL : {get_param: auth_url}
475
477
$CLOUD_PROVIDER_ENABLED : {get_param: cloud_provider_enabled}
You can’t perform that action at this time.
0 commit comments