Think i've found solution:
"only": ["azure-arm"]
Testing now.
On Friday, March 15, 2019 at 7:01:24 PM UTC+1, Deking wrote:
>
> Hi,
>
> I have encounter issue.
> Obviously there is no such as Azure Linux Agent under AWS. But the point
> is to run packer from the same source code in parallel. AWS part and Azure
> is in the same packer json file. So Provisioner is executing the same
> scripts and commands for both Azure and AWS.
> The question is how can i isolate this part of code to be just for Azure:
>
> {
> "execute_command": "chmod +x {{ .Path }}; {{ .Vars }} sudo -E sh '{{
> .Path }}'",
> "inline": [
> "/usr/sbin/waagent -force -deprovision+user && export HISTSIZE=0 && sync"
> ],
> "inline_shebang": "/bin/sh -x",
> "type": "shell",
> "skip_clean": true,
> "pause_before": "5s"
> }
>
> ERROR:
> amazon-ebs: /tmp/script_9362.sh: line 2: /usr/sbin/waagent: No such file
> or directory
>
> ==> amazon-ebs: Cleaning up any extra volumes...
> ==> amazon-ebs: Destroying volume (vol-03eec40b543b65765)...
> ==> amazon-ebs: Deleting temporary keypair...
> Build 'amazon-ebs' errored: Script exited with non-zero exit status: 127
>
>
--
This mailing list is governed under the HashiCorp Community Guidelines -
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of
those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/packer-tool/362af564-2a60-4c66-976d-80a30047353d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.