Add lxd-cloud and lxd-credential options in installer (-l and -L)
This commit allows the installer to use an external LXD cluster instead of a local one.
Added two options:
-l: This points to a file containing the lxd-cloud information for juju
-L: This points to a file containing the lxd-cloud credential information
This url contains more info about the format of those files: https://juju.is/docs/lxd-cloud-advanced
Change-Id: Ia243f48e3e815d9ab267db3085ac842ffc691721
Signed-off-by: David Garcia <david.garcia@canonical.com>
diff --git a/installers/install_osm.sh b/installers/install_osm.sh
index 2e4be51..350e0e8 100755
--- a/installers/install_osm.sh
+++ b/installers/install_osm.sh
@@ -45,7 +45,9 @@
echo -e " -D <devops path> use local devops installation path"
echo -e " -w <work dir> Location to store runtime installation"
echo -e " -t <docker tag> specify osm docker tag (default is latest)"
- echo -e " --nolxd: do not install and configure LXD, allowing unattended installations (assumes LXD is already installed and configured)"
+ echo -e " -l: LXD cloud yaml file"
+ echo -e " -L: LXD credentials yaml file"
+ echo -e " --nolxd: do not install and configure LXD, allowing unattended installations (assumes LXD is already installed and confifured)"
echo -e " --nodocker: do not install docker, do not initialize a swarm (assumes docker is already installed and a swarm has been initialized)"
echo -e " --nojuju: do not juju, assumes already installed"
echo -e " --nodockerbuild:do not build docker images (use existing locally cached images)"
@@ -106,7 +108,7 @@
fi
}
-while getopts ":b:r:c:k:u:R:l:p:D:o:m:H:S:s:w:t:U:P:A:-: hy" o; do
+while getopts ":b:r:c:k:u:R:l:L:p:D:o:m:H:S:s:w:t:U:P:A:-: hy" o; do
case "${o}" in
r)
REPOSITORY="${OPTARG}"