From 0249c062b66c5b70be41b46cc72c277906018699 Mon Sep 17 00:00:00 2001
From: Eesaan Atluri <atlurie@uab.edu>
Date: Thu, 9 Jan 2025 14:01:30 -0500
Subject: [PATCH] Change the order provisioners

---
 openstack-ood/nodeimage.pkr.hcl | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/openstack-ood/nodeimage.pkr.hcl b/openstack-ood/nodeimage.pkr.hcl
index c73c534..ccacaea 100644
--- a/openstack-ood/nodeimage.pkr.hcl
+++ b/openstack-ood/nodeimage.pkr.hcl
@@ -36,13 +36,6 @@ source "openstack" "image" {
 build {
   sources = ["source.openstack.image"]
 
-  provisioner "shell" {
-    inline = [
-      "sudo yum install -y libselinux-python3 python3 python3-pip tmux vim git bash-completion curl wget unzip",
-      "sudo python3 -m pip install --upgrade pip",
-      "sudo pip3 install s3cmd==2.3.0 ansible==4.10.0 python-openstackclient==5.8.0"
-    ]
-  }
 
   provisioner "ansible" {
     use_proxy     = false
@@ -62,4 +55,12 @@ build {
     ansible_env_vars = ["ANSIBLE_HOST_KEY_CHECKING=False"]
     playbook_file    = "./CRI_XCBC/ood-packer.yaml"
   }
+
+  provisioner "shell" {
+    inline = [
+      "sudo yum install -y libselinux-python3 python3 python3-pip tmux vim git bash-completion curl wget unzip",
+      "sudo python3 -m pip install --upgrade pip",
+      "sudo pip3 install s3cmd==2.3.0 ansible==4.10.0 python-openstackclient==5.8.0"
+    ]
+  }
 }
-- 
GitLab