API_SERVER="$(echo $hostport | sed -e 's,:.*,,g')"
fi
# Configure VCA Integrator
- juju config vca \
- k8s-cloud=microk8s \
- lxd-cloud=lxd-cloud:lxd-cloud \
- controllers="`cat ~/.local/share/juju/controllers.yaml`" \
- accounts="`cat ~/.local/share/juju/accounts.yaml`" \
- public-key="`cat ~/.local/share/juju/ssh/juju_id_rsa.pub`"
+ if [ ! -v INSTALL_NOLXD ]; then
+ juju config vca \
+ k8s-cloud=microk8s \
+ lxd-cloud=lxd-cloud:lxd-cloud \
+ controllers="`cat ~/.local/share/juju/controllers.yaml`" \
+ accounts="`cat ~/.local/share/juju/accounts.yaml`" \
+ public-key="`cat ~/.local/share/juju/ssh/juju_id_rsa.pub`"
+ else
+ juju config vca \
+ k8s-cloud=microk8s \
+ controllers="`cat ~/.local/share/juju/controllers.yaml`" \
+ accounts="`cat ~/.local/share/juju/accounts.yaml`" \
+ public-key="`cat ~/.local/share/juju/ssh/juju_id_rsa.pub`"
+ fi
# Expose OSM services
juju config -m $MODEL_NAME nbi external-hostname=nbi.${API_SERVER}.nip.io
juju config -m $MODEL_NAME ng-ui external-hostname=ui.${API_SERVER}.nip.io