https://github.com/mizzy/packer-provisioner-command
Packer Provisioner to execute commands directly
https://github.com/mizzy/packer-provisioner-command
Last synced: about 1 year ago
JSON representation
Packer Provisioner to execute commands directly
- Host: GitHub
- URL: https://github.com/mizzy/packer-provisioner-command
- Owner: mizzy
- License: mpl-2.0
- Created: 2014-06-05T06:58:28.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-09-17T02:03:11.000Z (almost 12 years ago)
- Last Synced: 2025-03-26T09:44:56.712Z (about 1 year ago)
- Language: Go
- Size: 2.62 MB
- Stars: 8
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Packer Command Provisioner
[Shell Provisioner](http://www.packer.io/docs/provisioners/shell.html) makes a script file locally and send the file via SCP before executing commands. But this Command Provisioner runs command directly via SSH.So you don't need scp command in the target host.
----
## Install
```
$ go build -o $GOPATH/bin/provisioner-command plugin/provisioner-command/main.go
```
----
## Basic Example
```json
{
"provisioners": [
{
"type": "command",
"command": "echo foo"
}
]
}
```
You can also specify multiple commands by `commands` with an array of commands.
```json
{
"provisioners": [
{
"type": "command",
"commands": [
"echo foo",
"echo bar",
"echo baz"
]
}
]
}
```