[WIP] Begin adding packer config for centralized ssl termination

This commit is contained in:
Jeremy Dormitzer 2021-10-03 12:32:42 -04:00
parent 35ebe35eb2
commit e3feb6d3f7
3 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,26 @@
{
"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": "files/nginx.conf"
},
{
"type": "shell",
"script": "scripts/nginx.sh"
}
]
}

View File

@ -0,0 +1,6 @@
#!/usr/bin/env bash
set -xe
sudo apt-get update
sudo apt-get install -y nginx

View File

@ -0,0 +1,5 @@
#!/usr/bin/env bash
set -xe
sudo systemctl enable nginx