Dear Team,
“provisioners”: [
{
“type”: “shell”,
“execute_command”: “echo ‘’ | sudo -S -u root {{ .Vars }} bash ‘{{ .Path }}’”,
“script”: “./packer/scripts/install.sh --cl_name hostname”,
“environment_vars”: [
“DB_HOME={{ user DB_home
}}”,"
]
},
]
Is there any way that we can pass parameter to scripts like above. Without passing parameters, above script runs successfull.