-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathexampleSIG.json
29 lines (28 loc) · 1.03 KB
/
exampleSIG.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
{
"variables": {
"client_id": "{{env `ARM_CLIENT_ID`}}",
"client_secret": "{{env `ARM_CLIENT_SECRET`}}",
"subscription_id": "{{env `ARM_SUBSCRIPTION_ID`}}",
"resource_group": "{{env `ARM_RESOURCE_GROUP`}}",
"sourceDiskResID": "{{env `SOURCE_DISK_RESID`}}"
},
"builders": [{
"type": "azure-chroot",
"command_wrapper": "sudo {{.Command}}",
"client_id": "{{user `client_id`}}",
"client_secret": "{{user `client_secret`}}",
"subscription_id": "{{user `subscription_id`}}",
"image_resource_id": "/subscriptions/{{user `subscription_id`}}/resourceGroups/{{user `resource_group`}}/providers/Microsoft.Compute/images/MyDebianOSImage-{{timestamp}}",
"source": "{{user `sourceDiskResID`}}"
}],
"provisioners": [{
"inline": [
"apt-get update",
"apt-get upgrade -y",
"# if this is a specialized image remove cloud-init",
"sudo apt-get remove cloud-init -y"
],
"inline_shebang": "/bin/sh -x",
"type": "shell"
}]
}