You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you specify a version with salt_version when installing on a windows instance, the minion installation fails because bootstrap_options are set to config[:salt_bootstrap_options] = "-P git v#{salt_version}" and, -P is not a valid command line option to the bootstrap-salt.ps1 powershell script.
def setup_salt
debug(diagnose)
salt_version = config[:salt_version]
# if salt_verison is set, bootstrap is being used & bootstrap_options is empty,
# set the bootstrap_options string to git install the requested version
if (salt_version != 'latest') && (config[:salt_install] == 'bootstrap') && config[:salt_bootstrap_options].empty?
debug("Using bootstrap git to install #{salt_version}")
config[:salt_bootstrap_options] = "-P git v#{salt_version}"
end
The workaround is to specific the bootstrap_options:
If you specify a version with
salt_version
when installing on a windows instance, the minion installation fails because bootstrap_options are set toconfig[:salt_bootstrap_options] = "-P git v#{salt_version}"
and,-P
is not a valid command line option to the bootstrap-salt.ps1 powershell script.The code is on line 140 of kitchen-salt/lib/kitchen/provisioner/salt_solo.rb.
The workaround is to specific the bootstrap_options:
The text was updated successfully, but these errors were encountered: