https://github.com/localghost/ppp
Pre-processor for Packer templates
https://github.com/localghost/ppp
packer
Last synced: about 2 months ago
JSON representation
Pre-processor for Packer templates
- Host: GitHub
- URL: https://github.com/localghost/ppp
- Owner: localghost
- License: apache-2.0
- Created: 2017-01-12T20:30:24.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-24T21:10:08.000Z (over 8 years ago)
- Last Synced: 2025-02-07T21:37:15.113Z (3 months ago)
- Topics: packer
- Language: Go
- Homepage:
- Size: 29.3 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Packer Pre-Processor
## Use case
Filename `ubuntu-common.json`
```
{
"iso_url": "http://releases.ubuntu.com/16.04/ubuntu-16.04.1-server-amd64.iso",
"iso_checksum": "d2d939ca0e65816790375f6826e4032f",
"iso_checksum_type": "md5",
"boot_command": [
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"/install/vmlinuz ",
"initrd=/install/initrd.gz ",
"net.ifnames=0 ",
"auto-install/enable=true ",
"debconf/priority=critical ",
"preseed/url=http://{{.HTTPIP}}:{{.HTTPPort}}/ubuntu-16.04/preseed.cfg ",
""
]
}
```Filename `ubuntu-virtualbox.json`
```
{
"builders": [{
"type": "virtualbox-iso",
"ppp-inline": "ubuntu-common.json"
...
}]
}
```Filename `ubuntu-vmware.json`
```
{
"builders": [{
"type": "vmware-iso",
"ppp-inline": "ubuntu-common.json"
...
}]
}
```Command:
```
ppp ubuntu-virtualbox.json | packer build -
ppp ubuntu-vmware.json | packer build -
```## Status
[](https://travis-ci.org/localghost/ppp)
[](https://goreportcard.com/report/github.com/localghost/ppp)