Updating the credentials to be picked up from environment variables.
This commit is contained in:
parent
e726902116
commit
d43fb441b9
|
@ -0,0 +1,65 @@
|
|||
{
|
||||
"variables": {
|
||||
"client_id": "{{env `client_id`}}",
|
||||
"client_secret": "{{env `client_secret`}}",
|
||||
"tenant_id": "{{env `tenant_id`}}",
|
||||
"subscription_id": "{{env `subscription_id`}}",
|
||||
"lab_name": "NewpackerRG",
|
||||
"resource_group_name": "NewPackerRG",
|
||||
"vm_name": "win21"
|
||||
},
|
||||
"builders": [
|
||||
{
|
||||
"type": "azure-dtl",
|
||||
"client_id": "{{user `client_id`}}",
|
||||
"client_secret": "{{user `client_secret`}}",
|
||||
"tenant_id": "{{user `tenant_id`}}",
|
||||
"subscription_id": "{{user `subscription_id`}}",
|
||||
"managed_image_resource_group_name": "NewPackerRG",
|
||||
"managed_image_name": "PackerImage2",
|
||||
"os_type": "Windows",
|
||||
"image_publisher": "MicrosoftWindowsDesktop",
|
||||
"image_offer": "Windows-10",
|
||||
"image_sku": "19h1-ent",
|
||||
"azure_tags": {
|
||||
"dept": "Engineering",
|
||||
"task": "Image deployment"
|
||||
},
|
||||
"dtl_artifacts": [
|
||||
{
|
||||
"artifact_name": "windows-7zip"
|
||||
},
|
||||
{
|
||||
"artifact_name": "windows-mongodb"
|
||||
}
|
||||
],
|
||||
"lab_name": "{{user `lab_name`}}",
|
||||
"vm_name": "{{user `vm_name`}}",
|
||||
"lab_virtual_network_name": "dtlnewpackerrg",
|
||||
"lab_resource_group_name": "{{user `resource_group_name`}}",
|
||||
"lab_subnet_name": "dtlnewpackerrgSubnet",
|
||||
"location": "Central US",
|
||||
"vm_size": "Standard_DS2_v2"
|
||||
}
|
||||
],
|
||||
"provisioners": [
|
||||
{
|
||||
"type": "azure-dtlartifact",
|
||||
"client_id": "{{user `client_id`}}",
|
||||
"client_secret": "{{user `client_secret`}}",
|
||||
"tenant_id": "{{user `tenant_id`}}",
|
||||
"subscription_id": "{{user `subscription_id`}}",
|
||||
"lab_name": "{{user `lab_name`}}",
|
||||
"resource_group_name": "{{user `resource_group_name`}}",
|
||||
"vm_name": "{{user `vm_name`}}",
|
||||
"dtl_artifacts": [
|
||||
{
|
||||
"artifact_name": "windows-chrome"
|
||||
},
|
||||
{
|
||||
"artifact_name": "windows-azurepowershell"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
{
|
||||
"variables": {
|
||||
"client_id": "{{env `client_id`}}",
|
||||
"client_secret": "{{env `client_secret`}}",
|
||||
"tenant_id": "{{env `tenant_id`}}",
|
||||
"subscription_id": "{{env `subscription_id`}}",
|
||||
"lab_name": "NewpackerRG",
|
||||
"resource_group_name": "NewPackerRG",
|
||||
"vm_name": "win18"
|
||||
},
|
||||
"builders": [
|
||||
{
|
||||
"type": "azure-dtl",
|
||||
"client_id": "{{user `client_id`}}",
|
||||
"client_secret": "{{user `client_secret`}}",
|
||||
"tenant_id": "{{user `tenant_id`}}",
|
||||
"subscription_id": "{{user `subscription_id`}}",
|
||||
"managed_image_resource_group_name": "NewPackerRG",
|
||||
"managed_image_name": "PackerImage2",
|
||||
"os_type": "Windows",
|
||||
"image_publisher": "MicrosoftWindowsDesktop",
|
||||
"image_offer": "Windows-10",
|
||||
"image_sku": "19h1-ent",
|
||||
"azure_tags": {
|
||||
"dept": "Engineering",
|
||||
"task": "Image deployment"
|
||||
},
|
||||
"lab_name": "{{user `lab_name`}}",
|
||||
"vm_name": "{{user `vm_name`}}",
|
||||
"lab_virtual_network_name": "dtlnewpackerrg",
|
||||
"lab_resource_group_name": "{{user `resource_group_name`}}",
|
||||
"lab_subnet_name": "dtlnewpackerrgSubnet",
|
||||
"location": "Central US",
|
||||
"vm_size": "Standard_DS2_v2"
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue