diff options
author | Mike Elliott <mike.elliott@amdocs.com> | 2017-09-21 20:21:00 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-09-21 20:21:00 +0000 |
commit | 3e130463a0062cdb7aef9717c46ee5bc9958a32e (patch) | |
tree | 2a2c242eeeacd9e32c965312709f7dd29709b93a /kubernetes/config/docker/init/config-init.sh | |
parent | 46f145552e1554dc909c49d19d344da8ae7f6503 (diff) | |
parent | be779fa2d7f44b511bde929582b6340c650d24cc (diff) |
Merge "Add Consul support to 'OneClick' deployment."
Diffstat (limited to 'kubernetes/config/docker/init/config-init.sh')
-rwxr-xr-x | kubernetes/config/docker/init/config-init.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kubernetes/config/docker/init/config-init.sh b/kubernetes/config/docker/init/config-init.sh index 9217d2cd68..29167bf844 100755 --- a/kubernetes/config/docker/init/config-init.sh +++ b/kubernetes/config/docker/init/config-init.sh @@ -51,6 +51,9 @@ mkdir -p /config-init/$NAMESPACE/aai/data-router/logs/ mkdir -p /config-init/$NAMESPACE/mso/mariadb/data mkdir -p /config-init/$NAMESPACE/clamp/mariadb/data mkdir -p /config-init/$NAMESPACE/log/elasticsearch/data +mkdir -p /config-init/$NAMESPACE/consul/consul-agent-config/bin +mkdir -p /config-init/$NAMESPACE/consul/consul-agent-config/scripts +mkdir -p /config-init/$NAMESPACE/consul/consul-server-config echo "Setting permissions to container writeable directories" chmod -R 777 /config-init/$NAMESPACE/sdc/logs/ @@ -73,6 +76,7 @@ echo "Substituting configuration parameters" # replace the default 'onap' namespace qualification of K8s hostnames within the config files find /config-init/$NAMESPACE/ -type f -exec sed -i -e "s/\.onap-/\.$NAMESPACE-/g" {} \; +find /config-init/$NAMESPACE/ -type f -exec sed -i -e "s/kubectl -n onap/kubectl -n $NAMESPACE/g" {} \; # set the ubuntu 14 image find /config-init/$NAMESPACE/ -type f -exec sed -i -e "s/UBUNTU_14_IMAGE_NAME_HERE/$OPENSTACK_UBUNTU_14_IMAGE/g" {} \; # set the openstack public network uuid |