Note provisioners that don't work on Windows guests
This commit is contained in:
parent
bd51c16700
commit
72030d2180
|
@ -504,6 +504,10 @@ module Vagrant
|
||||||
error_key(:provisioner_flag_invalid)
|
error_key(:provisioner_flag_invalid)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class ProvisionerWinRMUnsupported < VagrantError
|
||||||
|
error_key(:provisioner_winrm_unsupported)
|
||||||
|
end
|
||||||
|
|
||||||
class PluginGemNotFound < VagrantError
|
class PluginGemNotFound < VagrantError
|
||||||
error_key(:plugin_gem_not_found)
|
error_key(:plugin_gem_not_found)
|
||||||
end
|
end
|
||||||
|
|
|
@ -5,6 +5,11 @@ module VagrantPlugins
|
||||||
module CFEngine
|
module CFEngine
|
||||||
class Provisioner < Vagrant.plugin("2", :provisioner)
|
class Provisioner < Vagrant.plugin("2", :provisioner)
|
||||||
def provision
|
def provision
|
||||||
|
if @machine.config.vm.communicator == :winrm
|
||||||
|
raise Vagrant::Errors::ProvisionerWinRMUnsupported,a
|
||||||
|
name: "cfengine"
|
||||||
|
end
|
||||||
|
|
||||||
@logger = Log4r::Logger.new("vagrant::plugins::cfengine")
|
@logger = Log4r::Logger.new("vagrant::plugins::cfengine")
|
||||||
|
|
||||||
@logger.info("Checking for CFEngine installation...")
|
@logger.info("Checking for CFEngine installation...")
|
||||||
|
|
|
@ -7,6 +7,11 @@ module VagrantPlugins
|
||||||
|
|
||||||
class PuppetServer < Vagrant.plugin("2", :provisioner)
|
class PuppetServer < Vagrant.plugin("2", :provisioner)
|
||||||
def provision
|
def provision
|
||||||
|
if @machine.config.vm.communicator == :winrm
|
||||||
|
raise Vagrant::Errors::ProvisionerWinRMUnsupported,
|
||||||
|
name: "puppet_server"
|
||||||
|
end
|
||||||
|
|
||||||
verify_binary("puppet")
|
verify_binary("puppet")
|
||||||
run_puppet_agent
|
run_puppet_agent
|
||||||
end
|
end
|
||||||
|
|
|
@ -4,6 +4,11 @@ module VagrantPlugins
|
||||||
module Salt
|
module Salt
|
||||||
class Provisioner < Vagrant.plugin("2", :provisioner)
|
class Provisioner < Vagrant.plugin("2", :provisioner)
|
||||||
def provision
|
def provision
|
||||||
|
if @machine.config.vm.communicator == :winrm
|
||||||
|
raise Vagrant::Errors::ProvisionerWinRMUnsupported,
|
||||||
|
name: "salt"
|
||||||
|
end
|
||||||
|
|
||||||
upload_configs
|
upload_configs
|
||||||
upload_keys
|
upload_keys
|
||||||
run_bootstrap_script
|
run_bootstrap_script
|
||||||
|
|
|
@ -864,6 +864,17 @@ en:
|
||||||
provisioner_flag_invalid: |-
|
provisioner_flag_invalid: |-
|
||||||
'%{name}' is not a known provisioner. Please specify a valid
|
'%{name}' is not a known provisioner. Please specify a valid
|
||||||
provisioner.
|
provisioner.
|
||||||
|
provisioner_winrm_unsupported: |-
|
||||||
|
The provisioner '%{name}' doesn't support provisioning on
|
||||||
|
Windows guests via WinRM. This is likely not a limitation
|
||||||
|
of the provisioner itself but rather that Vagrant doesn't know
|
||||||
|
how to run this provisioner over WinRM.
|
||||||
|
|
||||||
|
If you'd like this provisioner to work over WinRM, please
|
||||||
|
take a look at the Vagrant source code linked below and try
|
||||||
|
to contribute back support. Thank you!
|
||||||
|
|
||||||
|
https://github.com/mitchellh/vagrant
|
||||||
rsync_error: |-
|
rsync_error: |-
|
||||||
There was an error when attempting to rsync a synced folder.
|
There was an error when attempting to rsync a synced folder.
|
||||||
Please inspect the error message below for more info.
|
Please inspect the error message below for more info.
|
||||||
|
|
Loading…
Reference in New Issue