-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserver.json
42 lines (37 loc) · 1.05 KB
/
server.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{
"variables": {
"client_id": "{{env `ARM_CLIENT_ID`}}",
"client_secret": "{{env `ARM_CLIENT_SECRET`}}",
"subscription_id": "{{env `ARM_SUBSCRIPTION_ID`}}",
"tenant_id": "{{env `ARM_TENANT_ID`}}",
"resource_group": "azure-iaas-webserver-rg",
"image_name": "packer-image",
"location": "West Europe",
"vm_size": "Standard_D2_v4"
},
"builders": [{
"type": "azure-arm",
"client_id": "{{user `client_id`}}",
"client_secret": "{{user `client_secret`}}",
"subscription_id": "{{user `subscription_id`}}",
"os_type": "Linux",
"image_publisher": "Canonical",
"image_offer": "UbuntuServer",
"image_sku": "18.04-LTS",
"managed_image_resource_group_name": "{{user `resource_group`}}",
"managed_image_name": "{{user `image_name`}}",
"location": "{{user `location`}}",
"vm_size": "{{user `vm_size`}}",
"azure_tags": {
"Project": "iaas-webserver"
}
}],
"provisioners": [{
"inline": [
"echo 'Hello, World!' > index.html",
"nohup busybox httpd -f -p 80 &"
],
"inline_shebang": "/bin/sh -x",
"type": "shell"
}]
}