Enable offline deployment
[infra/stack/kubernetes.git] / install.sh
index 79e30c849b6f4a2ac4bdd35611fc026fa22a110d..e8614145bcc4b40657b67fe05b323ff5bbc61d68 100755 (executable)
@@ -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
 #-------------------------------------------------------------------------------