summaryrefslogtreecommitdiffstats
path: root/packer
diff options
context:
space:
mode:
authorJessica Wagantall <jwagantall@linuxfoundation.org>2023-03-29 12:22:57 -0700
committerJessica Wagantall <jwagantall@linuxfoundation.org>2023-03-29 12:22:57 -0700
commit6b89f0707b6b4470ceffc22b3d69fa29374e864f (patch)
tree0a161889d95295c628fd28fb1de6ace07f8ee43d /packer
parent994ffc5d871aeef4e9d65a8f42f80cf6f02fe602 (diff)
Fix: Update memcached packer template
Update memcached packer template provisioner to pick up the ansible tools installed under the venv. Issue-ID: CIMAN-33 Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org> Change-Id: Ia8234567c6dbf25021c2b51beea43717238655b5
Diffstat (limited to 'packer')
-rw-r--r--packer/templates/memcached.json6
1 files changed, 3 insertions, 3 deletions
diff --git a/packer/templates/memcached.json b/packer/templates/memcached.json
index 6554fb613..c25a564e1 100644
--- a/packer/templates/memcached.json
+++ b/packer/templates/memcached.json
@@ -41,9 +41,7 @@
"provisioners": [
{
"type": "shell",
- "scripts": [
- "common-packer/provision/install-python.sh"
- ],
+ "scripts": ["common-packer/provision/install-python.sh"],
"execute_command": "chmod +x {{ .Path }}; if [ \"$UID\" == \"0\" ]; then {{ .Vars }} '{{ .Path }}'; else {{ .Vars }} sudo -E '{{ .Path }}'; fi"
},
{
@@ -52,6 +50,8 @@
},
{
"type": "ansible",
+ "command": "./common-packer/ansible-playbook.sh",
+ "skip_version_check": true,
"playbook_file": "provision/memcached.yaml",
"ansible_env_vars": [
"ANSIBLE_NOCOWS=1",