-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5327 from wazuh/change/5226-dtt1-iteration-3-allo…
…cation-module-update-host-for-macos-intel-with-the-new-macstadium-host Support for macOS Intel host added
- Loading branch information
Showing
7 changed files
with
73 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
17 changes: 17 additions & 0 deletions
17
deployability/modules/allocation/static/templates/vagrant_parallels_intel.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Vagrant.configure("2") do |config| | ||
# Box image settings | ||
config.vm.box = "{{ config.box }}" | ||
|
||
# VirtualBox specific settings | ||
config.vm.provider "parallels" do |v| | ||
v.memory = "4096" | ||
v.cpus = "2" | ||
v.name = "{{ config.name }}" | ||
v.linked_clone = false | ||
end | ||
|
||
# Network settings | ||
config.ssh.forward_agent = true | ||
config.vm.network "forwarded_port", guest: 22, host: "{{ config.port }}" | ||
config.vm.synced_folder ".", "/vagrant", disabled: true | ||
end |
23 changes: 23 additions & 0 deletions
23
deployability/modules/allocation/vagrant/helpers/vagrant_script.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
# Set the path to Vagrant directory | ||
VAGRANT_DIR="/usr/local/bin" | ||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" | ||
|
||
# Add Vagrant directory to PATH | ||
export PATH=$PATH:$VAGRANT_DIR | ||
|
||
# Check if an argument is provided | ||
if [ $# -eq 0 ] | ||
then | ||
echo "Usage: $0 [up | destroy | status | ...]" | ||
exit 1 | ||
fi | ||
|
||
if [ $1 == "destroy" ]; then | ||
VAGRANT_CWD=$SCRIPT_DIR vagrant $1 -f | ||
else | ||
VAGRANT_CWD=$SCRIPT_DIR vagrant $1 | ||
fi | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters