X-Git-Url: https://gerrit.nordix.org/gitweb?p=infra%2Fstack%2Fkubernetes.git;a=blobdiff_plain;f=install.sh;h=e8614145bcc4b40657b67fe05b323ff5bbc61d68;hp=79e30c849b6f4a2ac4bdd35611fc026fa22a110d;hb=223f9beb41172dfb37af6e77a94e808f926e0fc9;hpb=17c430a59810a53b365b566fb905292ade8a005e diff --git a/install.sh b/install.sh index 79e30c8..e861414 100755 --- a/install.sh +++ b/install.sh @@ -39,6 +39,21 @@ echo "-------------------------------------------------------------------------" # 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 #-------------------------------------------------------------------------------