X-Git-Url: https://gerrit.nordix.org/gitweb?p=infra%2Fstack%2Fkubernetes.git;a=blobdiff_plain;f=install.sh;h=e8614145bcc4b40657b67fe05b323ff5bbc61d68;hp=5156866b78debcba8d477157dfcd85f67b922b28;hb=refs%2Fheads%2Fpoc;hpb=f1f8833b3395057210fbb02e8465b4c3298051d2 diff --git a/install.sh b/install.sh index 5156866..e861414 100755 --- a/install.sh +++ b/install.sh @@ -39,5 +39,26 @@ echo "-------------------------------------------------------------------------" # shellcheck disable=SC1090 source "${ENGINE_PATH}/engine/provisioner/provision.sh" -exit 0 +#------------------------------------------------------------------------------- +# Provision local apt repo, docker registry, and ntp server services +#------------------------------------------------------------------------------- +# shellcheck source=engine/library/engine-services.sh +source "${ENGINE_PATH}/engine/library/engine-services.sh" + +#------------------------------------------------------------------------------- +# Prepare artifacts for offline deployment +#------------------------------------------------------------------------------- +cd "${ENGINE_PATH}" +ansible-playbook "${ENGINE_ANSIBLE_PARAMS[@]}" \ + -i "${ENGINE_PATH}/engine/inventory/inventory.ini" \ + engine/stack/kubernetes/playbooks/prepare-artifacts.yaml +echo "-------------------------------------------------------------------------" + +#------------------------------------------------------------------------------- +# Install the stack using the selected installer +#------------------------------------------------------------------------------- +# NOTE: shellcheck SC1090 is disabled since installer becomes available during runtime +# shellcheck disable=SC1090 +source "${ENGINE_PATH}/engine/installer/install.sh" + # vim: set ts=2 sw=2 expandtab: