Skip to content

Commit

Permalink
Merge pull request #13517 from max-arnold/fix-salt-bootstrap
Browse files Browse the repository at this point in the history
Fix Salt bootstrap script URLs
  • Loading branch information
chrisroberts authored Nov 1, 2024
2 parents 1413e1f + fd281cf commit d43f154
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions plugins/provisioners/salt/bootstrap_downloader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
module VagrantPlugins
module Salt
class BootstrapDownloader
WINDOWS_URL = "https://winbootstrap.saltproject.io"
URL = "https://bootstrap.saltproject.io"
SHA256_SUFFIX = "sha256"
WINDOWS_URL = "https://github.com/saltstack/salt-bootstrap/releases/latest/download/bootstrap-salt.ps1"
URL = "https://github.com/saltstack/salt-bootstrap/releases/latest/download/bootstrap-salt.sh"
SHA256_SUFFIX = ".sha256"

def initialize(guest)
@guest = guest
Expand All @@ -32,8 +32,8 @@ def get_bootstrap_script
end

def verify_sha256(script)
@logger.debug "Downloading sha256 file from #{source_url}/#{SHA256_SUFFIX}"
sha256_file = download("#{source_url}/#{SHA256_SUFFIX}")
@logger.debug "Downloading sha256 file from #{source_url}#{SHA256_SUFFIX}"
sha256_file = download("#{source_url}#{SHA256_SUFFIX}")
sha256 = extract_sha256(sha256_file.read)
sha256_file.close

Expand Down

0 comments on commit d43f154

Please sign in to comment.