diff --git a/Casks/hashicorp-boundary-desktop.rb b/Casks/hashicorp-boundary-desktop.rb index 25e0cedf..8b64be56 100644 --- a/Casks/hashicorp-boundary-desktop.rb +++ b/Casks/hashicorp-boundary-desktop.rb @@ -1,11 +1,13 @@ # Copyright (c) HashiCorp, Inc. # SPDX-License-Identifier: MPL-2.0 +release_repository = +ENV["HOMEBREW_HASHICORP_ARTIFACT_REPOSITORY_HOST"] || "https://releases.hashicorp.com" + cask "hashicorp-boundary-desktop" do version "1.6.0" sha256 "b6b5b15dfb469b7fdab9216788f5931e96561104de1ff7f9e0d6fda54701be09" - url "https://releases.hashicorp.com/boundary-desktop/#{version}/boundary-desktop_#{version}_darwin_amd64.dmg", + url release_repository << "/boundary-desktop/#{version}/boundary-desktop_#{version}_darwin_amd64.dmg", verified: "hashicorp.com/boundary-desktop/" name "Boundary Desktop" desc "" diff --git a/Casks/hashicorp-vagrant.rb b/Casks/hashicorp-vagrant.rb index 8ee4dbd3..6d882739 100644 --- a/Casks/hashicorp-vagrant.rb +++ b/Casks/hashicorp-vagrant.rb @@ -1,12 +1,14 @@ # Copyright (c) HashiCorp, Inc. # SPDX-License-Identifier: MPL-2.0 +release_repository = +ENV["HOMEBREW_HASHICORP_ARTIFACT_REPOSITORY_HOST"] || "https://releases.hashicorp.com" + cask "hashicorp-vagrant" do version "2.3.7" arch arm: "arm64", intel: "amd64" sha256 arm: "ee4e95d00d7dae805bf97ad74f1d6c474c0019ab5632fd0a5c32f18b62d8db95", intel: "ee4e95d00d7dae805bf97ad74f1d6c474c0019ab5632fd0a5c32f18b62d8db95" - url "https://releases.hashicorp.com/vagrant/#{version}/vagrant_#{version}_darwin_#{arch}.dmg", + url release_repository << "/vagrant/#{version}/vagrant_#{version}_darwin_#{arch}.dmg", verified: "hashicorp.com/vagrant/" name "Vagrant" desc "Development environment" diff --git a/Formula/boundary-enterprise.rb b/Formula/boundary-enterprise.rb index cb0c916e..8d0c4cf9 100644 --- a/Formula/boundary-enterprise.rb +++ b/Formula/boundary-enterprise.rb @@ -2,32 +2,34 @@ # SPDX-License-Identifier: MPL-2.0 class BoundaryEnterprise < Formula + release_repository = +ENV["HOMEBREW_HASHICORP_ARTIFACT_REPOSITORY_HOST"] || "https://releases.hashicorp.com" + desc "Boundary Enterprise" homepage "https://www.boundaryproject.io/" version "0.13.2+ent" if OS.mac? && Hardware::CPU.intel? - url "https://releases.hashicorp.com/boundary/0.13.2+ent/boundary_0.13.2+ent_darwin_amd64.zip" + url release_repository << "/boundary/0.13.2+ent/boundary_0.13.2+ent_darwin_amd64.zip" sha256 "d2b40febc40060999d7b1eb899794434b0271796b64ed2455bf606b23d67712a" end if OS.mac? && Hardware::CPU.arm? - url "https://releases.hashicorp.com/boundary/0.13.2+ent/boundary_0.13.2+ent_darwin_arm64.zip" + url release_repository << "/boundary/0.13.2+ent/boundary_0.13.2+ent_darwin_arm64.zip" sha256 "3ad618107346f7bcfcbb389f782a314351921c65b3d7bb4643ac71d80dea6579" end if OS.linux? && Hardware::CPU.intel? - url "https://releases.hashicorp.com/boundary/0.13.2+ent/boundary_0.13.2+ent_linux_amd64.zip" + url release_repository << "/boundary/0.13.2+ent/boundary_0.13.2+ent_linux_amd64.zip" sha256 "dda11361809ce2b99d49653af677d676b30b4599e2663174f8950cf346734be0" end if OS.linux? && Hardware::CPU.arm? && !Hardware::CPU.is_64_bit? - url "https://releases.hashicorp.com/boundary/0.13.2+ent/boundary_0.13.2+ent_linux_arm.zip" + url release_repository << "/boundary/0.13.2+ent/boundary_0.13.2+ent_linux_arm.zip" sha256 "7d8903f0042fb52f439f3a3cfddf0bdd56c7c3599c5b5ae10ce40d669c50bdb2" end if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit? - url "https://releases.hashicorp.com/boundary/0.13.2+ent/boundary_0.13.2+ent_linux_arm64.zip" + url release_repository << "/boundary/0.13.2+ent/boundary_0.13.2+ent_linux_arm64.zip" sha256 "8d4a12cffc69e7bd94fb91e393a06f4dee3389927fe3f79e3924beeb98e281b4" end diff --git a/Formula/boundary.rb b/Formula/boundary.rb index dfb5057a..d8e41df5 100644 --- a/Formula/boundary.rb +++ b/Formula/boundary.rb @@ -2,32 +2,34 @@ # SPDX-License-Identifier: MPL-2.0 class Boundary < Formula + release_repository = +ENV["HOMEBREW_HASHICORP_ARTIFACT_REPOSITORY_HOST"] || "https://releases.hashicorp.com" + desc "Boundary" homepage "https://www.boundaryproject.io/" version "0.13.1" if OS.mac? && Hardware::CPU.intel? - url "https://releases.hashicorp.com/boundary/0.13.1/boundary_0.13.1_darwin_amd64.zip" + url release_repository << "/boundary/0.13.1/boundary_0.13.1_darwin_amd64.zip" sha256 "5ea74dbfce8dc51b718961486bb2a0a5ddcb7d2a88907becfd2404cd65bdb75e" end if OS.mac? && Hardware::CPU.arm? - url "https://releases.hashicorp.com/boundary/0.13.1/boundary_0.13.1_darwin_arm64.zip" + url release_repository << "/boundary/0.13.1/boundary_0.13.1_darwin_arm64.zip" sha256 "a148b40164b3ff7508fae9bc8c2bd3437df4cd6c5be9a819312be891ee9a7ab7" end if OS.linux? && Hardware::CPU.intel? - url "https://releases.hashicorp.com/boundary/0.13.1/boundary_0.13.1_linux_amd64.zip" + url release_repository << "/boundary/0.13.1/boundary_0.13.1_linux_amd64.zip" sha256 "7e549922c0cb31e46fbbbb52eaa6cfccbf40046b8a50844adf644c9ef335cb97" end if OS.linux? && Hardware::CPU.arm? && !Hardware::CPU.is_64_bit? - url "https://releases.hashicorp.com/boundary/0.13.1/boundary_0.13.1_linux_arm.zip" + url release_repository << "/boundary/0.13.1/boundary_0.13.1_linux_arm.zip" sha256 "d877d784cc69994d14b3f786e330dcff6c355549126966cba6c49366f03a9c77" end if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit? - url "https://releases.hashicorp.com/boundary/0.13.1/boundary_0.13.1_linux_arm64.zip" + url release_repository << "/boundary/0.13.1/boundary_0.13.1_linux_arm64.zip" sha256 "5d7cb7041ec6d561b256c9439e83c573da7a5f8a5146fa661c77a77457386c7c" end diff --git a/Formula/consul-aws.rb b/Formula/consul-aws.rb index b99fc9a9..56ba82b4 100644 --- a/Formula/consul-aws.rb +++ b/Formula/consul-aws.rb @@ -1,4 +1,6 @@ class ConsulAws < Formula + release_repository = +ENV["HOMEBREW_HASHICORP_ARTIFACT_REPOSITORY_HOST"] || "https://releases.hashicorp.com" + desc "Consul AWS" homepage "https://github.com/hashicorp/consul-aws" version "0.1.2" @@ -20,12 +22,12 @@ def caveats end if OS.linux? && Hardware::CPU.intel? - url "https://releases.hashicorp.com/consul-aws/0.1.2/consul-aws_0.1.2_linux_amd64.zip" + url release_repository << "/consul-aws/0.1.2/consul-aws_0.1.2_linux_amd64.zip" sha256 "c1a44fd4df8c455a6e4279f83938171087901e17fbff46adbe10c9697fbfb503" end if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit? - url "https://releases.hashicorp.com/consul-aws/0.1.2/consul-aws_0.1.2_linux_arm64.zip" + url release_repository << "/consul-aws/0.1.2/consul-aws_0.1.2_linux_arm64.zip" sha256 "16145d50885aeb6d588b9a35ec4492e5e6960f7c68d4d2f16b0581397e5821f2" end diff --git a/Formula/consul-dataplane.rb b/Formula/consul-dataplane.rb index d174cccf..587ce142 100644 --- a/Formula/consul-dataplane.rb +++ b/Formula/consul-dataplane.rb @@ -2,35 +2,37 @@ # SPDX-License-Identifier: MPL-2.0 class ConsulDataplane < Formula + release_repository = +ENV["HOMEBREW_HASHICORP_ARTIFACT_REPOSITORY_HOST"] || "https://releases.hashicorp.com" + desc "Consul Dataplane" homepage "https://github.com/hashicorp/consul-dataplane" version "1.2.1" if OS.mac? && Hardware::CPU.intel? - url "https://releases.hashicorp.com/consul-dataplane/1.2.1/consul-dataplane_1.2.1_darwin_amd64.zip" + url release_repository << "/consul-dataplane/1.2.1/consul-dataplane_1.2.1_darwin_amd64.zip" sha256 "201ba709d83b84695372de43f1087298bb7f1ff2b5273e21e7f2788be0a56278" end if OS.mac? && Hardware::CPU.arm? - url "https://releases.hashicorp.com/consul-dataplane/1.2.1/consul-dataplane_1.2.1_darwin_arm64.zip" + url release_repository << "/consul-dataplane/1.2.1/consul-dataplane_1.2.1_darwin_arm64.zip" sha256 "bde7d9558fa29e1c0d4d1969a85bb63d1ba6d880b0f243ace5134d94aa13001e" end if OS.linux? && Hardware::CPU.intel? - url "https://releases.hashicorp.com/consul-dataplane/1.2.1/consul-dataplane_1.2.1_linux_amd64.zip" + url release_repository << "/consul-dataplane/1.2.1/consul-dataplane_1.2.1_linux_amd64.zip" sha256 "7a236bca6c14a1dd4f46bf725f480b2cd715c2314cbf0b55ed4dad771dfb1e8c" end if OS.linux? && Hardware::CPU.arm? && !Hardware::CPU.is_64_bit? - url "https://releases.hashicorp.com/consul-dataplane/1.2.1/consul-dataplane_1.2.1_linux_arm.zip" + url release_repository << "/consul-dataplane/1.2.1/consul-dataplane_1.2.1_linux_arm.zip" sha256 "19c49e7f6a803b713595e119fb44361cc832fdeec18efc4f8a658b22341957c6" end if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit? - url "https://releases.hashicorp.com/consul-dataplane/1.2.1/consul-dataplane_1.2.1_linux_arm64.zip" + url release_repository << "/consul-dataplane/1.2.1/consul-dataplane_1.2.1_linux_arm64.zip" sha256 "2bb90333e55ca70364c2268c11b3326594c35899f762010d71061163ea70e43c" end - + depends_on "envoy" => :recommended conflicts_with "consul-dataplane" diff --git a/Formula/consul-enterprise.rb b/Formula/consul-enterprise.rb index 3ecf0073..65537eff 100644 --- a/Formula/consul-enterprise.rb +++ b/Formula/consul-enterprise.rb @@ -2,32 +2,34 @@ # SPDX-License-Identifier: MPL-2.0 class ConsulEnterprise < Formula + release_repository = +ENV["HOMEBREW_HASHICORP_ARTIFACT_REPOSITORY_HOST"] || "https://releases.hashicorp.com" + desc "Consul Enterprise" homepage "https://www.consul.io" version "1.16.1+ent" if OS.mac? && Hardware::CPU.intel? - url "https://releases.hashicorp.com/consul/1.16.1+ent/consul_1.16.1+ent_darwin_amd64.zip" + url release_repository << "/consul/1.16.1+ent/consul_1.16.1+ent_darwin_amd64.zip" sha256 "87adc902f312bc95534cb2890b3d915162b8b7d7f849cc49245e6403b57c6b8a" end if OS.mac? && Hardware::CPU.arm? - url "https://releases.hashicorp.com/consul/1.16.1+ent/consul_1.16.1+ent_darwin_arm64.zip" + url release_repository << "/consul/1.16.1+ent/consul_1.16.1+ent_darwin_arm64.zip" sha256 "9629641080f02d7b87d50ac3d5a933a57b0607f8fac01f4c8e5078a1ea749615" end if OS.linux? && Hardware::CPU.intel? - url "https://releases.hashicorp.com/consul/1.16.1+ent/consul_1.16.1+ent_linux_amd64.zip" + url release_repository << "/consul/1.16.1+ent/consul_1.16.1+ent_linux_amd64.zip" sha256 "3e68670d0d723363adea8e8edc89848d784e90e382b00294a0994b701cbc47f0" end if OS.linux? && Hardware::CPU.arm? && !Hardware::CPU.is_64_bit? - url "https://releases.hashicorp.com/consul/1.16.1+ent/consul_1.16.1+ent_linux_arm.zip" + url release_repository << "/consul/1.16.1+ent/consul_1.16.1+ent_linux_arm.zip" sha256 "74f66f09027e63c66f425a78124120e7e6d8aa6fe4844567a6ee0da8417b9c13" end if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit? - url "https://releases.hashicorp.com/consul/1.16.1+ent/consul_1.16.1+ent_linux_arm64.zip" + url release_repository << "/consul/1.16.1+ent/consul_1.16.1+ent_linux_arm64.zip" sha256 "e85da5ac98a1c5dcaddbebc126c807e5c1171443f45090bf5617755fe6472eed" end diff --git a/Formula/consul-esm.rb b/Formula/consul-esm.rb index e8a719ad..c5b18889 100644 --- a/Formula/consul-esm.rb +++ b/Formula/consul-esm.rb @@ -1,30 +1,32 @@ class ConsulEsm < Formula + release_repository = +ENV["HOMEBREW_HASHICORP_ARTIFACT_REPOSITORY_HOST"] || "https://releases.hashicorp.com" + desc "Consul ESM" homepage "https://github.com/hashicorp/consul-esm" version "0.7.1" if OS.mac? && Hardware::CPU.intel? - url "https://releases.hashicorp.com/consul-esm/0.7.1/consul-esm_0.7.1_darwin_amd64.zip" + url release_repository << "/consul-esm/0.7.1/consul-esm_0.7.1_darwin_amd64.zip" sha256 "017d94d565dc3c4769472978b033be354ded1a1b8baf1230225587e9453ce5bf" end if OS.mac? && Hardware::CPU.arm? - url "https://releases.hashicorp.com/consul-esm/0.7.1/consul-esm_0.7.1_darwin_arm64.zip" + url release_repository << "/consul-esm/0.7.1/consul-esm_0.7.1_darwin_arm64.zip" sha256 "746e127366c94b8fc6838c877c41d26df65a1ca4936dbbddd596b4ef3d5622e9" end if OS.linux? && Hardware::CPU.intel? - url "https://releases.hashicorp.com/consul-esm/0.7.1/consul-esm_0.7.1_linux_amd64.zip" + url release_repository << "/consul-esm/0.7.1/consul-esm_0.7.1_linux_amd64.zip" sha256 "bc1d8c351d277bb1e93d3d2a209b9282ee5d84e3a82ce3c38281f40318b5268f" end if OS.linux? && Hardware::CPU.arm? && !Hardware::CPU.is_64_bit? - url "https://releases.hashicorp.com/consul-esm/0.7.1/consul-esm_0.7.1_linux_arm.zip" + url release_repository << "/consul-esm/0.7.1/consul-esm_0.7.1_linux_arm.zip" sha256 "01acf7c989820f399effedd75a3bfa189de5e3853b58bb670b070fd9445f8594" end if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit? - url "https://releases.hashicorp.com/consul-esm/0.7.1/consul-esm_0.7.1_linux_arm64.zip" + url release_repository << "/consul-esm/0.7.1/consul-esm_0.7.1_linux_arm64.zip" sha256 "47e607ef585fb0f4fdffa9de9364e28ecba7a1c9dc80734d4a20f5744d5a37d8" end diff --git a/Formula/consul-k8s.rb b/Formula/consul-k8s.rb index 2bea30d1..b9723d2d 100644 --- a/Formula/consul-k8s.rb +++ b/Formula/consul-k8s.rb @@ -2,32 +2,34 @@ # SPDX-License-Identifier: MPL-2.0 class ConsulK8s < Formula + release_repository = +ENV["HOMEBREW_HASHICORP_ARTIFACT_REPOSITORY_HOST"] || "https://releases.hashicorp.com" + desc "Consul K8s" homepage "https://github.com/hashicorp/consul-k8s" version "1.2.1" if OS.mac? && Hardware::CPU.intel? - url "https://releases.hashicorp.com/consul-k8s/1.2.1/consul-k8s_1.2.1_darwin_amd64.zip" + url release_repository << "/consul-k8s/1.2.1/consul-k8s_1.2.1_darwin_amd64.zip" sha256 "4030bc090e6b7da301c726004cc5907f4140beed18168645efba1f8be2311ff4" end if OS.mac? && Hardware::CPU.arm? - url "https://releases.hashicorp.com/consul-k8s/1.2.1/consul-k8s_1.2.1_darwin_arm64.zip" + url release_repository << "/consul-k8s/1.2.1/consul-k8s_1.2.1_darwin_arm64.zip" sha256 "dc233bfc7589fa96ac791b37c803e77f24e91bb180d576ffaa998af6afff9649" end if OS.linux? && Hardware::CPU.intel? - url "https://releases.hashicorp.com/consul-k8s/1.2.1/consul-k8s_1.2.1_linux_amd64.zip" + url release_repository << "/consul-k8s/1.2.1/consul-k8s_1.2.1_linux_amd64.zip" sha256 "3e816993e4826afc37437424ef5e52c3c0365afda1930c99b4f531878ffd9e3f" end if OS.linux? && Hardware::CPU.arm? && !Hardware::CPU.is_64_bit? - url "https://releases.hashicorp.com/consul-k8s/1.2.1/consul-k8s_1.2.1_linux_arm.zip" + url release_repository << "/consul-k8s/1.2.1/consul-k8s_1.2.1_linux_arm.zip" sha256 "00bf8928e534c273df875245ea0dad038e6ddb8ed17281d946727137b84bf239" end if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit? - url "https://releases.hashicorp.com/consul-k8s/1.2.1/consul-k8s_1.2.1_linux_arm64.zip" + url release_repository << "/consul-k8s/1.2.1/consul-k8s_1.2.1_linux_arm64.zip" sha256 "bcc2cab05a83d24726b6c134c145a6fd71cccd3d2a78cff1580ec54643f35265" end diff --git a/Formula/consul-template.rb b/Formula/consul-template.rb index 31c38c08..77aa23d2 100644 --- a/Formula/consul-template.rb +++ b/Formula/consul-template.rb @@ -2,32 +2,34 @@ # SPDX-License-Identifier: MPL-2.0 class ConsulTemplate < Formula + release_repository = +ENV["HOMEBREW_HASHICORP_ARTIFACT_REPOSITORY_HOST"] || "https://releases.hashicorp.com" + desc "Consul Template" homepage "https://github.com/hashicorp/consul-template" version "0.33.0" if OS.mac? && Hardware::CPU.intel? - url "https://releases.hashicorp.com/consul-template/0.33.0/consul-template_0.33.0_darwin_amd64.zip" + url release_repository << "/consul-template/0.33.0/consul-template_0.33.0_darwin_amd64.zip" sha256 "b9b78faa3713c274d54a941fd5fbb290e749486d7638e95b98933a32579e5f68" end if OS.mac? && Hardware::CPU.arm? - url "https://releases.hashicorp.com/consul-template/0.33.0/consul-template_0.33.0_darwin_arm64.zip" + url release_repository << "/consul-template/0.33.0/consul-template_0.33.0_darwin_arm64.zip" sha256 "9f370e5209c890fb32504e794812a3fe7faa64b7c65ad187020dbd7cc36ace7c" end if OS.linux? && Hardware::CPU.intel? - url "https://releases.hashicorp.com/consul-template/0.33.0/consul-template_0.33.0_linux_amd64.zip" + url release_repository << "/consul-template/0.33.0/consul-template_0.33.0_linux_amd64.zip" sha256 "eea287d363e52894d4698f40b0ac667d57443b20e3317792ec2aca0161fd6c81" end if OS.linux? && Hardware::CPU.arm? && !Hardware::CPU.is_64_bit? - url "https://releases.hashicorp.com/consul-template/0.33.0/consul-template_0.33.0_linux_arm.zip" + url release_repository << "/consul-template/0.33.0/consul-template_0.33.0_linux_arm.zip" sha256 "6ef6caa4cd144809c779b278827c2e007695d1d27346038cf0b6eec51a7de1b6" end if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit? - url "https://releases.hashicorp.com/consul-template/0.33.0/consul-template_0.33.0_linux_arm64.zip" + url release_repository << "/consul-template/0.33.0/consul-template_0.33.0_linux_arm64.zip" sha256 "8a1392135df57b27f08b7c543676124f79a83d1206867710f364bf876fe2c3c5" end diff --git a/Formula/consul-terraform-sync.rb b/Formula/consul-terraform-sync.rb index 0eeb9530..55d28881 100644 --- a/Formula/consul-terraform-sync.rb +++ b/Formula/consul-terraform-sync.rb @@ -1,10 +1,12 @@ class ConsulTerraformSync < Formula + release_repository = +ENV["HOMEBREW_HASHICORP_ARTIFACT_REPOSITORY_HOST"] || "https://releases.hashicorp.com" + desc "Consul Terraform Sync" homepage "https://github.com/hashicorp/consul-terraform-sync" version "0.7.0" if OS.mac? - url "https://releases.hashicorp.com/consul-terraform-sync/0.7.0/consul-terraform-sync_0.7.0_darwin_amd64.zip" + url release_repository << "/consul-terraform-sync/0.7.0/consul-terraform-sync_0.7.0_darwin_amd64.zip" sha256 "dfb11f751de5d8eb5ed19d1aa2ee63a2dda417eea2d900cea6f31ae5b5ea88e6" end @@ -20,17 +22,17 @@ def caveats end if OS.linux? && Hardware::CPU.intel? - url "https://releases.hashicorp.com/consul-terraform-sync/0.7.0/consul-terraform-sync_0.7.0_linux_amd64.zip" + url release_repository << "/consul-terraform-sync/0.7.0/consul-terraform-sync_0.7.0_linux_amd64.zip" sha256 "40bcb6fa6ab043cad6c7e2425a723f0531b1539ec2502ac2d6fc44180df1efb4" end if OS.linux? && Hardware::CPU.arm? && !Hardware::CPU.is_64_bit? - url "https://releases.hashicorp.com/consul-terraform-sync/0.7.0/consul-terraform-sync_0.7.0_linux_arm.zip" + url release_repository << "/consul-terraform-sync/0.7.0/consul-terraform-sync_0.7.0_linux_arm.zip" sha256 "25b3b0b220d6ef31f5864d7babeac24c6cfd5e49f25ed773b14a207d2b127e11" end if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit? - url "https://releases.hashicorp.com/consul-terraform-sync/0.7.0/consul-terraform-sync_0.7.0_linux_arm64.zip" + url release_repository << "/consul-terraform-sync/0.7.0/consul-terraform-sync_0.7.0_linux_arm64.zip" sha256 "6b5adba79bbfd059879572007feb8aec47f61d23f78309b92107f3c403f96703" end diff --git a/Formula/consul.rb b/Formula/consul.rb index 077014d2..4f797137 100644 --- a/Formula/consul.rb +++ b/Formula/consul.rb @@ -2,32 +2,34 @@ # SPDX-License-Identifier: MPL-2.0 class Consul < Formula + release_repository = +ENV["HOMEBREW_HASHICORP_ARTIFACT_REPOSITORY_HOST"] || "https://releases.hashicorp.com" + desc "Consul" homepage "https://www.consul.io" version "1.16.1" if OS.mac? && Hardware::CPU.intel? - url "https://releases.hashicorp.com/consul/1.16.1/consul_1.16.1_darwin_amd64.zip" + url release_repository << "/consul/1.16.1/consul_1.16.1_darwin_amd64.zip" sha256 "04ce7f6818e5c5b6ab9494502a2ad2aec68ac8f097b713bbd220a245620c030f" end if OS.mac? && Hardware::CPU.arm? - url "https://releases.hashicorp.com/consul/1.16.1/consul_1.16.1_darwin_arm64.zip" + url release_repository << "/consul/1.16.1/consul_1.16.1_darwin_arm64.zip" sha256 "5e7a2f449750d779cc850042b384124a3df352ed268eab6f96325025f8768c42" end if OS.linux? && Hardware::CPU.intel? - url "https://releases.hashicorp.com/consul/1.16.1/consul_1.16.1_linux_amd64.zip" + url release_repository << "/consul/1.16.1/consul_1.16.1_linux_amd64.zip" sha256 "1d48942fa9f1d0df3f56a1622c7a46e9b85924ed9976338912101bb5519aadf1" end if OS.linux? && Hardware::CPU.arm? && !Hardware::CPU.is_64_bit? - url "https://releases.hashicorp.com/consul/1.16.1/consul_1.16.1_linux_arm.zip" + url release_repository << "/consul/1.16.1/consul_1.16.1_linux_arm.zip" sha256 "9e83f0af50232fe036a8cc6e35b646ea4d8766b2c76c69cc700f9c9709363537" end if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit? - url "https://releases.hashicorp.com/consul/1.16.1/consul_1.16.1_linux_arm64.zip" + url release_repository << "/consul/1.16.1/consul_1.16.1_linux_arm64.zip" sha256 "b949438fddc180825fe8917dd58ed80282b2ed4eea7c9f421ccec0c23cf77507" end diff --git a/Formula/envconsul.rb b/Formula/envconsul.rb index 8008419c..8f065bc1 100644 --- a/Formula/envconsul.rb +++ b/Formula/envconsul.rb @@ -2,32 +2,34 @@ # SPDX-License-Identifier: MPL-2.0 class Envconsul < Formula + release_repository = +ENV["HOMEBREW_HASHICORP_ARTIFACT_REPOSITORY_HOST"] || "https://releases.hashicorp.com" + desc "Env Consul" homepage "https://github.com/hashicorp/envconsul" version "0.13.2" if OS.mac? && Hardware::CPU.intel? - url "https://releases.hashicorp.com/envconsul/0.13.2/envconsul_0.13.2_darwin_amd64.zip" + url release_repository << "/envconsul/0.13.2/envconsul_0.13.2_darwin_amd64.zip" sha256 "0e08ebedc24511f56c4a5b3f16177767289544b0414e1ee2333ee15a04f3dd7b" end if OS.mac? && Hardware::CPU.arm? - url "https://releases.hashicorp.com/envconsul/0.13.2/envconsul_0.13.2_darwin_arm64.zip" + url release_repository << "/envconsul/0.13.2/envconsul_0.13.2_darwin_arm64.zip" sha256 "a323e17c2d69e38f1c3da7e8c3a0c0d4da3492d20a40fdcdb719556264fc2962" end if OS.linux? && Hardware::CPU.intel? - url "https://releases.hashicorp.com/envconsul/0.13.2/envconsul_0.13.2_linux_amd64.zip" + url release_repository << "/envconsul/0.13.2/envconsul_0.13.2_linux_amd64.zip" sha256 "3a2719ad53e6b180f2accc9cd1b165fdca38a2e11e72504229a1aaaac9e7bd00" end if OS.linux? && Hardware::CPU.arm? && !Hardware::CPU.is_64_bit? - url "https://releases.hashicorp.com/envconsul/0.13.2/envconsul_0.13.2_linux_arm.zip" + url release_repository << "/envconsul/0.13.2/envconsul_0.13.2_linux_arm.zip" sha256 "e98e41a87f409e1a9618872e72ef4bf5d1c03f8517f17baa7745f92d7c7d4305" end if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit? - url "https://releases.hashicorp.com/envconsul/0.13.2/envconsul_0.13.2_linux_arm64.zip" + url release_repository << "/envconsul/0.13.2/envconsul_0.13.2_linux_arm64.zip" sha256 "a413d7c6cae56de2b0b7215a64e74ee718a76ad2f9205ce95871340b5d7dfbd9" end diff --git a/Formula/hc-install.rb b/Formula/hc-install.rb index 0d6ebc69..025a281c 100644 --- a/Formula/hc-install.rb +++ b/Formula/hc-install.rb @@ -2,32 +2,34 @@ # SPDX-License-Identifier: MPL-2.0 class HcInstall < Formula + release_repository = +ENV["HOMEBREW_HASHICORP_ARTIFACT_REPOSITORY_HOST"] || "https://releases.hashicorp.com" + desc "hc-install CLI" homepage "https://github.com/hashicorp/hc-install" version "0.6.0" if OS.mac? && Hardware::CPU.intel? - url "https://releases.hashicorp.com/hc-install/0.6.0/hc-install_0.6.0_darwin_amd64.zip" + url release_repository << "/hc-install/0.6.0/hc-install_0.6.0_darwin_amd64.zip" sha256 "fd625aa0e62d44e2fb7069375a1d4138f73b7fd721e65e86b14a616f6d64b99f" end if OS.mac? && Hardware::CPU.arm? - url "https://releases.hashicorp.com/hc-install/0.6.0/hc-install_0.6.0_darwin_arm64.zip" + url release_repository << "/hc-install/0.6.0/hc-install_0.6.0_darwin_arm64.zip" sha256 "666795317854feaea704d3f9e7f26f5a0bac9be1c859f5dbe8ac7c931aa86b94" end if OS.linux? && Hardware::CPU.intel? - url "https://releases.hashicorp.com/hc-install/0.6.0/hc-install_0.6.0_linux_amd64.zip" + url release_repository << "/hc-install/0.6.0/hc-install_0.6.0_linux_amd64.zip" sha256 "40c4d5fac7d21fca889c9e6a469f6092a8f4f9854adb49b5eef9bbd63c0d15ba" end if OS.linux? && Hardware::CPU.arm? && !Hardware::CPU.is_64_bit? - url "https://releases.hashicorp.com/hc-install/0.6.0/hc-install_0.6.0_linux_arm.zip" + url release_repository << "/hc-install/0.6.0/hc-install_0.6.0_linux_arm.zip" sha256 "6f510d9f490072270b2302b22b75ad8aa6f76bb67834b74dd07b6a0a8595e763" end if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit? - url "https://releases.hashicorp.com/hc-install/0.6.0/hc-install_0.6.0_linux_arm64.zip" + url release_repository << "/hc-install/0.6.0/hc-install_0.6.0_linux_arm64.zip" sha256 "d961be9ef6dbe4f20f8d7b2ddf18d92773d8075554ce95813e071ef9a908ccb2" end diff --git a/Formula/hcdiag.rb b/Formula/hcdiag.rb index c68b0d6b..a86ace48 100644 --- a/Formula/hcdiag.rb +++ b/Formula/hcdiag.rb @@ -2,32 +2,34 @@ # SPDX-License-Identifier: MPL-2.0 class Hcdiag < Formula + release_repository = +ENV["HOMEBREW_HASHICORP_ARTIFACT_REPOSITORY_HOST"] || "https://releases.hashicorp.com" + desc "Hcdiag" homepage "https://github.com/hashicorp/hcdiag" version "0.5.1" if OS.mac? && Hardware::CPU.intel? - url "https://releases.hashicorp.com/hcdiag/0.5.1/hcdiag_0.5.1_darwin_amd64.zip" + url release_repository << "/hcdiag/0.5.1/hcdiag_0.5.1_darwin_amd64.zip" sha256 "be5432b1d8c933bafb2f63df7456501e383052613dea81bb3adee2d636790b48" end if OS.mac? && Hardware::CPU.arm? - url "https://releases.hashicorp.com/hcdiag/0.5.1/hcdiag_0.5.1_darwin_arm64.zip" + url release_repository << "/hcdiag/0.5.1/hcdiag_0.5.1_darwin_arm64.zip" sha256 "0ec738d2dcbd370c54a7fb2986f1a24998ab6e181e4724255ea8f9a13b356df4" end if OS.linux? && Hardware::CPU.intel? - url "https://releases.hashicorp.com/hcdiag/0.5.1/hcdiag_0.5.1_linux_amd64.zip" + url release_repository << "/hcdiag/0.5.1/hcdiag_0.5.1_linux_amd64.zip" sha256 "c1be38a9d3c3d4cd46997a63989740c49061918455f40bc5f6bda84683133c90" end if OS.linux? && Hardware::CPU.arm? && !Hardware::CPU.is_64_bit? - url "https://releases.hashicorp.com/hcdiag/0.5.1/hcdiag_0.5.1_linux_arm.zip" + url release_repository << "/hcdiag/0.5.1/hcdiag_0.5.1_linux_arm.zip" sha256 "9f5b1fab24d365485ad6300c20a75db61d9827ac8dcce4e5d1fe28b294779c60" end if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit? - url "https://releases.hashicorp.com/hcdiag/0.5.1/hcdiag_0.5.1_linux_arm64.zip" + url release_repository << "/hcdiag/0.5.1/hcdiag_0.5.1_linux_arm64.zip" sha256 "2c7bddf5f9f70a8f8c9d590a5d1359d5f423af59b3ceeb374d292c3c5417c9ba" end diff --git a/Formula/levant.rb b/Formula/levant.rb index 1fae4eac..bc8c10f3 100644 --- a/Formula/levant.rb +++ b/Formula/levant.rb @@ -1,10 +1,12 @@ class Levant < Formula + release_repository = +ENV["HOMEBREW_HASHICORP_ARTIFACT_REPOSITORY_HOST"] || "https://releases.hashicorp.com" + desc "Levant" homepage "https://github.com/hashicorp/levant" version "0.3.2" if OS.mac? - url "https://releases.hashicorp.com/levant/0.3.2/levant_0.3.2_darwin_amd64.zip" + url release_repository << "/levant/0.3.2/levant_0.3.2_darwin_amd64.zip" sha256 "7406a9f089227254f3ed7eb4f67d22dc28c44b41f2233391b5f0d3ffa1be861e" end @@ -20,17 +22,17 @@ def caveats end if OS.linux? && Hardware::CPU.intel? - url "https://releases.hashicorp.com/levant/0.3.2/levant_0.3.2_linux_amd64.zip" + url release_repository << "/levant/0.3.2/levant_0.3.2_linux_amd64.zip" sha256 "1e06180f8d8327e721e2ad4c9637d1f391034a22709473b8ed8ee19f1cad1570" end if OS.linux? && Hardware::CPU.arm? && !Hardware::CPU.is_64_bit? - url "https://releases.hashicorp.com/levant/0.3.2/levant_0.3.2_linux_arm.zip" + url release_repository << "/levant/0.3.2/levant_0.3.2_linux_arm.zip" sha256 "3c511d66e9018fdfefb179f5558f1639aa25f2a3a3376b7033f10a505f3c09a2" end if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit? - url "https://releases.hashicorp.com/levant/0.3.2/levant_0.3.2_linux_arm64.zip" + url release_repository << "/levant/0.3.2/levant_0.3.2_linux_arm64.zip" sha256 "8cb3c3c10b5415704964b437d85a2f26091bf25e8575df76403874eee78934b1" end diff --git a/Formula/nomad-enterprise.rb b/Formula/nomad-enterprise.rb index bc559da0..88f9c3ec 100644 --- a/Formula/nomad-enterprise.rb +++ b/Formula/nomad-enterprise.rb @@ -2,32 +2,34 @@ # SPDX-License-Identifier: MPL-2.0 class NomadEnterprise < Formula + release_repository = +ENV["HOMEBREW_HASHICORP_ARTIFACT_REPOSITORY_HOST"] || "https://releases.hashicorp.com" + desc "Nomad Enterprise" homepage "https://www.nomadproject.io/" version "1.6.1+ent" if OS.mac? && Hardware::CPU.intel? - url "https://releases.hashicorp.com/nomad/1.6.1+ent/nomad_1.6.1+ent_darwin_amd64.zip" + url release_repository << "/nomad/1.6.1+ent/nomad_1.6.1+ent_darwin_amd64.zip" sha256 "278f99b2492d0e8af4d5a1fbcb20141e86ccab733596319c9649102ecd36abe5" end if OS.mac? && Hardware::CPU.arm? - url "https://releases.hashicorp.com/nomad/1.6.1+ent/nomad_1.6.1+ent_darwin_arm64.zip" + url release_repository << "/nomad/1.6.1+ent/nomad_1.6.1+ent_darwin_arm64.zip" sha256 "3fe0f9425cd97771c301718232d6b656b8a9634bae15fd6a939bc800247d8d07" end if OS.linux? && Hardware::CPU.intel? - url "https://releases.hashicorp.com/nomad/1.6.1+ent/nomad_1.6.1+ent_linux_amd64.zip" + url release_repository << "/nomad/1.6.1+ent/nomad_1.6.1+ent_linux_amd64.zip" sha256 "ed863c3813564b8a2d4cea95d8be7ea612e31e469f65c29c7c6a5456007962a2" end if OS.linux? && Hardware::CPU.arm? && !Hardware::CPU.is_64_bit? - url "https://releases.hashicorp.com/nomad/1.6.1+ent/nomad_1.6.1+ent_linux_arm.zip" + url release_repository << "/nomad/1.6.1+ent/nomad_1.6.1+ent_linux_arm.zip" sha256 "2c4f0b56bd7c0e67496f9aa0bc86fd6c058f17864f50928e1c6c7ec1b189cea7" end if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit? - url "https://releases.hashicorp.com/nomad/1.6.1+ent/nomad_1.6.1+ent_linux_arm64.zip" + url release_repository << "/nomad/1.6.1+ent/nomad_1.6.1+ent_linux_arm64.zip" sha256 "3c1ac9955a82abd8791281fe70f8f76d4fcd0b5e0a852e3832800462a8a5f13b" end diff --git a/Formula/nomad-pack.rb b/Formula/nomad-pack.rb index 522fb76c..6d6650aa 100644 --- a/Formula/nomad-pack.rb +++ b/Formula/nomad-pack.rb @@ -1,30 +1,32 @@ class NomadPack < Formula + release_repository = +ENV["HOMEBREW_HASHICORP_ARTIFACT_REPOSITORY_HOST"] || "https://releases.hashicorp.com" + desc "Nomad Pack" homepage "https://github.com/hashicorp/nomad-pack" version "0.0.1-techpreview.3" if OS.mac? && Hardware::CPU.intel? - url "https://releases.hashicorp.com/nomad-pack/0.0.1-techpreview.3/nomad-pack_0.0.1-techpreview.3_darwin_amd64.zip" + url release_repository << "/nomad-pack/0.0.1-techpreview.3/nomad-pack_0.0.1-techpreview.3_darwin_amd64.zip" sha256 "3a73f692053d4e12c904d782a35d5cab6669cb4a3e9f5398802c1f9fc7050330" end if OS.mac? && Hardware::CPU.arm? - url "https://releases.hashicorp.com/nomad-pack/0.0.1-techpreview.3/nomad-pack_0.0.1-techpreview.3_darwin_arm64.zip" + url release_repository << "/nomad-pack/0.0.1-techpreview.3/nomad-pack_0.0.1-techpreview.3_darwin_arm64.zip" sha256 "445263a0b55c0978953a75f935b65c45007f548342ac63fc12f5352c610130dc" end if OS.linux? && Hardware::CPU.intel? - url "https://releases.hashicorp.com/nomad-pack/0.0.1-techpreview.3/nomad-pack_0.0.1-techpreview.3_linux_amd64.zip" + url release_repository << "/nomad-pack/0.0.1-techpreview.3/nomad-pack_0.0.1-techpreview.3_linux_amd64.zip" sha256 "825cbe6f6053ad4eab4bc298a901cb957b6331fdb3db4b6a896e620a2b96f3c3" end if OS.linux? && Hardware::CPU.arm? && !Hardware::CPU.is_64_bit? - url "https://releases.hashicorp.com/nomad-pack/0.0.1-techpreview.3/nomad-pack_0.0.1-techpreview.3_linux_arm.zip" + url release_repository << "/nomad-pack/0.0.1-techpreview.3/nomad-pack_0.0.1-techpreview.3_linux_arm.zip" sha256 "a91b42ff413b80d6f20954e086ae42b88c3b1e28fee0f057cc6f18967eb9001d" end if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit? - url "https://releases.hashicorp.com/nomad-pack/0.0.1-techpreview.3/nomad-pack_0.0.1-techpreview.3_linux_arm64.zip" + url release_repository << "/nomad-pack/0.0.1-techpreview.3/nomad-pack_0.0.1-techpreview.3_linux_arm64.zip" sha256 "838236643b8c8f26fe2afddd97ffc13cceaed31538ae6f2be2f46f8d520769cb" end diff --git a/Formula/nomad.rb b/Formula/nomad.rb index 8272d7bc..2f581f14 100644 --- a/Formula/nomad.rb +++ b/Formula/nomad.rb @@ -2,32 +2,34 @@ # SPDX-License-Identifier: MPL-2.0 class Nomad < Formula + release_repository = +ENV["HOMEBREW_HASHICORP_ARTIFACT_REPOSITORY_HOST"] || "https://releases.hashicorp.com" + desc "Nomad" homepage "https://www.nomadproject.io/" version "1.6.1" if OS.mac? && Hardware::CPU.intel? - url "https://releases.hashicorp.com/nomad/1.6.1/nomad_1.6.1_darwin_amd64.zip" + url release_repository << "/nomad/1.6.1/nomad_1.6.1_darwin_amd64.zip" sha256 "9871973c76b29af7115b6fc3f103cc968aa0680cbe3aceffa4ca3af258c5b2ac" end if OS.mac? && Hardware::CPU.arm? - url "https://releases.hashicorp.com/nomad/1.6.1/nomad_1.6.1_darwin_arm64.zip" + url release_repository << "/nomad/1.6.1/nomad_1.6.1_darwin_arm64.zip" sha256 "f44a8111d542ea9e928e2efbcc11c416ed08a86ced48df3067ff73d56d120cb4" end if OS.linux? && Hardware::CPU.intel? - url "https://releases.hashicorp.com/nomad/1.6.1/nomad_1.6.1_linux_amd64.zip" + url release_repository << "/nomad/1.6.1/nomad_1.6.1_linux_amd64.zip" sha256 "e4c01c51c393b266aee4ff184dd97704ae3d838c233a6189425a9f1c31a55f4f" end if OS.linux? && Hardware::CPU.arm? && !Hardware::CPU.is_64_bit? - url "https://releases.hashicorp.com/nomad/1.6.1/nomad_1.6.1_linux_arm.zip" + url release_repository << "/nomad/1.6.1/nomad_1.6.1_linux_arm.zip" sha256 "447174c812b7d3137580867bd2fa6242b69e2577bf83c2d83a2af96a459b9651" end if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit? - url "https://releases.hashicorp.com/nomad/1.6.1/nomad_1.6.1_linux_arm64.zip" + url release_repository << "/nomad/1.6.1/nomad_1.6.1_linux_arm64.zip" sha256 "67b2b2b62cee102f7436391588f67440d44737b75c3d29dfebec94948928374d" end diff --git a/Formula/packer.rb b/Formula/packer.rb index 42ea6d2d..5393a157 100644 --- a/Formula/packer.rb +++ b/Formula/packer.rb @@ -2,32 +2,34 @@ # SPDX-License-Identifier: MPL-2.0 class Packer < Formula + release_repository = +ENV["HOMEBREW_HASHICORP_ARTIFACT_REPOSITORY_HOST"] || "https://releases.hashicorp.com" + desc "Packer" homepage "https://www.packer.io/" version "1.9.4" if OS.mac? && Hardware::CPU.intel? - url "https://releases.hashicorp.com/packer/1.9.4/packer_1.9.4_darwin_amd64.zip" + url release_repository << "/packer/1.9.4/packer_1.9.4_darwin_amd64.zip" sha256 "cc7961f98771f61a395bc365fe114f3b1fca0a981135a0b7ba1d66d59bea9c14" end if OS.mac? && Hardware::CPU.arm? - url "https://releases.hashicorp.com/packer/1.9.4/packer_1.9.4_darwin_arm64.zip" + url release_repository << "/packer/1.9.4/packer_1.9.4_darwin_arm64.zip" sha256 "3777ec24244147a26d71ffa349a965b33905f5cfbd6f6d5ce30c27dd62f208bb" end if OS.linux? && Hardware::CPU.intel? - url "https://releases.hashicorp.com/packer/1.9.4/packer_1.9.4_linux_amd64.zip" + url release_repository << "/packer/1.9.4/packer_1.9.4_linux_amd64.zip" sha256 "6cd5269c4245aa8c99e551d1b862460d63fe711c58bec618fade25f8492e80d9" end if OS.linux? && Hardware::CPU.arm? && !Hardware::CPU.is_64_bit? - url "https://releases.hashicorp.com/packer/1.9.4/packer_1.9.4_linux_arm.zip" + url release_repository << "/packer/1.9.4/packer_1.9.4_linux_arm.zip" sha256 "e1343eaf1f87806c63e67b1bb6c218d2cbb18ce74d570c9197441cd4cae6ba67" end if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit? - url "https://releases.hashicorp.com/packer/1.9.4/packer_1.9.4_linux_arm64.zip" + url release_repository << "/packer/1.9.4/packer_1.9.4_linux_arm64.zip" sha256 "f00a4fc221b20a166cfac8a63513054775988a068667517bb3edcfab8b1700ba" end diff --git a/Formula/sentinel.rb b/Formula/sentinel.rb index c4a80fd0..324f4b00 100644 --- a/Formula/sentinel.rb +++ b/Formula/sentinel.rb @@ -2,32 +2,34 @@ # SPDX-License-Identifier: MPL-2.0 class Sentinel < Formula + release_repository = +ENV["HOMEBREW_HASHICORP_ARTIFACT_REPOSITORY_HOST"] || "https://releases.hashicorp.com" + desc "" homepage "https://docs.hashicorp.com/sentinel" version "0.22.1" if OS.mac? && Hardware::CPU.intel? - url "https://releases.hashicorp.com/sentinel/0.22.1/sentinel_0.22.1_darwin_amd64.zip" + url release_repository << "/sentinel/0.22.1/sentinel_0.22.1_darwin_amd64.zip" sha256 "09b9908e0b8a3cefce7758aae95a1004374bfc0dfb5d13993b7ce3bbc3ed8b48" end if OS.mac? && Hardware::CPU.arm? - url "https://releases.hashicorp.com/sentinel/0.22.1/sentinel_0.22.1_darwin_arm64.zip" + url release_repository << "/sentinel/0.22.1/sentinel_0.22.1_darwin_arm64.zip" sha256 "81345bd34e86d59a56a40e57581cdd2c4116205e61e3bfb96e00b5302ef0da85" end if OS.linux? && Hardware::CPU.intel? - url "https://releases.hashicorp.com/sentinel/0.22.1/sentinel_0.22.1_linux_amd64.zip" + url release_repository << "/sentinel/0.22.1/sentinel_0.22.1_linux_amd64.zip" sha256 "0a4a2b2baf46bfeb81d5137b2656b159ccc881487df3bebacd350ea48b53e76c" end if OS.linux? && Hardware::CPU.arm? && !Hardware::CPU.is_64_bit? - url "https://releases.hashicorp.com/sentinel/0.22.1/sentinel_0.22.1_linux_arm.zip" + url release_repository << "/sentinel/0.22.1/sentinel_0.22.1_linux_arm.zip" sha256 "5674a301661c980abe9517852c254dad6809057f4f671422815b3691e3343387" end if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit? - url "https://releases.hashicorp.com/sentinel/0.22.1/sentinel_0.22.1_linux_arm64.zip" + url release_repository << "/sentinel/0.22.1/sentinel_0.22.1_linux_arm64.zip" sha256 "30cae26f232ec12bc1312e3a017d5d60fd304ff8ced16594627bba7ac0942db3" end diff --git a/Formula/terraform-ls.rb b/Formula/terraform-ls.rb index 23b04050..13547946 100644 --- a/Formula/terraform-ls.rb +++ b/Formula/terraform-ls.rb @@ -2,32 +2,34 @@ # SPDX-License-Identifier: MPL-2.0 class TerraformLs < Formula + release_repository = +ENV["HOMEBREW_HASHICORP_ARTIFACT_REPOSITORY_HOST"] || "https://releases.hashicorp.com" + desc "Terraform Language Server" homepage "https://github.com/hashicorp/terraform-ls" version "0.31.5" if OS.mac? && Hardware::CPU.intel? - url "https://releases.hashicorp.com/terraform-ls/0.31.5/terraform-ls_0.31.5_darwin_amd64.zip" + url release_repository << "/terraform-ls/0.31.5/terraform-ls_0.31.5_darwin_amd64.zip" sha256 "d572d496405448cfca1d29d816b7379f2d4e64590a0bd7abe6fcff6617651dd1" end if OS.mac? && Hardware::CPU.arm? - url "https://releases.hashicorp.com/terraform-ls/0.31.5/terraform-ls_0.31.5_darwin_arm64.zip" + url release_repository << "/terraform-ls/0.31.5/terraform-ls_0.31.5_darwin_arm64.zip" sha256 "26ea2907a6ba85718d404165d9f2ef623aac6aebefc5693c5c9633824dba6033" end if OS.linux? && Hardware::CPU.intel? - url "https://releases.hashicorp.com/terraform-ls/0.31.5/terraform-ls_0.31.5_linux_amd64.zip" + url release_repository << "/terraform-ls/0.31.5/terraform-ls_0.31.5_linux_amd64.zip" sha256 "a4eba4d8156d66df1d087e6dcaaea335bfaeea5cfa8e822f974be4509049f026" end if OS.linux? && Hardware::CPU.arm? && !Hardware::CPU.is_64_bit? - url "https://releases.hashicorp.com/terraform-ls/0.31.5/terraform-ls_0.31.5_linux_arm.zip" + url release_repository << "/terraform-ls/0.31.5/terraform-ls_0.31.5_linux_arm.zip" sha256 "9c034356f4cd8468804b0b2f672e3570ccc05f1769c4fdb0f9a5553053d6d33f" end if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit? - url "https://releases.hashicorp.com/terraform-ls/0.31.5/terraform-ls_0.31.5_linux_arm64.zip" + url release_repository << "/terraform-ls/0.31.5/terraform-ls_0.31.5_linux_arm64.zip" sha256 "a93635caab68d92df24d5a66f8d4b6eae85a1931de0aae56d97815af5ed80c34" end diff --git a/Formula/terraform.rb b/Formula/terraform.rb index 3c913285..4f728d91 100644 --- a/Formula/terraform.rb +++ b/Formula/terraform.rb @@ -2,32 +2,34 @@ # SPDX-License-Identifier: MPL-2.0 class Terraform < Formula + release_repository = +ENV["HOMEBREW_HASHICORP_ARTIFACT_REPOSITORY_HOST"] || "https://releases.hashicorp.com" + desc "Terraform" homepage "https://www.terraform.io/" version "1.5.6" if OS.mac? && Hardware::CPU.intel? - url "https://releases.hashicorp.com/terraform/1.5.6/terraform_1.5.6_darwin_amd64.zip" + url release_repository << "/terraform/1.5.6/terraform_1.5.6_darwin_amd64.zip" sha256 "a65a994111b9d1c7fca8fdb76470430a54e1367c6342507228954d944e82f9db" end if OS.mac? && Hardware::CPU.arm? - url "https://releases.hashicorp.com/terraform/1.5.6/terraform_1.5.6_darwin_arm64.zip" + url release_repository << "/terraform/1.5.6/terraform_1.5.6_darwin_arm64.zip" sha256 "c540d0ccbfb37884232dffd277c0ed08ab01ea7c05fe61b66951dddfc0dd802c" end if OS.linux? && Hardware::CPU.intel? - url "https://releases.hashicorp.com/terraform/1.5.6/terraform_1.5.6_linux_amd64.zip" + url release_repository << "/terraform/1.5.6/terraform_1.5.6_linux_amd64.zip" sha256 "3de5135eecbdb882c7c941920846cc63b0685209f9f8532c6fc1460d9c58e347" end if OS.linux? && Hardware::CPU.arm? && !Hardware::CPU.is_64_bit? - url "https://releases.hashicorp.com/terraform/1.5.6/terraform_1.5.6_linux_arm.zip" + url release_repository << "/terraform/1.5.6/terraform_1.5.6_linux_arm.zip" sha256 "7d282388327fc2226742a8dd0af127d4ed051c9e69cc9c0379ccb831dd13b574" end if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit? - url "https://releases.hashicorp.com/terraform/1.5.6/terraform_1.5.6_linux_arm64.zip" + url release_repository << "/terraform/1.5.6/terraform_1.5.6_linux_arm64.zip" sha256 "e36dd4cbb4e4ccb96134993b36e99ef5cd5baf84f70615020dc00d91150bc277" end diff --git a/Formula/vagrant.rb b/Formula/vagrant.rb index 5629ea9e..5b9292b7 100644 --- a/Formula/vagrant.rb +++ b/Formula/vagrant.rb @@ -2,12 +2,14 @@ # SPDX-License-Identifier: MPL-2.0 class Vagrant < Formula + release_repository = +ENV["HOMEBREW_HASHICORP_ARTIFACT_REPOSITORY_HOST"] || "https://releases.hashicorp.com" + desc "Development environment" homepage "https://www.vagrantup.com/" version "2.3.7" if OS.linux? && Hardware::CPU.intel? - url "https://releases.hashicorp.com/vagrant/2.3.7/vagrant_2.3.7_linux_amd64.zip" + url release_repository << "/vagrant/2.3.7/vagrant_2.3.7_linux_amd64.zip" sha256 "4f5f6c55f9cb3ede37cd4a928f023e7ec0a3328125e76ae1166dc7908f1f48cb" end diff --git a/Formula/vault-enterprise.rb b/Formula/vault-enterprise.rb index be82daba..04bd3c1d 100644 --- a/Formula/vault-enterprise.rb +++ b/Formula/vault-enterprise.rb @@ -2,32 +2,34 @@ # SPDX-License-Identifier: MPL-2.0 class VaultEnterprise < Formula + release_repository = +ENV["HOMEBREW_HASHICORP_ARTIFACT_REPOSITORY_HOST"] || "https://releases.hashicorp.com" + desc "Vault Enterprise" homepage "https://www.vaultproject.io" version "1.14.2+ent" if OS.mac? && Hardware::CPU.intel? - url "https://releases.hashicorp.com/vault/1.14.2+ent/vault_1.14.2+ent_darwin_amd64.zip" + url release_repository << "/vault/1.14.2+ent/vault_1.14.2+ent_darwin_amd64.zip" sha256 "75e215e490ff2d512065df8f2e95fb1cd69c546a3ec615f298b45d643ba9e150" end if OS.mac? && Hardware::CPU.arm? - url "https://releases.hashicorp.com/vault/1.14.2+ent/vault_1.14.2+ent_darwin_arm64.zip" + url release_repository << "/vault/1.14.2+ent/vault_1.14.2+ent_darwin_arm64.zip" sha256 "77aa30a30dc38f7cdb8932dec04dcbf2d007bddaef49e2dce60b362ee5b451e8" end if OS.linux? && Hardware::CPU.intel? - url "https://releases.hashicorp.com/vault/1.14.2+ent/vault_1.14.2+ent_linux_amd64.zip" + url release_repository << "/vault/1.14.2+ent/vault_1.14.2+ent_linux_amd64.zip" sha256 "0bd7748a65fa860a2bcf005e83f1efc36a2c7428bf6e9434dc7f64d7b3de0f13" end if OS.linux? && Hardware::CPU.arm? && !Hardware::CPU.is_64_bit? - url "https://releases.hashicorp.com/vault/1.14.2+ent/vault_1.14.2+ent_linux_arm.zip" + url release_repository << "/vault/1.14.2+ent/vault_1.14.2+ent_linux_arm.zip" sha256 "8cf8f20d6f8734e54a5847c89e69487e8e56e6cb8a8f6e32d6ff4f1f1e55fab7" end if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit? - url "https://releases.hashicorp.com/vault/1.14.2+ent/vault_1.14.2+ent_linux_arm64.zip" + url release_repository << "/vault/1.14.2+ent/vault_1.14.2+ent_linux_arm64.zip" sha256 "adfa4b5d75c305e3d6314b76caeefb5c14c82fac55cbaf50f1083fae4f54161d" end diff --git a/Formula/vault.rb b/Formula/vault.rb index 2905f90f..60c3519d 100644 --- a/Formula/vault.rb +++ b/Formula/vault.rb @@ -2,32 +2,34 @@ # SPDX-License-Identifier: MPL-2.0 class Vault < Formula + release_repository = +ENV["HOMEBREW_HASHICORP_ARTIFACT_REPOSITORY_HOST"] || "https://releases.hashicorp.com" + desc "Vault" homepage "https://www.vaultproject.io" version "1.14.2" if OS.mac? && Hardware::CPU.intel? - url "https://releases.hashicorp.com/vault/1.14.2/vault_1.14.2_darwin_amd64.zip" + url release_repository << "/vault/1.14.2/vault_1.14.2_darwin_amd64.zip" sha256 "af2c8989ab351aa98d39b1448e041c96d1b921da328e9a41bc751f366e493e83" end if OS.mac? && Hardware::CPU.arm? - url "https://releases.hashicorp.com/vault/1.14.2/vault_1.14.2_darwin_arm64.zip" + url release_repository << "/vault/1.14.2/vault_1.14.2_darwin_arm64.zip" sha256 "6ad0916053e2bcb5523b961140bef6566a2187fd759e8b7f00cbfa22b0bd998c" end if OS.linux? && Hardware::CPU.intel? - url "https://releases.hashicorp.com/vault/1.14.2/vault_1.14.2_linux_amd64.zip" + url release_repository << "/vault/1.14.2/vault_1.14.2_linux_amd64.zip" sha256 "134a4b8d9473722b2d37d4677e8e5c7e18f5010f8866c4bbb84e2cef3daea532" end if OS.linux? && Hardware::CPU.arm? && !Hardware::CPU.is_64_bit? - url "https://releases.hashicorp.com/vault/1.14.2/vault_1.14.2_linux_arm.zip" + url release_repository << "/vault/1.14.2/vault_1.14.2_linux_arm.zip" sha256 "3fc3fabf71ddcdf62fb90a261e0db7fcc5315faa59469e0ce9744e0cf34143b3" end if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit? - url "https://releases.hashicorp.com/vault/1.14.2/vault_1.14.2_linux_arm64.zip" + url release_repository << "/vault/1.14.2/vault_1.14.2_linux_arm64.zip" sha256 "ce4c5eb14c1362a2513d60592b91b3b3a0076bd564df90d1ba2c675b3a719717" end diff --git a/Formula/vlt.rb b/Formula/vlt.rb index 9db0638a..9dc73543 100644 --- a/Formula/vlt.rb +++ b/Formula/vlt.rb @@ -2,32 +2,34 @@ # SPDX-License-Identifier: MPL-2.0 class Vlt < Formula + release_repository = +ENV["HOMEBREW_HASHICORP_ARTIFACT_REPOSITORY_HOST"] || "https://releases.hashicorp.com" + desc "Vlt CLI" homepage "https://github.com/hashicorp/vlt" version "0.2.2" if OS.mac? && Hardware::CPU.intel? - url "https://releases.hashicorp.com/vlt/0.2.2/vlt_0.2.2_darwin_amd64.zip" + url release_repository << "/vlt/0.2.2/vlt_0.2.2_darwin_amd64.zip" sha256 "22366e58764e0de22aac3bbac336e569740ec43437c0ad7e59ae5a03103642e2" end if OS.mac? && Hardware::CPU.arm? - url "https://releases.hashicorp.com/vlt/0.2.2/vlt_0.2.2_darwin_arm64.zip" + url release_repository << "/vlt/0.2.2/vlt_0.2.2_darwin_arm64.zip" sha256 "2d9d1604d82882ff8daeaa1a85919f09500e6e8457d8c0f4b4a8825dec377590" end if OS.linux? && Hardware::CPU.intel? - url "https://releases.hashicorp.com/vlt/0.2.2/vlt_0.2.2_linux_amd64.zip" + url release_repository << "/vlt/0.2.2/vlt_0.2.2_linux_amd64.zip" sha256 "20dc873769b0fe8ba9252218461a51ce803d089efd0c291d318e243aa519e82a" end if OS.linux? && Hardware::CPU.arm? && !Hardware::CPU.is_64_bit? - url "https://releases.hashicorp.com/vlt/0.2.2/vlt_0.2.2_linux_arm.zip" + url release_repository << "/vlt/0.2.2/vlt_0.2.2_linux_arm.zip" sha256 "8eeddd5de122b9c11e563a6bb170caf21fb1a84cd1a7478cbd4d2625dc54b5ea" end if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit? - url "https://releases.hashicorp.com/vlt/0.2.2/vlt_0.2.2_linux_arm64.zip" + url release_repository << "/vlt/0.2.2/vlt_0.2.2_linux_arm64.zip" sha256 "a03ed3572f18ca666182a57b65aea7b71864a1302675d4e0a126467354b9c7f5" end diff --git a/Formula/waypoint.rb b/Formula/waypoint.rb index 0d7dcc58..c185abfe 100644 --- a/Formula/waypoint.rb +++ b/Formula/waypoint.rb @@ -2,32 +2,34 @@ # SPDX-License-Identifier: MPL-2.0 class Waypoint < Formula + release_repository = +ENV["HOMEBREW_HASHICORP_ARTIFACT_REPOSITORY_HOST"] || "https://releases.hashicorp.com" + desc "Waypoint" homepage "https://www.waypointproject.io/" version "0.11.4" if OS.mac? && Hardware::CPU.intel? - url "https://releases.hashicorp.com/waypoint/0.11.4/waypoint_0.11.4_darwin_amd64.zip" + url release_repository << "/waypoint/0.11.4/waypoint_0.11.4_darwin_amd64.zip" sha256 "8942a7d00aaf0b39cec05e2f7da8788a2be0f2be0084236d228d031c6e56521f" end if OS.mac? && Hardware::CPU.arm? - url "https://releases.hashicorp.com/waypoint/0.11.4/waypoint_0.11.4_darwin_arm64.zip" + url release_repository << "/waypoint/0.11.4/waypoint_0.11.4_darwin_arm64.zip" sha256 "c23da6fe2ba4db6f63963ef2e72caa71faae70b4f598d439d6f35d6abb79f557" end if OS.linux? && Hardware::CPU.intel? - url "https://releases.hashicorp.com/waypoint/0.11.4/waypoint_0.11.4_linux_amd64.zip" + url release_repository << "/waypoint/0.11.4/waypoint_0.11.4_linux_amd64.zip" sha256 "96d314f1bc182a30ca9e93910981fbd4ecf7290763c55d2d4e8ddce2b23abdca" end if OS.linux? && Hardware::CPU.arm? && !Hardware::CPU.is_64_bit? - url "https://releases.hashicorp.com/waypoint/0.11.4/waypoint_0.11.4_linux_arm.zip" + url release_repository << "/waypoint/0.11.4/waypoint_0.11.4_linux_arm.zip" sha256 "81f9cb034cd8107dc5972130e379559c384249fe068a00653fc11c3bbb98ca31" end if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit? - url "https://releases.hashicorp.com/waypoint/0.11.4/waypoint_0.11.4_linux_arm64.zip" + url release_repository << "/waypoint/0.11.4/waypoint_0.11.4_linux_arm64.zip" sha256 "bbf331be8785a99a0bfcb4707a013355ba58516d0e9b1b78fd8808e4d2213e66" end