azure-cli unnecessary in install-consul and breaks packer build
Closed this issue · 1 comments
It appears that azure-cli isn't used in the install-consul script even though the script attempts to install it. That package isn't available by default in Debian Stretch's or Ubuntu Xenial's packages as far as I can tell, and when it fails to install the rest of that provisioner exits without installing Consul, and as things stand, fails the Packer build.
Adding any successful command after the install-consul command (like apt-cache search azure-cli
) allows the build to complete, but since the install-consul provisioner fails it never actually installs Consul in my tests.
I can put together a PR to fix this if removing the azure-cli installation seems appropriate. My current "hack" is to pull from my fork that doesn't attempt to install azure-cli, which installs Consul just fine. See https://github.com/cori/terraform-azurerm-consul/tree/no-azure-cli.
Working through this with a colleague I realized that the run-consul script does rely on the azure-cli package. So while installing that is still broken out-of-the box in my testing on Debian Stretch and Ubuntu Xenial, my problem definition and proposed solution are off-base.
Closing.