| 1 | Caddy Packer Template for DigitalOcean Image |
| 2 | ============================================ |
| 3 | |
| 4 | This helps build the DigitalOcean droplet image for their marketplace. |
| 5 | |
| 6 | ## Requirements |
| 7 | |
| 8 | - Packer 1.6 or newer |
| 9 | - Ansible |
| 10 | |
| 11 | To run the script: |
| 12 | |
| 13 | ```bash |
| 14 | packer init |
| 15 | DIGITALOCEAN_TOKEN=foobar packer build do-marketplace-image.pkr.hcl |
| 16 | ``` |
| 17 | |
| 18 | Be sure to replace `foobar` with your DigitalOcean API key. |
| 19 | |
| 20 | The scripts `90-cleanup.sh` and `99-img_check.sh` are from [DO's own repo](https://github.com/digitalocean/marketplace-partners/tree/master/scripts). |
| 21 | |
| 22 | The droplet is hardened with these roles: |
| 23 | |
| 24 | - [dev-sec.os-hardening](https://github.com/dev-sec/ansible-os-hardening) |
| 25 | - [dev-sec.ssh-hardening](https://github.com/dev-sec/ansible-ssh-hardening) |