vanagon 0.26.0 → 0.26.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vanagon/platform/defaults/osx-12-x86_64.rb +20 -0
- data/lib/vanagon/platform/osx.rb +0 -20
- data/resources/Makefile.erb +0 -4
- metadata +34 -33
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3cf4b2903976bd6b4e46ec533501890578962d1b2b8287f001f6251f0423a831
|
4
|
+
data.tar.gz: e1e832fe449490ac75f40f6f1de0e02722a909b048ddf562d3a6f1e23dfa835a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2df9721d59ea2c8fcc081c8163f3b088b368bf52f17996a0a1c445b9813506f478078445c6949c1a91cccce1cdfd684bd0e088f6034c05858fcf63b87e327066
|
7
|
+
data.tar.gz: '0818564b741957d07b721398cf016861971a2dbb0b628abfe33291a07a5fa3d78d95f966117ad0a3e85e5f2028a4c7c09ec40b46bd25ac507a935658ffda8378'
|
@@ -0,0 +1,20 @@
|
|
1
|
+
platform "osx-12-x86_64" do |plat|
|
2
|
+
plat.servicetype "launchd"
|
3
|
+
plat.servicedir "/Library/LaunchDaemons"
|
4
|
+
plat.codename "monterey"
|
5
|
+
plat.provision_with "export HOMEBREW_NO_EMOJI=true"
|
6
|
+
plat.provision_with "export HOMEBREW_VERBOSE=true"
|
7
|
+
plat.provision_with "sudo dscl . -create /Users/test"
|
8
|
+
plat.provision_with "sudo dscl . -create /Users/test UserShell /bin/bash"
|
9
|
+
plat.provision_with "sudo dscl . -create /Users/test UniqueID 1001"
|
10
|
+
plat.provision_with "sudo dscl . -create /Users/test PrimaryGroupID 1000"
|
11
|
+
plat.provision_with "sudo dscl . -create /Users/test NFSHomeDirectory /Users/test"
|
12
|
+
plat.provision_with "sudo dscl . -passwd /Users/test password"
|
13
|
+
plat.provision_with "sudo dscl . -merge /Groups/admin GroupMembership test"
|
14
|
+
plat.provision_with "echo 'test ALL=(ALL:ALL) NOPASSWD: ALL' > /etc/sudoers.d/username"
|
15
|
+
plat.provision_with "mkdir -p /etc/homebrew"
|
16
|
+
plat.provision_with "cd /etc/homebrew"
|
17
|
+
plat.provision_with %Q(su test -c 'echo | /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"')
|
18
|
+
plat.provision_with "sudo chown -R test:admin /Users/test/"
|
19
|
+
plat.vmpooler_template "macos-12-x86_64"
|
20
|
+
end
|
data/lib/vanagon/platform/osx.rb
CHANGED
@@ -41,8 +41,6 @@ class Vanagon
|
|
41
41
|
sign_commands = []
|
42
42
|
end
|
43
43
|
|
44
|
-
signing_host = "jenkins@osx-signer-prod-2.delivery.puppetlabs.net"
|
45
|
-
|
46
44
|
# Setup build directories
|
47
45
|
["bash -c 'mkdir -p $(tempdir)/osx/build/{dmg,pkg,scripts,resources,root,payload,plugins}'",
|
48
46
|
"mkdir -p $(tempdir)/osx/build/root/#{project.name}-#{project.version}",
|
@@ -58,26 +56,8 @@ class Vanagon
|
|
58
56
|
|
59
57
|
bom_install,
|
60
58
|
|
61
|
-
# The signing commands below should not cause `vanagon build` to fail. Many devs need to run `vanagon build`
|
62
|
-
# locally and do not necessarily need signed packages. The `|| :` will rescue failures by evaluating as successful.
|
63
|
-
# /Users/binaries will be a list of all binaries that need to be signed
|
64
|
-
"touch /Users/binaries || :",
|
65
|
-
# Find all of the executables (Mach-O files), and put the in /Users/binaries
|
66
|
-
"for item in `find $(tempdir)/osx/build/ -perm -0100 -type f` ; do file $$item | grep 'Mach-O' ; done | awk '{print $$1}' | sed 's/\:$$//' > /Users/binaries || :",
|
67
|
-
# A tmpdir is created on the signing_host, all of the executables will be rsyncd there to be signed
|
68
|
-
"#{Vanagon::Utilities.ssh_command} #{signing_host} mkdir -p /tmp/$(binaries_dir) || :",
|
69
|
-
"rsync -e '#{Vanagon::Utilities.ssh_command}' --no-perms --no-owner --no-group --files-from=/Users/binaries / #{signing_host}:/tmp/$(binaries_dir) || :",
|
70
|
-
"rsync -e '#{Vanagon::Utilities.ssh_command}' --no-perms --no-owner --no-group /Users/binaries #{signing_host}:/tmp/$(binaries_dir)/binaries_list || :",
|
71
|
-
# The binaries are signed, and then rsynced back
|
72
|
-
"#{Vanagon::Utilities.ssh_command} #{signing_host} /usr/local/bin/sign.sh $(binaries_dir) || :",
|
73
|
-
"rsync -e '#{Vanagon::Utilities.ssh_command}' --no-perms --no-owner --no-group -r #{signing_host}:/tmp/$(binaries_dir)/var/ /var || :",
|
74
|
-
|
75
59
|
# Sign extra files
|
76
60
|
sign_commands,
|
77
|
-
# Some extra files are created during the signing process that are not needed, so we delete them! Otherwise
|
78
|
-
# notarization gets confused by these extra files.
|
79
|
-
"for item in `find $(tempdir)/osx/build -type d -name Resources` ; do rm -rf $$item ; done || :",
|
80
|
-
|
81
61
|
|
82
62
|
# Package the project
|
83
63
|
"(cd $(tempdir)/osx/build/; #{@pkgbuild} --root root/#{project.name}-#{project.version} \
|
data/resources/Makefile.erb
CHANGED
@@ -9,10 +9,6 @@ workdir := $(PWD)
|
|
9
9
|
|
10
10
|
all: file-list-before-build <%= package_name %>
|
11
11
|
|
12
|
-
<%- if @platform.is_macos? -%>
|
13
|
-
binaries_dir := $(shell <%= @platform.mktemp %> 2>/dev/null)
|
14
|
-
<%- end -%>
|
15
|
-
|
16
12
|
<%= package_name %>: <%= @name %>-<%= @version %>.tar.gz
|
17
13
|
<%= generate_package.join("\n\t") %>
|
18
14
|
|
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.26.
|
4
|
+
version: 0.26.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Puppet Labs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-03-
|
11
|
+
date: 2022-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: docopt
|
@@ -171,6 +171,7 @@ files:
|
|
171
171
|
- lib/vanagon/platform/defaults/fedora-34-x86_64.rb
|
172
172
|
- lib/vanagon/platform/defaults/osx-10.15-x86_64.rb
|
173
173
|
- lib/vanagon/platform/defaults/osx-11-x86_64.rb
|
174
|
+
- lib/vanagon/platform/defaults/osx-12-x86_64.rb
|
174
175
|
- lib/vanagon/platform/defaults/redhatfips-7-x86_64.rb
|
175
176
|
- lib/vanagon/platform/defaults/redhatfips-8-x86_64.rb
|
176
177
|
- lib/vanagon/platform/defaults/sles-12-x86_64.rb
|
@@ -329,42 +330,42 @@ signing_key:
|
|
329
330
|
specification_version: 3
|
330
331
|
summary: All of your packages will fit into this van with this one simple trick.
|
331
332
|
test_files:
|
333
|
+
- spec/lib/git/rev_list_spec.rb
|
332
334
|
- spec/lib/makefile_spec.rb
|
333
|
-
- spec/lib/vanagon/common/user_spec.rb
|
334
|
-
- spec/lib/vanagon/common/pathname_spec.rb
|
335
|
-
- spec/lib/vanagon/utilities_spec.rb
|
336
335
|
- spec/lib/vanagon/project_spec.rb
|
337
|
-
- spec/lib/vanagon/utilities/shell_utilities_spec.rb
|
338
|
-
- spec/lib/vanagon/utilities/extra_files_signer_spec.rb
|
339
336
|
- spec/lib/vanagon/cli_spec.rb
|
340
|
-
- spec/lib/vanagon/
|
341
|
-
- spec/lib/vanagon/engine/base_spec.rb
|
342
|
-
- spec/lib/vanagon/engine/local_spec.rb
|
343
|
-
- spec/lib/vanagon/engine/hardware_spec.rb
|
344
|
-
- spec/lib/vanagon/engine/ec2_spec.rb
|
345
|
-
- spec/lib/vanagon/engine/always_be_scheduling_spec.rb
|
346
|
-
- spec/lib/vanagon/engine/pooler_spec.rb
|
347
|
-
- spec/lib/vanagon/engine/docker_spec.rb
|
337
|
+
- spec/lib/vanagon/utilities_spec.rb
|
348
338
|
- spec/lib/vanagon/project/dsl_spec.rb
|
349
|
-
- spec/lib/vanagon/
|
350
|
-
- spec/lib/vanagon/extensions/ostruct/json_spec.rb
|
351
|
-
- spec/lib/vanagon/extensions/string_spec.rb
|
352
|
-
- spec/lib/vanagon/extensions/set/json_spec.rb
|
353
|
-
- spec/lib/vanagon/platform/solaris_11_spec.rb
|
354
|
-
- spec/lib/vanagon/platform/rpm_spec.rb
|
355
|
-
- spec/lib/vanagon/platform/solaris_10_spec.rb
|
356
|
-
- spec/lib/vanagon/platform/dsl_spec.rb
|
357
|
-
- spec/lib/vanagon/platform/rpm/aix_spec.rb
|
358
|
-
- spec/lib/vanagon/platform/windows_spec.rb
|
359
|
-
- spec/lib/vanagon/platform/deb_spec.rb
|
360
|
-
- spec/lib/vanagon/platform/osx_spec.rb
|
361
|
-
- spec/lib/vanagon/environment_spec.rb
|
339
|
+
- spec/lib/vanagon/driver_spec.rb
|
362
340
|
- spec/lib/vanagon/platform_spec.rb
|
363
|
-
- spec/lib/vanagon/component/
|
364
|
-
- spec/lib/vanagon/component/rules_spec.rb
|
365
|
-
- spec/lib/vanagon/component/source/local_spec.rb
|
341
|
+
- spec/lib/vanagon/component/source/rewrite_spec.rb
|
366
342
|
- spec/lib/vanagon/component/source/git_spec.rb
|
367
343
|
- spec/lib/vanagon/component/source/http_spec.rb
|
368
|
-
- spec/lib/vanagon/component/source/
|
344
|
+
- spec/lib/vanagon/component/source/local_spec.rb
|
345
|
+
- spec/lib/vanagon/component/rules_spec.rb
|
369
346
|
- spec/lib/vanagon/component/dsl_spec.rb
|
370
|
-
- spec/lib/
|
347
|
+
- spec/lib/vanagon/component/source_spec.rb
|
348
|
+
- spec/lib/vanagon/environment_spec.rb
|
349
|
+
- spec/lib/vanagon/platform/rpm/aix_spec.rb
|
350
|
+
- spec/lib/vanagon/platform/windows_spec.rb
|
351
|
+
- spec/lib/vanagon/platform/deb_spec.rb
|
352
|
+
- spec/lib/vanagon/platform/solaris_11_spec.rb
|
353
|
+
- spec/lib/vanagon/platform/rpm_spec.rb
|
354
|
+
- spec/lib/vanagon/platform/osx_spec.rb
|
355
|
+
- spec/lib/vanagon/platform/dsl_spec.rb
|
356
|
+
- spec/lib/vanagon/platform/solaris_10_spec.rb
|
357
|
+
- spec/lib/vanagon/extensions/string_spec.rb
|
358
|
+
- spec/lib/vanagon/extensions/set/json_spec.rb
|
359
|
+
- spec/lib/vanagon/extensions/ostruct/json_spec.rb
|
360
|
+
- spec/lib/vanagon/utilities/extra_files_signer_spec.rb
|
361
|
+
- spec/lib/vanagon/utilities/shell_utilities_spec.rb
|
362
|
+
- spec/lib/vanagon/component_spec.rb
|
363
|
+
- spec/lib/vanagon/engine/always_be_scheduling_spec.rb
|
364
|
+
- spec/lib/vanagon/engine/ec2_spec.rb
|
365
|
+
- spec/lib/vanagon/engine/pooler_spec.rb
|
366
|
+
- spec/lib/vanagon/engine/hardware_spec.rb
|
367
|
+
- spec/lib/vanagon/engine/local_spec.rb
|
368
|
+
- spec/lib/vanagon/engine/docker_spec.rb
|
369
|
+
- spec/lib/vanagon/engine/base_spec.rb
|
370
|
+
- spec/lib/vanagon/common/pathname_spec.rb
|
371
|
+
- spec/lib/vanagon/common/user_spec.rb
|