mirror of
https://github.com/hashicorp/packer.git
synced 2026-02-28 04:21:10 -05:00
The latest release of the Oracle plugin for Packer removed Solaris from its list of supported platforms. Since Packer still releases binaries for Solaris the Oracle plugin will no longer be bundled and distributed within the Packer binary. Practitioners relying on the plugin can continue using the plugin by installing it manually using either the `packer init` or `packer plugins install` commands.
65 lines
1.9 KiB
Bash
Executable file
65 lines
1.9 KiB
Bash
Executable file
#!/bin/zsh
|
|
|
|
## This script is to be run before a Packer release in order to update
|
|
## all vendored plugins to the latest available release.
|
|
## The SDK is included in the plugin list and will be upgraded as well if a
|
|
## newest version is available.
|
|
## This script should be run in packer's root.
|
|
|
|
declare -a plugins=(
|
|
"hashicorp/packer-plugin-alicloud"
|
|
"hashicorp/packer-plugin-amazon"
|
|
"hashicorp/packer-plugin-ansible"
|
|
"hashicorp/packer-plugin-azure"
|
|
"hashicorp/packer-plugin-chef"
|
|
"hashicorp/packer-plugin-cloudstack"
|
|
"hashicorp/packer-plugin-converge"
|
|
"digitalocean/packer-plugin-digitalocean"
|
|
"hashicorp/packer-plugin-docker"
|
|
"hashicorp/packer-plugin-googlecompute"
|
|
"hashicorp/packer-plugin-hcloud"
|
|
"hashicorp/packer-plugin-hyperone"
|
|
"hashicorp/packer-plugin-hyperv"
|
|
"hashicorp/packer-plugin-jdcloud"
|
|
"hashicorp/packer-plugin-linode"
|
|
"hashicorp/packer-plugin-lxc"
|
|
"hashicorp/packer-plugin-lxd"
|
|
"hashicorp/packer-plugin-ncloud"
|
|
"hashicorp/packer-plugin-openstack"
|
|
"hashicorp/packer-plugin-oneandone"
|
|
"hashicorp/packer-plugin-parallels"
|
|
"hashicorp/packer-plugin-profitbricks"
|
|
"hashicorp/packer-plugin-proxmox"
|
|
"hashicorp/packer-plugin-puppet"
|
|
"hashicorp/packer-plugin-qemu"
|
|
"hashicorp/packer-plugin-sdk"
|
|
"hashicorp/packer-plugin-tencentcloud"
|
|
"hashicorp/packer-plugin-triton"
|
|
"hashicorp/packer-plugin-ucloud"
|
|
"hashicorp/packer-plugin-vagrant"
|
|
"hashicorp/packer-plugin-virtualbox"
|
|
"hashicorp/packer-plugin-vmware"
|
|
"hashicorp/packer-plugin-vsphere"
|
|
"hashicorp/packer-plugin-yandex"
|
|
)
|
|
|
|
## now loop through the above plugin array
|
|
## update the plugins and the SDK to the latest available version
|
|
for i in "${plugins[@]}"
|
|
do
|
|
happy=false
|
|
while ! $happy
|
|
do
|
|
echo "upgrading $i"
|
|
output=$(go get -d github.com/$i)
|
|
happy=true
|
|
if [[ $output == *"443: Connection refused"* ]]; then
|
|
echo "Try again after 5 seconds"
|
|
sleep 5
|
|
happy=false
|
|
fi
|
|
done
|
|
sleep 1
|
|
done
|
|
|
|
go mod tidy -compat=1.18
|