Skip to content

Instantly share code, notes, and snippets.

@nWmCZ
Created August 15, 2019 09:05
Show Gist options
  • Save nWmCZ/70441b91ee64f3cef0fc14b1e8ec09b5 to your computer and use it in GitHub Desktop.
Save nWmCZ/70441b91ee64f3cef0fc14b1e8ec09b5 to your computer and use it in GitHub Desktop.
Bug report to packer
{
"builders": [
{
"type": "azure-arm",
"client_id": "xyz",
"client_secret": "xyz",
"tenant_id": "xyz",
"subscription_id": "xyz",
"managed_image_resource_group_name": "xyz",
"managed_image_name": "xyz",
"os_type": "Linux",
"image_publisher": "OpenLogic",
"image_offer": "CentOS",
"image_sku": "7.5",
"azure_tags": {
"kind": "PACKER"
},
"location": "xyz",
"vm_size": "Standard_DS2_v2"
}
],
"provisioners": [
{
"type": "ansible",
"roles_path": "../roles",
"playbook_file": "../playbooks/00_packer_base_image.yml",
}
]
}
azure-arm output will be in this color.
==> azure-arm: Running builder ...
==> azure-arm: Getting tokens using client secret
azure-arm: Creating Azure Resource Manager (ARM) client ...
==> azure-arm: WARNING: Zone resiliency may not be supported in France Central, checkout the docs at https://docs.microsoft.com/en-us/azure/availability-zones/
==> azure-arm: Creating resource group ...
==> azure-arm: -> ResourceGroupName : 'packer-Resource-Group-agumbrphcn'
==> azure-arm: -> Location : 'France Central'
==> azure-arm: -> Tags :
==> azure-arm: ->> kind : PACKER
==> azure-arm: Validating deployment template ...
==> azure-arm: -> ResourceGroupName : 'packer-Resource-Group-agumbrphcn'
==> azure-arm: -> DeploymentName : 'pkrdpagumbrphcn'
==> azure-arm: Deploying deployment template ...
==> azure-arm: -> ResourceGroupName : 'packer-Resource-Group-agumbrphcn'
==> azure-arm: -> DeploymentName : 'pkrdpagumbrphcn'
==> azure-arm: Getting the VM's IP address ...
==> azure-arm: -> ResourceGroupName : 'packer-Resource-Group-agumbrphcn'
==> azure-arm: -> PublicIPAddressName : 'pkripagumbrphcn'
==> azure-arm: -> NicName : 'pkrniagumbrphcn'
==> azure-arm: -> Network Connection : 'PublicEndpoint'
==> azure-arm: -> IP Address : 'xyz'
==> azure-arm: Waiting for SSH to become available...
==> azure-arm: Connected to SSH!
==> azure-arm: Provisioning with Ansible...
==> azure-arm: Executing Ansible: ansible-playbook --extra-vars packer_build_name=azure-arm packer_builder_type=azure-arm -o IdentitiesOnly=yes -i /var/folders/zq/b8wy5_px2xgb9hx_fx7ffqth0000gq/T/packer-provisioner-ansible409746047 /git/playbooks/packer/00_packer_base_image.yml -e ansible_ssh_private_key_file=/var/folders/zq/b8wy5_px2xgb9hx_fx7ffqth0000gq/T/ansible-key506639264 -e upgrade_centos=true
azure-arm: ERROR! the role 'common_azure' was not found in /git/playbooks/packer/roles:/Users/xyz/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/git/playbooks/packer
azure-arm:
azure-arm: The error appears to be in '/git/playbooks/packer/00_packer_base_image.yml': line 5, column 5, but may
azure-arm: be elsewhere in the file depending on the exact syntax problem.
azure-arm:
azure-arm: The offending line appears to be:
azure-arm:
azure-arm: roles:
azure-arm: - common_azure
azure-arm: ^ here
==> azure-arm:
==> azure-arm: Cleanup requested, deleting resource group ...
==> azure-arm: Resource group has been deleted.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment