Add support for deploying to Equinix Metal bare-metal servers
[kuberef.git] / deploy.sh
index b45825c..88e746b 100755 (executable)
--- a/deploy.sh
+++ b/deploy.sh
@@ -52,13 +52,12 @@ copy_files_jump
 
 # ---------------------------------------------------------------------
 # Provision remote hosts
-# ---------------------------------------------------------------------
-provision_hosts
-
-# ---------------------------------------------------------------------
 # Setup networking (Adapt according to your network setup)
 # ---------------------------------------------------------------------
-setup_network
+if [[ "$DEPLOYMENT" == "full" ]]; then
+    provision_hosts
+    setup_network
+fi
 
 # ---------------------------------------------------------------------
 # Provision k8s cluster (currently BMRA)