2021-10-03 16:32:42 +00:00
|
|
|
{
|
|
|
|
"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",
|
2021-10-04 17:29:59 +00:00
|
|
|
"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"
|
2021-10-03 16:32:42 +00:00
|
|
|
},
|
2021-10-04 21:30:46 +00:00
|
|
|
{
|
|
|
|
"type": "file",
|
|
|
|
"source": "files/sshd_config",
|
|
|
|
"destination": "/tmp/sshd_config"
|
|
|
|
},
|
2021-10-03 16:32:42 +00:00
|
|
|
{
|
|
|
|
"type": "shell",
|
|
|
|
"script": "scripts/nginx.sh"
|
|
|
|
}
|
2021-10-04 17:29:59 +00:00
|
|
|
],
|
|
|
|
"post-processors": [
|
|
|
|
{
|
|
|
|
"type": "manifest"
|
|
|
|
}
|
2021-10-03 16:32:42 +00:00
|
|
|
]
|
|
|
|
}
|