Packer shell Provisioner
Jump to navigation
Jump to search
External
Internal
Overview
shell Provisioner Types
inline
{
...
"provisioners": [
{
"type": "shell",
"inline": ["sudo yum install ansible"]
},
...
}
script
{
...
"provisioners": [
{
"type": "shell",
"only": [
"my-builder"
],
"environment_vars": [
"SOMETHING={{ user `something` }}"
],
"execute_command": "echo '' | {{ .Vars }} sudo -S -E -u root '{{ .Path }}'",
"script": "config/something.sh"
},
...
}