X-Git-Url: https://gerrit.nordix.org/gitweb?p=infra%2Fstack%2Fkubernetes.git;a=blobdiff_plain;f=install.sh;h=e8614145bcc4b40657b67fe05b323ff5bbc61d68;hp=9d8a8b8ecc10fd960bc4c392ca21c54875c97c0d;hb=refs%2Fheads%2Fpoc;hpb=f529a266c590c4a5624be8c5df865d6e5b6e1640 diff --git a/install.sh b/install.sh index 9d8a8b8..e861414 100755 --- a/install.sh +++ b/install.sh @@ -32,4 +32,33 @@ ansible-playbook "${ENGINE_ANSIBLE_PARAMS[@]}" \ engine/stack/kubernetes/playbooks/bootstrap-swconfig.yaml echo "-------------------------------------------------------------------------" +#------------------------------------------------------------------------------- +# Provision nodes using the selected provisioning tool +#------------------------------------------------------------------------------- +# NOTE: shellcheck SC1090 is disabled since provisioner becomes available during runtime +# shellcheck disable=SC1090 +source "${ENGINE_PATH}/engine/provisioner/provision.sh" + +#------------------------------------------------------------------------------- +# 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: