Feature 11006: make juju installation optional in community installer
[osm/devops.git] / installers / install_juju.sh
index 90632c3..7be5f99 100755 (executable)
@@ -29,7 +29,6 @@ function usage(){
     echo -e "     -K:             Specifies the name of the controller to use - The controller must be already bootstrapped"
     echo -e "     --debug:        debug mode"
     echo -e "     --cachelxdimages:  cache local lxd images, create cronjob for that cache (will make installation longer)"
-    echo -e "     --nojuju:       do not juju, assumes already installed"
     [ -z "${DEBUG_INSTALL}" ] || DEBUG end of function
 }
 
@@ -40,13 +39,13 @@ function update_juju_images(){
     [ -z "${DEBUG_INSTALL}" ] || DEBUG end of function
 }
 
-function install_juju() {
+function install_juju_client() {
     [ -z "${DEBUG_INSTALL}" ] || DEBUG beginning of function
-    echo "Installing juju"
+    echo "Installing juju client"
     sudo snap install juju --classic --channel=$JUJU_VERSION/stable
     [[ ":$PATH": != *":/snap/bin:"* ]] && PATH="/snap/bin:${PATH}"
     [ -n "$INSTALL_CACHELXDIMAGES" ] && update_juju_images
-    echo "Finished installation of juju"
+    echo "Finished installation of juju client"
     [ -z "${DEBUG_INSTALL}" ] || DEBUG end of function
     return 0
 }
@@ -156,7 +155,7 @@ function juju_createproxy() {
 DEBUG_INSTALL=""
 INSTALL_CACHELXDIMAGES=""
 INSTALL_NOJUJU=""
-JUJU_AGENT_VERSION=2.9.34
+JUJU_AGENT_VERSION=2.9.43
 JUJU_VERSION=2.9
 OSM_BEHIND_PROXY=""
 OSM_DEVOPS=
@@ -195,7 +194,6 @@ while getopts ":D:i:s:H:l:L:K:-: hP" o; do
         -)
             [ "${OPTARG}" == "help" ] && usage && exit 0
             [ "${OPTARG}" == "debug" ] && DEBUG_INSTALL="--debug" && continue
-            [ "${OPTARG}" == "nojuju" ] && INSTALL_NOJUJU="y" && continue
             [ "${OPTARG}" == "cachelxdimages" ] && INSTALL_CACHELXDIMAGES="y" && continue
             echo -e "Invalid option: '--$OPTARG'\n" >&2
             usage && exit 1
@@ -226,7 +224,7 @@ echo "OSM_BEHIND_PROXY=$OSM_BEHIND_PROXY"
 echo "OSM_DEVOPS=$OSM_DEVOPS"
 echo "HOME=$HOME"
 
-[ -z "$INSTALL_NOJUJU" ] && install_juju
+[ -z "$INSTALL_NOJUJU" ] && install_juju_client
 track juju juju_client_ok
 
 if [ -z "$OSM_VCA_HOST" ]; then