Skip to content

Commit

Permalink
Merge pull request #830 from imaqsood/VANAGON-236-add-mac-os-14-intel
Browse files Browse the repository at this point in the history
(VANAGON-236) Add macOS 14 (Intel) platform definition to vanagon
  • Loading branch information
imaqsood authored Nov 22, 2023
2 parents c45a416 + 702be47 commit 664abf5
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ This project adheres to [Semantic Versioning](https://semver.org).
This changelog adheres to [Keep a CHANGELOG](https://keepachangelog.com).

## [Unreleased]
### Added
- (VANAGON-236) Add macOS 14 (Intel) platform definition to vanagon

## [0.43.0] - 2023-11-20
### Added
Expand Down
23 changes: 23 additions & 0 deletions lib/vanagon/platform/defaults/osx-14-x86_64.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
platform "osx-14-x86_64" do |plat|
plat.servicetype "launchd"
plat.servicedir "/Library/LaunchDaemons"
plat.codename "sonoma"

plat.provision_with "export HOMEBREW_NO_EMOJI=true"
plat.provision_with "export HOMEBREW_VERBOSE=true"
plat.provision_with "export HOMEBREW_NO_ANALYTICS=1"

plat.provision_with "sudo dscl . -create /Users/test"
plat.provision_with "sudo dscl . -create /Users/test UserShell /bin/bash"
plat.provision_with "sudo dscl . -create /Users/test UniqueID 1001"
plat.provision_with "sudo dscl . -create /Users/test PrimaryGroupID 1000"
plat.provision_with "sudo dscl . -create /Users/test NFSHomeDirectory /Users/test"
plat.provision_with "sudo dscl . -passwd /Users/test password"
plat.provision_with "sudo dscl . -merge /Groups/admin GroupMembership test"
plat.provision_with "echo 'test ALL=(ALL:ALL) NOPASSWD: ALL' > /etc/sudoers.d/username"
plat.provision_with "mkdir -p /etc/homebrew"
plat.provision_with "cd /etc/homebrew"
plat.provision_with "createhomedir -c -u test"
plat.provision_with %Q(su test -c 'echo | /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"')
plat.vmpooler_template "macos-14-x86_64"
end

0 comments on commit 664abf5

Please sign in to comment.