Commit graph

237 commits

Author SHA1 Message Date
hashicorp-copywrite[bot]
36a312ee26
add missing license headers and update copyright file headers to BUS-1.1 2023-08-10 21:53:25 +01:00
Daniele Penazzo
157a182ec7
Update plugins/hosts/arch/host.rb
Co-authored-by: Sophia Castellarin <sophia@hashicorp.com>
2023-01-24 07:46:24 +01:00
Penaz
0ee7eb338f Ensure Arch Plugin doesn't detect Artix Linux
Some Artix Linux Distributions may be "migrated" from Arch and contain
the "/etc/arch-release" file, leading to an incorrect OS being detected.
2023-01-23 20:45:55 +01:00
Chris Roberts
c75e05d4b1
Merge pull request #12913 from nist/File.exists
Replace deprecated File.exists? with File.exist?.
2022-11-08 15:07:21 -08:00
Nicolas St-Laurent
6f9f88e055 Replace deprecated File.exists? with File.exist?. 2022-09-22 08:54:46 -04:00
Chris Roberts
b21e4b0602 Use static file path when creating new exports file 2022-09-21 10:35:55 -07:00
sophia
cda3ba7b29
Make myplugin have parents darwin and bsd 2022-04-25 12:24:48 -05:00
sophia
bff3af4a00
Make myplugin a parent of bsd plugin 2022-04-25 12:24:48 -05:00
Chris Roberts
2d7ce1b9d8
Remove dummy capability from host plugin 2022-04-25 12:24:47 -05:00
Chris Roberts
678ffa60dc
Add state bag argument to dummy capability 2022-04-25 12:24:45 -05:00
Chris Roberts
4167bf890a
Update dummy capability for testing 2022-04-25 12:24:44 -05:00
Chris Roberts
ab6f18093b
Add dummy capability to void host plugin for testing 2022-04-25 12:24:43 -05:00
Paul Cacheux
2bc1e2927b Fix missing VagrantPlugins::HostDarwin::Cap::Version on Big Sur 2021-11-08 16:22:12 +01:00
Chris Roberts
5f0e5652b1 Only resolve path with firmlink prefix on Catalina 2021-11-02 16:44:06 -07:00
Chris Roberts
6810c7b4bb Add version capability to darwin host plugin 2021-11-02 16:43:26 -07:00
Chris Roberts
406c4737ec
Merge pull request #12398 from pszlazak/patch-1
Escape spaces in SSH key_path
2021-08-13 15:52:31 -07:00
sophia
5981f141e3 Check Domain and Application Directory contexts for credentials when validating SMB creds 2021-06-22 17:14:25 -05:00
pszlazak
ba2c195818
Escape spaces in SSH key_path 2021-05-27 14:34:15 +02:00
sophia
7577c11eb6 Persist synced folders in action 2020-08-19 15:00:40 -05:00
sophia
e7e956ca12 Fix a few deprecation warnings for ruby 2.7 2020-08-10 16:32:54 -05:00
Chris Roberts
786273c1ab
Merge pull request #11795 from LachlanArthur/smb-credential-check-2
Fix SMB credential checks
2020-08-07 15:17:58 -07:00
Sophia Castellarin
be10e060e6
Merge pull request #11732 from soapy1/detach-from-subprocess
Detach from subprocess
2020-08-07 11:11:03 -05:00
sophia
6341563e84 Allow Linux RDP cap detach from rdp process for consistency 2020-08-06 16:19:11 -05:00
Lachlan Arthur
c2df34298f Fix SMB credential validation on Windows hosts 2020-07-30 17:10:18 +10:00
sophia
5caae15f22 Move isofs_available cap to plugin 2020-07-23 14:42:45 -05:00
sophia
8e406184cb Add windows cap for building iso 2020-07-08 11:51:09 -05:00
sophia
b1d1c20ff7 Refactor building iso 2020-07-08 11:40:00 -05:00
sophia
4a77060805 Add linux cap 2020-07-08 11:15:26 -05:00
sophia
33d7c94320 Refactor iso building into a util 2020-07-08 10:24:21 -05:00
sophia
afae8c5640 Make tests check for output directory creation 2020-07-02 09:53:40 -05:00
sophia
ed8d6b007e Detach from windows process when launching rdp 2020-06-30 16:16:23 -05:00
sophia
7322c74eef Add optional arguments as a hash 2020-06-29 14:10:13 -05:00
sophia
decd489a6d Overwrite outputfile if exists and update available 2020-06-16 09:32:40 -05:00
sophia
1ff6582fff Refactor out shared utility 2020-06-16 09:32:37 -05:00
sophia
e1d104a8e3 Build iso for Darwin host 2020-06-15 09:55:15 -05:00
Chris Roberts
f5a957f949 WIP 2020-06-11 10:39:35 -05:00
Sophia Castellarin
54972c045b
Merge pull request #10592 from ichesnokov/master
Make sure that ips array contains unique values
2020-03-30 10:31:48 -04:00
Jeff Bonhag
c6ee1049aa
Darwin: put each NFS export on its own line (#11216)
This commit introduces a Darwin-specific template for NFS exports.  This is almost identical to the standard BSD template except it puts each NFS export on its own line.

This resolves NFS issues discovered in macOS Catalina.
2019-11-25 15:41:05 -05:00
Antonio Terceiro
4fd2373753 nfs: avoid adding extra newlines to /etc/exports
StringBlockEditor already adds the necessary newlines. That extra
newline was making /etc/exports longer and longer, full of empty lines,
because StringBlockEditor doesn't know about it and does not remove it.
2019-11-17 00:33:08 -03:00
Jeff Bonhag
8a69c1205c
Fixes #10170: Check for modinfo in /sbin (#11178)
Check for modinfo in /sbin if it doesn't appear on the PATH.

If it's not found on the PATH or in /sbin, the command will default back to modinfo so the user sees the error message about adding it to their PATH.
2019-11-06 16:10:24 -05:00
Chris Roberts
b12a23273e
Merge pull request #11108 from chrisroberts/macos-catalina
Fix NFS sharing in macOS 10.15 (based on #11105)
2019-10-10 09:20:33 -07:00
Chris Roberts
8f42dbff21 Add a resolve_host_path capability for bsd and darwin hosts
For bsd the resolve_host_path capability is a no-op. For darwin
hosts, if firmlinks are defined on the system, paths will be properly
resolved to real path.
2019-10-08 16:41:48 -07:00
Chris Roberts
2c16c96e57 Update nfs_export cap to use resolve_host_path cap for shared directories
Using the resolve_host_path capability allows hosts to modify the
shared folder directory while keeping the logic contained within
the specific host implementation.
2019-10-08 16:38:52 -07:00
Andy Fowler
e288a5b732 df -> /bin/df to use macOS version
Thanks, @AntonioMeireles!
2019-10-08 13:21:34 -07:00
Andy Fowler
ae9c3e28d6 Fix #10961 NFS sharing in macOS 10.15 host
On OS X 10.15, / is read-only and paths inside of /Users (and elsewhere)
are mounted via a "firmlink" (which is a new invention in APFS). These
must be resolved to their full path to be shareable via NFS.

/Users/johnsmith/mycode  =>  /System/Volumes/Data/Users/johnsmith/mycode

We check to see if a path is mounted here with `df`, and prepend it.

Firmlinks are only createable by the OS and this wasn't supposed to be
visible to applications anyway:
https://developer.apple.com/videos/play/wwdc2019/710/?time=481
2019-10-08 13:21:34 -07:00
Dan Čermák
a3588c28a8
Update nfs & service daemon names for suse based hosts
- nfs.service got recently removed in openSUSE Tumbleweed and calling service
  restart nfs errors out on Tumbleweed. nfs.service has been an alias to
  nfs-client.target for a very long time and can thus be safely substituted.
- all actively supported versions of openSUSE & SLE are using systemd now
  => no reason not to use systemctl
2019-09-18 23:28:18 +02:00
Brian Cain
fc4e03d559
Fixes #10609: Properly set BSD options for /etc/exports
Prior to this commit, the BSD options for the /etc/exports file was not
properly set up in the correct order for a given entry. It was however
fixed for FreeBSD, but never for the original exports template. This
commit fixes that by unifying the BSD and FreeBSD templates.
2019-06-13 11:44:12 -07:00
Renato Aguiar
4de7716ffb Fix NFS capability detection on Void Linux 2019-03-05 10:03:52 -08:00
Ilya Chesnokov
a300acfcf0 Make sure that ips array contains unique values
Fixes #10591
2019-01-14 14:10:51 +03:00
Chris Roberts
f4cb33e954
Merge pull request #10012 from Aloz1/add-host-voidlinux
Add void linux host support
2018-12-19 16:21:52 -08:00