Matt Wrock
e22767184b
exit wit code 1 from powershell commands that fail but do not send an exit code
2014-08-24 10:18:03 -07:00
Gavin Swanson
59826264b8
Update Windows Salt provisioner version
2014-08-23 15:36:52 -07:00
Fedor Sumkin
f2c7dc05a1
Verbose output for docker provisioner
...
Verbose output for docker build and pull tasks
2014-08-22 19:41:01 +04:00
Stefan Scherer
f0ef46f648
write to stdout before exit 1
2014-08-17 16:22:35 +02:00
Nathan Mische
70d060cc85
Changing default repo URL.
2014-08-11 21:13:12 -04:00
Mitchell Hashimoto
a53156e426
core: don't allow '/' in VM name [GH-4289]
2014-08-11 09:21:31 -07:00
Matt Wrock
d820bef6f4
filter host IPs to those that resolve on guest when finding addresable IPs on a windows guest
2014-08-11 00:07:21 -07:00
Matt Wrock
e64f84491e
adding smb sync folder implementation for windows guests addressing #3699
2014-08-11 00:07:21 -07:00
Mitchell Hashimoto
b675be383b
core: disallow brackets in VM names [GH-4319]
2014-08-10 21:05:29 -07:00
Mitchell Hashimoto
7068f4e37b
Merge pull request #4324 from mwrock/generation
...
providers/hyper-v: fixes import for hyper-v generation 2 VMs
2014-08-10 20:42:30 -07:00
Paris Holley
802d17a248
remove vm by default when using docker run
2014-08-09 12:03:35 -07:00
Matt Wrock
be75702f35
fixes import for hyper-v generation 2 VMs
2014-08-09 10:30:10 -07:00
Mitchell Hashimoto
6e4541110b
Merge pull request #4313 from w3ttr3y/master
...
Fixes 4309: Error when provisioning Windows host using Puppet
2014-08-08 18:24:53 -07:00
Mitchell Hashimoto
8bee751898
commands/reload: show post-up message [GH-4168]
2014-08-08 17:40:07 -07:00
Mitchell Hashimoto
2214591bef
providers/hyperv: fix double-dot in drive name [GH-4318]
2014-08-08 12:15:03 -07:00
Mitchell Hashimoto
ae1a03903e
providers/virtualbox: error if can't read VM name [GH-4047]
2014-08-08 10:49:07 -07:00
Mitchell Hashimoto
0da5d7b650
communicators/ssh: clean error on max session [GH-4044]
2014-08-08 09:11:25 -07:00
Mitchell Hashimoto
5ed0b22c78
communicators/ssh: cleaner error if remote disconnect [GH-4038]
2014-08-07 11:53:44 -07:00
William E. Triest. III
4a2566c646
Fixes 4309
...
When the winrm communicator executes a command in an elevated shell,
this patch causes it to escape double quotes.
This is necessary as the first line in the file that it produces and
then executes it puts the command into a variable called command that
is delimited by double quotes.
2014-08-07 08:49:36 -04:00
Mitchell Hashimoto
a08d9078da
commands/rsync-auto: check machine ID prior to sync [GH-4031]
2014-08-06 16:56:09 -07:00
Mitchell Hashimoto
1428ab0404
providers/docker: single port works [GH-3991]
2014-08-06 15:34:41 -07:00
Kostyantyn Fomin
c43ab95f86
Fix Issue 4307: FreeBSD fix interface device names in /etc/rc.conf
...
https://github.com/mitchellh/vagrant/issues/4307
Fix details:
Pass network interface name to template renderer and use it
in static and dhcp templates to render /etc/rc.conf entries.
modified: plugins/guests/freebsd/cap/configure_networks.rb
modified: templates/guests/freebsd/network_dhcp.erb
modified: templates/guests/freebsd/network_static.erb
Verification scenario:
Check if /etc/rc.conf contains vtnet entries when paravirtualized
NIC devices are used in FreeBSD guest.
2014-08-06 14:10:05 -07:00
Mitchell Hashimoto
00bd226fc7
guests/nixos: don't detect as Windows [GH-4302]
2014-08-06 11:17:41 -07:00
Mitchell Hashimoto
b516881d47
provisioners/puppet: don't repeat output when prov fails [GH-4303]
2014-08-06 11:11:12 -07:00
Mitchell Hashimoto
1cc78dc224
provisioners/salt: use exit code to detect failure [GH-4304]
2014-08-06 11:07:09 -07:00
Mitchell Hashimoto
3bc5ecfbd0
provisioners/salt: whitespace
2014-08-06 11:05:03 -07:00
Mitchell Hashimoto
3f456cdf45
Merge pull request #4088 from salimane/pr_nfs_rpcbind_centos
...
guests/centos: Restart rpcbind and nfs while installing nfs client on centos guests
2014-08-06 10:47:38 -07:00
Mitchell Hashimoto
94841ef1bc
Merge pull request #4094 from mitchellh/improved-winrm-command-failure-messaging
...
provisioners/winrm: Better WinRM command failure messaging
2014-08-06 10:44:35 -07:00
Mitchell Hashimoto
e82d425719
Merge pull request #4087 from zr40/fix/master/prevent-double-output
...
Don't output stdout and stderr twice when shell provisioner fails
2014-08-06 10:32:13 -07:00
Mitchell Hashimoto
0f3e4242df
Merge pull request #3934 from xstevecs/master
...
providers/virtualbox: Disable automatic enablement of hostiocache
2014-08-06 10:27:20 -07:00
Mitchell Hashimoto
7fb153a2ef
Merge pull request #3932 from marnovdm/feature/salt-modular-version
...
provisioners/salt: Updates Salt Minion version in Salt Bootstrap script for Windows
2014-08-06 10:25:58 -07:00
Mitchell Hashimoto
2cdcc29902
provisioners/chef: put global lock around knife exec
2014-08-06 10:24:05 -07:00
Mitchell Hashimoto
22395e5cb4
Merge pull request #4099 from mitchellh/fix-issue-2476-chef-client-node-cleanup
...
provisioners/chef: clean bundle env when executing chef client
2014-08-06 10:13:37 -07:00
Mitchell Hashimoto
e1ea304884
Merge pull request #4169 from schauer/patch-1
...
provisioners/puppet: manifest file can be a dir too
2014-08-06 09:56:24 -07:00
Mitchell Hashimoto
3b2e3b6a69
Merge pull request #4207 from stevemcc/enhancement/virtualbox_36_nic
...
Changed hardcoded number of interfaces, fixes #4206 .
2014-08-06 09:51:30 -07:00
Mitchell Hashimoto
79fd20c8c7
Merge pull request #4208 from mwrock/file-path
...
providers/hyperv: accept vhd as well as vhdx file types on hyper-v
2014-08-05 17:51:11 -07:00
Mitchell Hashimoto
864328e0b1
Merge pull request #4224 from kamazee/fix/master/nfs_archlinux_systemd
...
hosts/arch: Fix NFS server starting/stopping and status check
2014-08-05 17:46:40 -07:00
Mitchell Hashimoto
4600963dc9
Merge pull request #4228 from stvleung/fix-master-add-el7-nfs-support
...
hosts/redhat: use systemd for NFS on RH7+
2014-08-05 17:44:35 -07:00
Mitchell Hashimoto
f5854c5618
Merge pull request #4234 from b-dean/fixnum-array-args-fix
...
provisioner/shell: fix cannot handle Fixnum array args
2014-08-05 17:29:59 -07:00
Mitchell Hashimoto
7aff08f9a1
Merge pull request #4271 from Scythril/winrm_mkdir_rm_filter
...
communicator/winrm: Fixed some WinRM command filters
2014-08-05 17:22:24 -07:00
Mitchell Hashimoto
bd94fbd9ba
Merge pull request #4274 from sax/smartos_rsync
...
guests/smartos: rsync on SmartOS should use pfexec
2014-08-05 17:20:38 -07:00
Mitchell Hashimoto
98667f06c8
Merge pull request #4282 from Mayflower/feature/config-box_server_url
...
core: add config.vm.box_server_url setting
2014-08-05 17:19:12 -07:00
Gilles Dubreuil
bd4d4284c4
Fixes Fedora 20 network issues when virtual
...
On Fedora 20 virtual machines biosdevname command
'Returns 4 if running in a virtual machine.'
This patch:
- Uses the biosdevname command return value to detect if virtual
- Uses /sys/net to get interface names - Might be better solution
- Leaves unchanged the original 'bare metal' case - I wonder what for
though?
Tested with Fedora Cloud image adapted for vagrant-libvirt
Fixes issue #4104
2014-08-05 13:19:51 +10:00
Franz Pletz
6def193567
Add config.vm.box_server_url setting
...
This commits adds a new config setting `config.vm.box_server_url` to set
the URL of a local VagrantCloud instance in the Vagrantfile. If the
environment variable `VAGRANT_SERVER_URL` is set, it will still be
preferred.
2014-08-01 14:38:55 +02:00
Eric Saxby
0cb7ec2d52
rsync on SmartOS should use pfexec
2014-07-31 14:41:06 -07:00
Richard Guin
120b15bc39
Modified WinRM rm filter to account for -f switch, handle recurse properly
2014-07-30 15:43:37 -04:00
Richard Guin
361d41527a
Added mkdir command filter for WinRM to be compatible with PS4+
2014-07-30 15:43:11 -04:00
Ben Dean
dbb92ae412
change the shell provision config to make all the args strings
...
specifically arrays could contain `Fixnum` args and those wouldn't get turned into strings.
2014-07-22 15:41:01 -04:00
Alexander Kurilo
d2b65a9efa
Fix NFS server running and status check
...
According to https://wiki.archlinux.org/index.php/NFS#Starting_the_server
2014-07-22 16:47:12 +03:00
Steven Leung
1fc36d2d3a
Redhat 7 to use systemd as well …
...
Change nfs plugin to detect distribution and version
Fixes issue #4227
2014-07-21 10:56:06 -07:00
Matt Wrock
efd7c619d1
accept vhd as well as vhdx file types on hyper-v
2014-07-17 02:50:51 -07:00
Steve McConville
de7ed34120
Changed hardcoded number of interfaces, fixes #4206 .
2014-07-17 09:52:57 +01:00
Shawn Neal
5c148e44c3
Merge pull request #4102 from mitchellh/windows-guest-rename-compat
...
Addressed issues with Windows guest renaming on Win7/8
2014-07-10 13:30:15 -07:00
schauer
8a45485de4
Update puppet.rb
...
The main manifest may be a single file or a directory of .pp files.
docs.puppetlabs.com/puppet/latest/reference/dirs_manifest.html#with-puppet-master
https://github.com/mitchellh/vagrant/issues/4039
2014-07-09 21:37:55 +02:00
Shawn Neal
99a537605c
Fixed issue 4161
...
Wrong varaible name was used to try and delete the existing Vagrantfile causing an error.
2014-07-08 13:19:43 -07:00
Keith Shook
93f84f53e5
Ensure VirtualBox virtual disks are stored in the correct directory round 2
2014-07-02 10:08:44 -04:00
Keith Shook
0912ddaf5f
Ensure VirtualBox virtual disks are stored in the correct directory on Windows hosts
2014-07-02 08:55:00 -04:00
Akzhan Abdulin
bf2e8deebe
VirtualBox driver should replace only last occurence of suggested VM name.
2014-07-02 08:52:31 -04:00
jdmulloy
50d0861de4
Removed extra n from the word "connection"
...
Removed extra n from the word "connection" in "Attempting SSH connection" in logger call.
2014-06-27 19:27:23 -04:00
Shawn Neal
911406ed4a
Addressed issues with Windows guest renaming on Win7/8
...
Removed dependency upon netdom which is not always available on all Windows versions. This implementation that uses PowerShell and WMI should work on all OS and PowerShell versions.
Fixed another issue where host renames would always happen when the hostname was longer than 15 characters. The COMPUTERNAME environment variable only returns the first 15 characters so we no longer use that to check the current host name.
2014-06-25 12:15:01 -07:00
Shawn Neal
2fd634273f
First attempt at trying to fix issue 2476
...
This addresses the error "chef is not part of the bundle" when the chef-client provisioner attempts to delete the node or client from the Chef Server. While this fixes the specific issue on my system, its likely that it does not account for all system configurations like RVM.
The Bundler.with_clean_env should probably be moved internally to Subprocess.execute, but that's a riskier change and I'd like to get some feedback before even attempting that size of change.
2014-06-24 16:49:17 -07:00
Shawn Neal
c72a412600
Better WinRM command failure messaging
...
Command failures include the stdout and stderr in the error message just like the SSH communicator.
Its now possible to specify only an error_class and have that use the correct error_key by default.
2014-06-24 10:09:11 -07:00
Salimane Adjao Moustapha
dd74a82d56
avahi not needed
2014-06-23 17:17:54 +02:00
Salimane Adjao Moustapha
b96dc972e0
install rpc package while installing nfs client on centos guests
2014-06-23 14:56:10 +02:00
Matthijs van der Vleuten
1091b4cb54
Don't output stdout and stderr twice when shell provisioner fails
...
[GH-4086]
2014-06-23 11:35:40 +02:00
Brett Porter
0c7c143ad1
fix escaping of powershell variable
...
As this is nested in a powershell variable $command, it must be escaped
otherwise it is evaluated when the variable is created, giving an error that
"The term 'True' is not recognized as the name of a cmdlet, function,
script". This prevented using a puppet.working_directory on Windows.
2014-06-18 16:05:17 +10:00
Mitchell Hashimoto
0c3d677bf5
Merge pull request #4006 from mitchellh/fix-issue-3987
...
guests/windows: reboot after hostname change
2014-06-12 11:40:22 -07:00
Mitchell Hashimoto
4d76327382
guests/freebsd: style
2014-06-12 11:38:53 -07:00
Calvin Hendryx-Parker
eda1ac5667
Updated the rsync freebsd plugin install process for FreeBSD 10
2014-06-10 15:07:50 -04:00
Shawn Neal
d4bd05883d
Fixed issue 3987
...
Reboot the Windows guest after renaming the computer so changes take affect immediately before attempting to provision the box.
- Changed rename from wmic to netdom since netdom seems to work correctly in Windows 2008R2 and newer OSs.
- Fixed Windows guest error translations, the wrong namespace was specified in the yaml file.
2014-06-09 22:46:03 -07:00
Doug MacEachern
3b1b3d0a00
Add nixos guest capability: nfs_client_installed
2014-06-05 17:53:32 -07:00
Mitchell Hashimoto
984bea0bd4
Merge pull request #3962 from StefanScherer/fix_hosts_windows_cap_rdp
...
hosts/windows: fixed writing rdp file on windows host
2014-06-02 22:08:13 -07:00
StefanScherer
1b32cbade2
fixed writing rdp file
2014-06-03 06:57:14 +02:00
Ben Hines
7d52f0e14d
Backtick-escape the facter env command in powershell. Fixes issue 3958
2014-06-02 19:37:29 -07:00
steve
9444e2dc43
Disable automatic ennoblement of hostiocache
...
This can cause behavior that requires re stat’ing
files to for the guest to realize they have
changed. Prevents manually dialing this option.
2014-05-29 10:27:00 -07:00
Shawn Neal
291f01045b
Fixed issue 3918
...
Running Windows guest commands through a scheduled task were not returning the correct exit codes, they were only returning 1 or 0. This has negative consequences especially for Puppet which can return an exit code of 2 for partial success.
Since we're running an executable from inside a powershell encoded command we need to ensure we explicitly propagate the exit code to the original caller just like a regular PowerShell script - in this case cmd /c which in return is called from a scheduled task.
2014-05-28 08:54:36 -07:00
Marno van der Molen
127ef683e7
make sure C:\tmp\ exists before downloading salt installer
2014-05-28 15:24:47 +02:00
Marno van der Molen
d93a2c0e55
Made Salt Minion version to install a variable - ideally Salt would offer a -latest.exe or something for Windows
2014-05-28 11:09:59 +02:00
Emiliano Ticci
6bd7359c1b
provisioners/puppet: run in elevated mode on Win guests
2014-05-26 11:23:14 +02:00
Matt Behrens
ef44f19601
drop `-r` flag from `xargs` on OS X
...
OS X's `xargs` does not support the `-r` flag (which means "do not
execute the command even once if there are no arguments"), but
behaves by default as if it was specified.
You can verify this yourself with this test:
$ touch zero-length-file
$ xargs echo <zero-length-file
If `echo` is executed, you will see a blank line. If it is not
executed (i.e. `-r` is specified or the behavior is implied) then
you will see no blank line.
2014-05-25 18:42:40 -04:00
Mitchell Hashimoto
f99b2bac5d
comamnds/box/add: change help text
2014-05-25 12:54:48 -07:00
Adam Spiers
930254c304
make init --help text more accurate
2014-05-24 20:38:24 +01:00
Adam Spiers
a87cfbeea2
make box add --help text more accurate
...
Fixes #3898 .
2014-05-24 20:37:47 +01:00
Mitchell Hashimoto
ac7012279c
commands/box/add: clarify help text
2014-05-24 11:24:25 -07:00
Mitchell Hashimoto
6369d870d8
providers/docker: support for UDP forwarded ports [GH-3886]
2014-05-23 10:16:16 -07:00
Mitchell Hashimoto
aa70a816a5
Merge pull request #3874 from gpurkins/sol11-networkfix
...
guests/solaris11: Added conditional for temporary interfaces
2014-05-22 10:22:30 -07:00
Mitchell Hashimoto
43f347a737
hosts/windows: RDP cap shouldn't remove tempfile [GH-3875]
2014-05-22 10:20:45 -07:00
Kalman Hazins
bb052366f7
Change symbols inside hashes to 1.9 JSON-like syntax
2014-05-22 12:35:12 -04:00
gpurkins
dcc7a755c9
added conditional for temporary interfaces
2014-05-21 18:21:05 -04:00
Mitchell Hashimoto
07dbe40e98
Merge pull request #3848 from shtouff/feat-capath
...
added capath option to curl Downloader
2014-05-20 20:50:26 -07:00
Mitchell Hashimoto
01a8e50235
hosts/windows: use subprocess to execute mstsc [GH-3837]
2014-05-20 20:47:32 -07:00
Mitchell Hashimoto
6c5251f499
providers/docker: verify host VM SSH is ready [GH-3838]
2014-05-20 20:41:48 -07:00
Mitchell Hashimoto
4e7a25f6de
Merge pull request #3807 from mitchellh/fix-docker-ssh-wo-host-vm
...
providers/docker: Fix SSH access to container when no Host VM is in use
2014-05-20 20:32:21 -07:00
Mitchell Hashimoto
f94b902023
kernel/v2? more clever: default port to guest port
2014-05-20 20:31:53 -07:00
Mitchell Hashimoto
8856bab04b
kernel/v2: default SSH port to 22
2014-05-20 20:31:14 -07:00
Mitchell Hashimoto
6445ca3460
Merge pull request #3825 from marnovdm/feature/salt-windows-guest-provisioning
...
Feature/salt windows guest provisioning
2014-05-20 20:23:03 -07:00
Mitchell Hashimoto
2771bf8675
commands/rdp: avoid rdp_info being nil
2014-05-20 20:18:15 -07:00
Mitchell Hashimoto
4dbe534c02
commands/rdp: rdp_info cap if avail [GH-3832]
2014-05-20 20:17:21 -07:00
Mitchell Hashimoto
d7fa60b5df
communicators/winrm: use winrm_info cap if available [GH-3832]
2014-05-20 20:13:36 -07:00
Mitchell Hashimoto
f369c13e25
hosts/linux: niceer error if rdesktop not found
2014-05-20 19:58:12 -07:00