-function juju_createcontroller() {
- [ -z "${DEBUG_INSTALL}" ] || DEBUG beginning of function
- if ! juju show-controller $OSM_STACK_NAME &> /dev/null; then
- # Not found created, create the controller
- sudo usermod -a -G lxd ${USER}
- sg lxd -c "juju bootstrap --bootstrap-series=xenial --agent-version=$JUJU_AGENT_VERSION $OSM_VCA_CLOUDNAME $OSM_STACK_NAME"
- fi
- [ $(juju controllers | awk "/^${OSM_STACK_NAME}[\*| ]/{print $1}"|wc -l) -eq 1 ] || FATAL "Juju installation failed"
- juju controller-config features=[k8s-operators]
- [ -z "${DEBUG_INSTALL}" ] || DEBUG end of function
-}
-