mirror of https://github.com/hashicorp/packer
parent
5e81c6f44e
commit
7466c4fdca
@ -0,0 +1,66 @@
|
||||
{
|
||||
"builders": [
|
||||
{
|
||||
"name": "chocolate",
|
||||
"type": "file",
|
||||
"content": "chocolate",
|
||||
"target": "chocolate.txt"
|
||||
},
|
||||
{
|
||||
"name": "vanilla",
|
||||
"type": "non-existing",
|
||||
"content": "vanilla",
|
||||
"target": "vanilla.txt"
|
||||
}
|
||||
],
|
||||
"post-processors": [
|
||||
[
|
||||
{
|
||||
"name": "apple",
|
||||
"type": "shell-local",
|
||||
"inline": [
|
||||
"echo apple > apple.txt"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "peach",
|
||||
"type": "shell-local",
|
||||
"inline": [
|
||||
"echo peach > peach.txt"
|
||||
]
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"name": "pear",
|
||||
"type": "shell-local",
|
||||
"inline": [
|
||||
"echo pear > pear.txt"
|
||||
]
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"only": [
|
||||
"vanilla"
|
||||
],
|
||||
"name": "tomato",
|
||||
"type": "shell-local",
|
||||
"inline": [
|
||||
"echo tomato > tomato.txt"
|
||||
]
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"only": [
|
||||
"chocolate"
|
||||
],
|
||||
"type": "shell-local",
|
||||
"inline": [
|
||||
"echo unnamed > unnamed.txt"
|
||||
]
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
Loading…
Reference in new issue