Skip to content

Commit

Permalink
Fix Salt bootstrap script URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
max-arnold authored Oct 26, 2024
1 parent 71150ee commit c9ca8e7
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://winbootstrap.saltproject.io/bootstrap-salt.ps1"
URL = "https://bootstrap.saltproject.io/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

1 comment on commit c9ca8e7

@pmarches
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding a relevant error message that this commit will fix.

==> minion2: Running provisioner: salt...
Copying salt minion config to vm.
Uploading minion keys.
Checking if salt-minion is installed
salt-minion was not found.
Checking if salt-call is installed
salt-call was not found.
Using Bootstrap Options: -P -c /tmp -x python3 -F -c /tmp stable
Bootstrapping Salt... (this may take a while)
bootstrap-salt.sh: 2:
Syntax error: newline unexpected

The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

/tmp/bootstrap_salt.sh -P -c /tmp -x python3 -F -c /tmp stable

Stdout from the command:



Stderr from the command:

bootstrap-salt.sh: 2: Syntax error: newline unexpected

Please sign in to comment.