2021-01-06 17:46:47 +00:00
|
|
|
{
|
|
|
|
"variables": {
|
|
|
|
"wallabag_admin_password": "{{env `WALLABAG_PASSWORD`}}"
|
|
|
|
},
|
|
|
|
"sensitive-variables": ["wallabag_admin_password"],
|
|
|
|
"builders": [
|
|
|
|
{
|
|
|
|
"type": "digitalocean",
|
|
|
|
"image": "ubuntu-18-04-x64",
|
|
|
|
"region": "nyc1",
|
|
|
|
"size": "s-1vcpu-1gb",
|
|
|
|
"snapshot_name": "packer-wallabag-{{timestamp}}",
|
|
|
|
"ssh_username": "root"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"provisioners": [
|
|
|
|
{
|
|
|
|
"type": "shell",
|
|
|
|
"script": "scripts/dependencies.sh"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "file",
|
|
|
|
"source": "files/wallabag-params.yml",
|
|
|
|
"destination": "/tmp/wallabag-params.yml"
|
|
|
|
},
|
2021-01-06 19:07:30 +00:00
|
|
|
{
|
|
|
|
"type": "file",
|
|
|
|
"source": "files/entries.json",
|
|
|
|
"destination": "/tmp/entries.json"
|
|
|
|
},
|
2021-01-07 15:48:14 +00:00
|
|
|
{
|
|
|
|
"type": "file",
|
|
|
|
"source": "files/clients.sql",
|
|
|
|
"destination": "/tmp/clients.sql"
|
|
|
|
},
|
2021-01-06 17:46:47 +00:00
|
|
|
{
|
|
|
|
"type": "shell",
|
2022-03-08 16:57:29 +00:00
|
|
|
"environment_vars": ["ADMIN_PASSWORD={{user `wallabag_admin_password`}}"],
|
2021-01-06 17:46:47 +00:00
|
|
|
"script": "scripts/wallabag.sh"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "file",
|
|
|
|
"source": "files/wallabag-nginx.conf",
|
|
|
|
"destination": "/tmp/wallabag-nginx.conf"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "shell",
|
|
|
|
"script": "scripts/nginx.sh"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"post-processors": [
|
|
|
|
{
|
|
|
|
"type": "manifest"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|