Add FreeBSD example for azure-chroot.

This commit is contained in:
Brad Ackerman 2020-08-08 18:06:05 -07:00
parent 133c8a68b0
commit 67479f0b23
No known key found for this signature in database
GPG Key ID: 5C5E7A6B14E3D827
1 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,27 @@
{
"variables": {},
"builders": [
{
"type": "azure-chroot",
"source": "thefreebsdfoundation:freebsd-12_1:12_1-release:latest",
"image_resource_id": "/subscriptions/{{vm `subscription_id`}}/resourceGroups/{{vm `resource_group`}}/providers/Microsoft.Compute/images/freebsd-{{timestamp}}",
"os_disk_size_gb": 64,
"os_disk_storage_account_type": "Premium_LRS",
"mount_partition": 2,
"chroot_mounts": [
["devfs", "devfs", "/dev"],
["procfs", "procfs", "/proc"]
]
}
],
"provisioners": [
{
"inline": [
"env ASSUME_ALWAYS_YES=YES pkg bootstrap",
"/usr/local/sbin/waagent -force -deprovision+user && export HISTSIZE=0 && sync"
],
"inline_shebang": "/bin/sh -x",
"type": "shell"
}
]
}