summaryrefslogtreecommitdiffstats
path: root/kud/hosting_providers
diff options
context:
space:
mode:
authorKonrad Bańka <k.banka@samsung.com>2019-06-24 11:37:55 +0200
committerKonrad Bańka <k.banka@samsung.com>2019-06-24 14:57:02 +0200
commit1b17eca7ab6c6fe1d14cc30c16354785b4ed6cb4 (patch)
tree5c4e7aec4fb39044e0ea01a079c643f6629955ec /kud/hosting_providers
parent46c5d310b24563ba9de00d0583e76742efc2cc0d (diff)
Correct installer.sh to enable testing during deployment
Issue-ID: MULTICLOUD-686 Signed-off-by: Konrad Bańka <k.banka@samsung.com> Change-Id: I02724ca72a217cbb5be8cfee5edf136f4bf8ce2c
Diffstat (limited to 'kud/hosting_providers')
-rwxr-xr-xkud/hosting_providers/vagrant/installer.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/kud/hosting_providers/vagrant/installer.sh b/kud/hosting_providers/vagrant/installer.sh
index f93839d2..c9027150 100755
--- a/kud/hosting_providers/vagrant/installer.sh
+++ b/kud/hosting_providers/vagrant/installer.sh
@@ -92,7 +92,7 @@ function _install_docker {
function _set_environment_file {
# By default ovn central interface is the first active network interface on localhost. If other wanted, need to export this variable in aio.sh or Vagrant file.
- OVN_CENTRAL_INTERFACE=${OVN_CENTRAL_INTERFACE:-$(ip addr show | awk '/inet.*brd/{print $NF; exit}')}
+ OVN_CENTRAL_INTERFACE="${OVN_CENTRAL_INTERFACE:-$(ip addr show | awk '/inet.*brd/{print $NF; exit}')}"
echo "export OVN_CENTRAL_INTERFACE=${OVN_CENTRAL_INTERFACE}" | sudo tee --append /etc/environment
echo "export OVN_CENTRAL_ADDRESS=$(get_ovn_central_address)" | sudo tee --append /etc/environment
echo "export KUBE_CONFIG_DIR=/opt/kubeconfig" | sudo tee --append /etc/environment
@@ -144,6 +144,7 @@ function install_k8s {
# install_addons() - Install Kubenertes AddOns
function install_addons {
+ source /etc/environment
echo "Installing Kubernetes AddOns"
_install_ansible
sudo ansible-galaxy install $verbose -r $kud_infra_folder/galaxy-requirements.yml --ignore-errors
@@ -169,7 +170,6 @@ function install_plugin {
sudo mkdir -p /opt/{kubeconfig,consul/config}
sudo cp $HOME/.kube/config /opt/kubeconfig/kud
- source /etc/environment
pushd $kud_folder/../../../deployments
sudo ./build.sh
@@ -242,8 +242,8 @@ if [ -f $kud_folder/sources.list ]; then
fi
sudo apt-get update
install_k8s
-install_addons
_set_environment_file
+install_addons
if ${KUD_PLUGIN_ENABLED:-false}; then
install_plugin
fi