vanagon 0.42.0 → 0.44.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/vanagon/platform/defaults/debian-12-aarch64.rb +11 -0
- data/lib/vanagon/platform/defaults/debian-12-amd64.rb +11 -0
- data/lib/vanagon/platform/defaults/osx-14-arm64.rb +24 -0
- data/lib/vanagon/platform/defaults/osx-14-x86_64.rb +23 -0
- data/lib/vanagon/platform.rb +7 -0
- data/resources/rpm/project.spec.erb +1 -1
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22546d7ebf14d4843a27a3954f217ad51140c5ed4939eb567a19153e8bba79e6
|
4
|
+
data.tar.gz: f65b4cd4da7100d160f31ea1a5a4ffdb79892f22f298d792ce585daf1bb420a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bfb394b13e86225bd393d51344bfd363de6205c743530cc151e1830829cbacf07293def88440adb2519e49909762c2c202c68a22852bdd2d7f81efc232a97b13
|
7
|
+
data.tar.gz: 5c745d880b632e3c44acd708be5d24b7cc0178aa3c2c3207c0705a6f81183704461e7bfb2644a990f9389844fc303958a717f7bc9f6af402d65ee7a739707e6e
|
@@ -0,0 +1,11 @@
|
|
1
|
+
platform "debian-12-aarch64" do |plat|
|
2
|
+
plat.servicedir "/lib/systemd/system"
|
3
|
+
plat.defaultdir "/etc/default"
|
4
|
+
plat.servicetype "systemd"
|
5
|
+
plat.codename "bookworm"
|
6
|
+
|
7
|
+
packages = %w(build-essential devscripts make quilt pkg-config debhelper rsync fakeroot cmake)
|
8
|
+
plat.provision_with "export DEBIAN_FRONTEND=noninteractive; apt-get update -qq; apt-get install -qy --no-install-recommends #{packages.join(' ')}"
|
9
|
+
plat.install_build_dependencies_with "DEBIAN_FRONTEND=noninteractive; apt-get install -qy --no-install-recommends "
|
10
|
+
plat.vmpooler_template "debian-12-arm64"
|
11
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
platform "debian-12-amd64" do |plat|
|
2
|
+
plat.servicedir "/lib/systemd/system"
|
3
|
+
plat.defaultdir "/etc/default"
|
4
|
+
plat.servicetype "systemd"
|
5
|
+
plat.codename "bookworm"
|
6
|
+
|
7
|
+
packages = %w(build-essential devscripts make quilt pkg-config debhelper rsync fakeroot cmake)
|
8
|
+
plat.provision_with "export DEBIAN_FRONTEND=noninteractive; apt-get update -qq; apt-get install -qy --no-install-recommends #{packages.join(' ')}"
|
9
|
+
plat.install_build_dependencies_with "DEBIAN_FRONTEND=noninteractive; apt-get install -qy --no-install-recommends "
|
10
|
+
plat.vmpooler_template "debian-12-x86_64"
|
11
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
platform 'osx-14-arm64' do |plat|
|
2
|
+
plat.brew '/opt/homebrew/bin/brew'
|
3
|
+
plat.servicetype 'launchd'
|
4
|
+
plat.servicedir '/Library/LaunchDaemons'
|
5
|
+
plat.codename 'sonoma'
|
6
|
+
|
7
|
+
plat.provision_with 'export HOMEBREW_NO_EMOJI=true'
|
8
|
+
plat.provision_with 'export HOMEBREW_VERBOSE=true'
|
9
|
+
plat.provision_with "export HOMEBREW_NO_ANALYTICS=1"
|
10
|
+
|
11
|
+
plat.provision_with 'sudo dscl . -create /Users/test'
|
12
|
+
plat.provision_with 'sudo dscl . -create /Users/test UserShell /bin/bash'
|
13
|
+
plat.provision_with 'sudo dscl . -create /Users/test UniqueID 1001'
|
14
|
+
plat.provision_with 'sudo dscl . -create /Users/test PrimaryGroupID 1000'
|
15
|
+
plat.provision_with 'sudo dscl . -create /Users/test NFSHomeDirectory /Users/test'
|
16
|
+
plat.provision_with 'sudo dscl . -passwd /Users/test password'
|
17
|
+
plat.provision_with 'sudo dscl . -merge /Groups/admin GroupMembership test'
|
18
|
+
plat.provision_with 'echo "test ALL=(ALL:ALL) NOPASSWD: ALL" > /etc/sudoers.d/username'
|
19
|
+
plat.provision_with 'mkdir -p /etc/homebrew'
|
20
|
+
plat.provision_with 'cd /etc/homebrew'
|
21
|
+
plat.provision_with 'createhomedir -c -u test'
|
22
|
+
plat.provision_with 'su test -c \'echo | /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"\''
|
23
|
+
plat.vmpooler_template 'macos-14-arm64'
|
24
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
platform "osx-14-x86_64" do |plat|
|
2
|
+
plat.servicetype "launchd"
|
3
|
+
plat.servicedir "/Library/LaunchDaemons"
|
4
|
+
plat.codename "sonoma"
|
5
|
+
|
6
|
+
plat.provision_with "export HOMEBREW_NO_EMOJI=true"
|
7
|
+
plat.provision_with "export HOMEBREW_VERBOSE=true"
|
8
|
+
plat.provision_with "export HOMEBREW_NO_ANALYTICS=1"
|
9
|
+
|
10
|
+
plat.provision_with "sudo dscl . -create /Users/test"
|
11
|
+
plat.provision_with "sudo dscl . -create /Users/test UserShell /bin/bash"
|
12
|
+
plat.provision_with "sudo dscl . -create /Users/test UniqueID 1001"
|
13
|
+
plat.provision_with "sudo dscl . -create /Users/test PrimaryGroupID 1000"
|
14
|
+
plat.provision_with "sudo dscl . -create /Users/test NFSHomeDirectory /Users/test"
|
15
|
+
plat.provision_with "sudo dscl . -passwd /Users/test password"
|
16
|
+
plat.provision_with "sudo dscl . -merge /Groups/admin GroupMembership test"
|
17
|
+
plat.provision_with "echo 'test ALL=(ALL:ALL) NOPASSWD: ALL' > /etc/sudoers.d/username"
|
18
|
+
plat.provision_with "mkdir -p /etc/homebrew"
|
19
|
+
plat.provision_with "cd /etc/homebrew"
|
20
|
+
plat.provision_with "createhomedir -c -u test"
|
21
|
+
plat.provision_with %Q(su test -c 'echo | /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"')
|
22
|
+
plat.vmpooler_template "macos-14-x86_64"
|
23
|
+
end
|
data/lib/vanagon/platform.rb
CHANGED
@@ -380,6 +380,13 @@ class Vanagon
|
|
380
380
|
return !!@name.match(/^fedora-.*$/)
|
381
381
|
end
|
382
382
|
|
383
|
+
# Utility matcher to determine is the platform is a amazon linux variety
|
384
|
+
#
|
385
|
+
# @return [true, false] true if it is a amazon linux variety, false otherwise
|
386
|
+
def is_amazon?
|
387
|
+
return !!@name.match(/^amazon-.*$/)
|
388
|
+
end
|
389
|
+
|
383
390
|
# Utility matcher to determine is the platform is a debian variety
|
384
391
|
#
|
385
392
|
# @return [true, false] true if it is a debian variety, false otherwise
|
@@ -81,7 +81,7 @@ Requires: <%= requires.requirement %><%= requires.version ? " #{requires.versio
|
|
81
81
|
# did not specify a dependency on these.
|
82
82
|
# In the future, we will supress pre/post scripts completely if there's nothing
|
83
83
|
# specified by the project or the components.
|
84
|
-
<%- if @platform.is_fedora? || (@platform.is_el? && @platform.os_version.to_i >= 9) -%>
|
84
|
+
<%- if @platform.is_fedora? || @platform.is_amazon? || (@platform.is_el? && @platform.os_version.to_i >= 9) -%>
|
85
85
|
Requires(pre): /usr/bin/mkdir
|
86
86
|
Requires(pre): /usr/bin/touch
|
87
87
|
Requires(post): /usr/bin/mkdir
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vanagon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.44.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Puppet By Perforce
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-11-
|
11
|
+
date: 2023-11-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: docopt
|
@@ -175,6 +175,8 @@ files:
|
|
175
175
|
- lib/vanagon/platform/defaults/debian-10-amd64.rb
|
176
176
|
- lib/vanagon/platform/defaults/debian-11-aarch64.rb
|
177
177
|
- lib/vanagon/platform/defaults/debian-11-amd64.rb
|
178
|
+
- lib/vanagon/platform/defaults/debian-12-aarch64.rb
|
179
|
+
- lib/vanagon/platform/defaults/debian-12-amd64.rb
|
178
180
|
- lib/vanagon/platform/defaults/debian-8-amd64.rb
|
179
181
|
- lib/vanagon/platform/defaults/debian-8-i386.rb
|
180
182
|
- lib/vanagon/platform/defaults/el-6-i386.rb
|
@@ -192,6 +194,8 @@ files:
|
|
192
194
|
- lib/vanagon/platform/defaults/osx-12-x86_64.rb
|
193
195
|
- lib/vanagon/platform/defaults/osx-13-arm64.rb
|
194
196
|
- lib/vanagon/platform/defaults/osx-13-x86_64.rb
|
197
|
+
- lib/vanagon/platform/defaults/osx-14-arm64.rb
|
198
|
+
- lib/vanagon/platform/defaults/osx-14-x86_64.rb
|
195
199
|
- lib/vanagon/platform/defaults/redhatfips-7-x86_64.rb
|
196
200
|
- lib/vanagon/platform/defaults/redhatfips-8-x86_64.rb
|
197
201
|
- lib/vanagon/platform/defaults/sles-12-x86_64.rb
|