Browse Source

import

master
Vladimir Smagin 1 month ago
commit
f9eae95839
3 changed files with 41 additions and 0 deletions
  1. +31
    -0
      hetzner.json
  2. +4
    -0
      readme.md
  3. +6
    -0
      ubuntu_deps.sh

+ 31
- 0
hetzner.json View File

@@ -0,0 +1,31 @@
{
"builders": [
{
"type": "hcloud",
"token": "Swn8RxLJXZuKI8aeiIjs1e6bMitQZYAgLXpQoo0vkr5euYvqhI6FiTnvBdoDJ0FC",
"image": "ubuntu-18.04",
"location": "nbg1",
"server_type": "cx11",
"ssh_keys": [
"szangiev",
"vlad"
],
"snapshot_name": "nginx-php",
"snapshot_labels": {
"test": "label",
"shell": "bash",
"python": "3"
},
"user_data_file": "ubuntu_deps.sh",
"communicator": "ssh",
"ssh_username": "root",
"pause_before_connecting": "1m"
}
],
"provisioners": [
{
"type": "shell",
"script": "ubuntu_deps.sh"
}
]
}

+ 4
- 0
readme.md View File

@@ -0,0 +1,4 @@
# Packer sample file for Hetzner

- Download and install Packer https://www.packer.io/
- Clone this repo and run `packer build ./hetzner.json`

+ 6
- 0
ubuntu_deps.sh View File

@@ -0,0 +1,6 @@
#!/bin/bash

export DEBIAN_FRONTEND noninteractive

apt update
apt install -y nginx php-fpm php-mysql php-pgsql php-mbstring php-curl php-gd php-apcu

Loading…
Cancel
Save