Commit graph

244 commits

Author SHA1 Message Date
oss-core-libraries-dashboard[bot]
73228596f4
[COMPLIANCE] Update Copyright and License Headers (Batch 3 of 7) (#13763)
Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
2025-12-22 16:46:39 +05:30
Chris Roberts
cc16c60b43
Add basic oscdimg detection on Windows
Check for the oscdimg executable on both the PATH and known installation
location. When not found, provider a user friendly error message about
the missing executable and a helper link on where it can be found.
2025-05-20 17:52:39 -07:00
Chris Roberts
ea25996b21
Update Vagrant behavior outside of installers
Remove customized require behaviors and modify the bin executable
to check for missing tools that Vagrant expects to exist when
running outside of an installer.
2025-04-02 11:40:17 -07:00
eszense
be4ef73d31
Use ISO 9660 format in create_iso under darwin
Currently `create_iso` in darwin produces CD image with hybrid format HFS+ISO 9660
This is less interoperable than ISO 9660 alone. In particular, CD label is not readable by the udev and breaks some automated configuration system.
2024-12-29 23:49:30 +08:00
Chris Roberts
8b06640fcf
Use helper for require calls 2024-11-06 17:33:00 -08:00
Allison Larson
380eccc3b9 bsd/nfs: Check the status of nfsd before update/restart 2024-08-21 13:55:48 -07:00
Allison Larson
282b46904b bsd/nfs: Use nfs_update_command instead of restart 2024-08-21 10:49:47 -07:00
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