vanagon 0.40.0 → 0.42.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 49e90bdaa700172f444cb3849dfbaa7d422c4912f081eb45a3466a45857b23d6
4
- data.tar.gz: b88bbbadd07826f06f05d0ae766048af7e3bba74a859bc029c35bedcda6d710e
3
+ metadata.gz: 6124c941f058f16b94d91df59c931cb9c53717b3968d455ecccb77a47def3374
4
+ data.tar.gz: fcf11d725a1920d08eb5119ef9ada27cafb076ff5e28a2b1cb4e672996a3c656
5
5
  SHA512:
6
- metadata.gz: 188b11f3ca921713dba0f9c790b5bec8039dd3d2fe79488a76f4cb065ac616cc98ea3af03a5d7c78d29070d5bea547d8dc977beeaddfccf988f3dc738cbd18a2
7
- data.tar.gz: e7d53de5ec39fbc9975e610f987511dbcf652ece373d7d2ed72c6965f5c358c734410f2992de2918bd38d5402fccdb9a753ada37a05c205fb0eee1143d340664
6
+ metadata.gz: f6241005f7a94f68bfd385e00ac25d8ded7bfaa980e61dc1074f54a4c2411c0abda93aa73ecc542a387c88b127e076c8d37a5e907cc96333c3b538c51d4f3730
7
+ data.tar.gz: 9ecf812ede9986b0860e58996072b068acb3f4f6a5cf17ccf52bd09f88ce43dc39b09134ef2c8665998d965670d301a7813dab62997bff8d8163edddd203774e
@@ -106,7 +106,7 @@ class Vanagon
106
106
  @clone_options = opts[:clone_options] ||= {}
107
107
 
108
108
  # We can test for Repo existence without cloning
109
- raise Vanagon::InvalidRepo, "url is not a valid Git repo" unless valid_remote?
109
+ raise Vanagon::InvalidRepo, "\"#{url}\" is not a valid Git repo" unless valid_remote?
110
110
  end
111
111
 
112
112
  # Fetch the source. In this case, clone the repository into the workdir
@@ -0,0 +1,10 @@
1
+ platform "amazon-2023-aarch64" do |plat|
2
+ plat.servicedir "/usr/lib/systemd/system"
3
+ plat.defaultdir "/etc/sysconfig"
4
+ plat.servicetype "systemd"
5
+
6
+ packages = %w(autoconf automake createrepo gcc gcc-c++ rsync cmake make rpm-libs rpm-build libarchive)
7
+ plat.provision_with "dnf install -y --allowerasing #{packages.join(' ')}"
8
+ plat.install_build_dependencies_with "dnf install -y --allowerasing "
9
+ plat.vmpooler_template "amazon-2023-arm64"
10
+ end
@@ -0,0 +1,10 @@
1
+ platform "amazon-2023-x86_64" do |plat|
2
+ plat.servicedir "/usr/lib/systemd/system"
3
+ plat.defaultdir "/etc/sysconfig"
4
+ plat.servicetype "systemd"
5
+
6
+ packages = %w(gcc gcc-c++ autoconf automake createrepo rsync cmake make rpm-libs rpm-build rpm-sign libtool libarchive)
7
+ plat.provision_with "dnf install -y --allowerasing #{packages.join(' ')}"
8
+ plat.install_build_dependencies_with "dnf install -y --allowerasing "
9
+ plat.vmpooler_template "amazon-2023-x86_64"
10
+ end
@@ -38,7 +38,7 @@ class Vanagon
38
38
  @platform = case platform_name
39
39
  when /^aix-/
40
40
  Vanagon::Platform::RPM::AIX.new(@name)
41
- when /^(cisco-wrlinux|el|fedora|redhat|redhatfips)-/
41
+ when /^(amazon|cisco-wrlinux|el|fedora|redhat|redhatfips)-/
42
42
  Vanagon::Platform::RPM.new(@name)
43
43
  when /^sles-/
44
44
  Vanagon::Platform::RPM::SLES.new(@name)
@@ -245,13 +245,11 @@ fi
245
245
  # Run required postinstall scripts on install if defined
246
246
  if [ -e %{_localstatedir}/lib/rpm-state/%{name}/install ] ; then
247
247
  <%= get_postinstall_required_actions("install") %>
248
- rm %{_localstatedir}/lib/rpm-state/%{name}/install
249
248
  fi
250
249
 
251
250
  # Run required postinstall scripts on upgrade if defined
252
251
  if [ -e %{_localstatedir}/lib/rpm-state/%{name}/upgrade ] ; then
253
252
  <%= get_postinstall_required_actions("upgrade") %>
254
- rm %{_localstatedir}/lib/rpm-state/%{name}/upgrade
255
253
  fi
256
254
  <%- if @platform.is_aix? || (@platform.is_el? && @platform.os_version.to_i == 4) -%>
257
255
  ## EL-4 and AIX RPM don't have %posttrans, so we'll put them here
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.40.0
4
+ version: 0.42.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-10-24 00:00:00.000000000 Z
11
+ date: 2023-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: docopt
@@ -170,6 +170,8 @@ files:
170
170
  - lib/vanagon/patch.rb
171
171
  - lib/vanagon/platform.rb
172
172
  - lib/vanagon/platform/deb.rb
173
+ - lib/vanagon/platform/defaults/amazon-2023-aarch64.rb
174
+ - lib/vanagon/platform/defaults/amazon-2023-x86_64.rb
173
175
  - lib/vanagon/platform/defaults/debian-10-amd64.rb
174
176
  - lib/vanagon/platform/defaults/debian-11-aarch64.rb
175
177
  - lib/vanagon/platform/defaults/debian-11-amd64.rb