{ "builders": [ { "type": "digitalocean", "image": "ubuntu-18-04-x64", "region": "nyc1", "size": "s-1vcpu-1gb", "snapshot_name": "packer-nginx-{{timestamp}}", "ssh_username": "root" } ], "provisioners": [ { "type": "shell", "script": "scripts/dependencies.sh" }, { "type": "file", "source": "tmp/nginx.conf", "destination": "/tmp/nginx.conf" }, { "type": "file", "source": "tmp/do.ini", "destination": "/tmp/do.ini" }, { "type": "file", "source": "files/certbot-renew.timer", "destination": "/tmp/certbot-renew.timer" }, { "type": "file", "source": "files/certbot-renew.service", "destination": "/tmp/certbot-renew.service" }, { "type": "shell", "script": "scripts/nginx.sh" } ], "post-processors": [ { "type": "manifest" } ] }