Skip to content

Instantly share code, notes, and snippets.

@micgo
Created July 12, 2013 21:47
Show Gist options
  • Save micgo/5988117 to your computer and use it in GitHub Desktop.
Save micgo/5988117 to your computer and use it in GitHub Desktop.
Packer provisioner overrides
"provisioners": [
{
"type": "shell",
"override": {
"virtualbox": {
"execute_command": "echo 'vagrant'|sudo -S sh '{{.Path}}'",
"scripts": [
"scripts/update.sh",
"scripts/vagrant.sh",
"scripts/sshd.sh",
"scripts/networking.sh",
"scripts/sudoers.sh",
"scripts/cleanup.sh",
"scripts/minimize.sh"
]
},
"vmware": {
"execute_command": "echo 'vagrant'|sudo -S sh '{{.Path}}'",
"scripts": [
"scripts/update.sh",
"scripts/vagrant.sh",
"scripts/sshd.sh",
"scripts/networking.sh",
"scripts/sudoers.sh",
"scripts/cleanup.sh",
"scripts/vmware_tools.sh"
]
}
}
}
],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment