github.com/kikitux/packer@v0.10.1-0.20160322154024-6237df566f9f/examples/azure/centos.json (about)

     1  {
     2    "variables": {
     3      "client_id": "{{env `AZURE_CLIENT_ID`}}",
     4      "client_secret": "{{env `AZURE_CLIENT_SECRET`}}",
     5      "resource_group": "{{env `AZURE_RESOURCE_GROUP`}}",
     6      "storage_account": "{{env `AZURE_STORAGE_ACCOUNT`}}",
     7      "subscription_id": "{{env `AZURE_SUBSCRIPTION_ID`}}",
     8      "tenant_id": "{{env `AZURE_TENANT_ID`}}",
     9      "ssh_user": "centos",
    10      "ssh_pass": null
    11    },
    12    "builders": [{
    13      "type": "azure-arm",
    14  
    15      "client_id": "{{user `cid`}}",
    16      "client_secret": "{{user `cst`}}",
    17      "subscription_id": "{{user `sid`}}",
    18      "tenant_id": "{{user `tid`}}",
    19      "resource_group_name": "{{user `rgn`}}",
    20      "storage_account": "{{user `sa`}}",
    21  
    22      "capture_container_name": "images",
    23      "capture_name_prefix": "packer",
    24  
    25      "ssh_username": "{{user `ssh_user`}}",
    26      "ssh_password": "{{user `ssh_pass`}}",
    27  
    28      "image_publisher": "OpenLogic",
    29      "image_offer": "CentOS",
    30      "image_sku": "7.1",
    31      "ssh_pty": "true",
    32  
    33      "location": "South Central US",
    34      "vm_size": "Standard_A2"
    35    }],
    36    "provisioners": [{
    37      "execute_command": "echo '{{user `ssh_pass`}}' | {{ .Vars }} sudo -S -E sh '{{ .Path }}'",
    38      "inline": [
    39        "yum update -y",
    40        "/usr/sbin/waagent -force -deprovision+user && export HISTSIZE=0 && sync"
    41      ],
    42      "inline_shebang": "/bin/sh -x",
    43      "type": "shell",
    44      "skip_clean": true
    45    }]
    46  }