From 327768b45c88e32a5620d8d6ca6766de08a8567d Mon Sep 17 00:00:00 2001
From: Eesaan Atluri <atlurie@uab.edu>
Date: Wed, 11 Dec 2024 08:30:02 -0500
Subject: [PATCH] Avoid building base instead use base img as src img

This will save time during image build. If you need base image build it
separtely and use the new image as src for build.
---
 openstack-compute/nodeimage.pkr.hcl | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/openstack-compute/nodeimage.pkr.hcl b/openstack-compute/nodeimage.pkr.hcl
index 0df7158..15941ba 100644
--- a/openstack-compute/nodeimage.pkr.hcl
+++ b/openstack-compute/nodeimage.pkr.hcl
@@ -36,17 +36,6 @@ source "openstack" "image" {
 build {
   sources = ["source.openstack.image"]
 
-  provisioner "ansible" {
-    use_proxy     = false
-    user          = var.ssh_username
-    groups        = ["base"]
-    playbook_file = "./ansible/base.yml"
-    roles_path    = "./ansible/roles"
-    extra_arguments = [
-      "--extra-vars", "root_ssh_key='${var.root_ssh_key}'"
-    ]
-  }
-  
   provisioner "ansible" {
     use_proxy     = false
     user          = var.ssh_username
-- 
GitLab