cem_acpt 0.8.6 → 0.8.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8b20898f83c35c92ab9276fe4753a82aca2da25da72169d35600b6dba3c27435
4
- data.tar.gz: 4ef575b47bfee5102cf5c8effb6a50183cfc927da524ab319b135f2654211726
3
+ metadata.gz: bc6d161ea5e468c4ec2e177e9e65f7e222feeb7d64a201380158e01a0e78acee
4
+ data.tar.gz: 3dc9af3e279a9388d7877230d0d229708a7df21c419b5c98f72139f3643f2ba4
5
5
  SHA512:
6
- metadata.gz: 19414bc367fdb4a101b9969ebb3a76276712238455947648f0434c1df748b959013fcfe0206491cee841709554d3738021e1524dee646e4e40c1f967ccf73729
7
- data.tar.gz: 3366d39bedcb059f2f8d848aae6f872677e62c9593b59021286e1a4bfaa1eb2939f0574dc83aab643cd180e04909c948c5d2a0b27ef05c63f7db0808dd8239b6
6
+ metadata.gz: 9cb2124eaf9bca321b0e5fa312e2dec97d7bc3e9cc62834d0637f40e20fd96e37ee5cffc3314bd786b3a6f4c80e54781364978466a60f1101481df0f83b1df79
7
+ data.tar.gz: 0a119605a437452f7e9ba08d86b59fb9eb60388d1a734c46e248aa971cd968e79845d6dcfd38c8c16d3cd6b1e7a98f2af9cfad1610639430e113614b81f70c6a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cem_acpt (0.8.6)
4
+ cem_acpt (0.8.8)
5
5
  async-http (>= 0.60, < 0.70)
6
6
  bcrypt_pbkdf (>= 1.0, < 2.0)
7
7
  deep_merge (>= 1.2, < 2.0)
@@ -11,7 +11,7 @@ module CemAcpt
11
11
  end
12
12
 
13
13
  def self.valid_versions
14
- %w[7 8]
14
+ %w[7 8 9]
15
15
  end
16
16
 
17
17
  def systemd_files
@@ -40,9 +40,25 @@ module CemAcpt
40
40
  commands << "sudo systemctl start #{file} && sudo systemctl enable #{file}"
41
41
  end
42
42
  end
43
+
43
44
  commands << apply_command
44
45
  end
45
46
 
47
+ # A wrapper around provision_commands that allows for extra commands to be added for a specific OS version(i.e EL 8)
48
+ def provision_commands_wrapper(image_name)
49
+ if ['rhel-8', 'oel-8', 'alma-8', 'rocky-8'].any? { |el8| image_name.include?(el8) }
50
+ commands = [
51
+ 'sudo dnf upgrade --refresh -y rpm glibc',
52
+ 'sudo rm /var/lib/rpm/.rpm.lock',
53
+ 'sudo dnf upgrade -y dnf',
54
+ ]
55
+ commands = (commands << provision_commands).flatten
56
+ commands
57
+ else
58
+ provision_commands
59
+ end
60
+ end
61
+
46
62
  private
47
63
 
48
64
  def apply_command
@@ -209,7 +209,7 @@ module CemAcpt
209
209
  puppet_manifest: node.test_data[:puppet_manifest],
210
210
  provision_dir_source: @backend.provision_directory,
211
211
  provision_dir_dest: @backend.destination_provision_directory,
212
- provision_commands: @backend.provision_commands,
212
+ provision_commands: @backend.instance_of?(CemAcpt::Provision::Linux) ? @backend.provision_commands_wrapper(node.node_data[:image]) : @backend.provision_commands,
213
213
  }
214
214
  )
215
215
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CemAcpt
4
- VERSION = '0.8.6'
4
+ VERSION = '0.8.8'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cem_acpt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.6
4
+ version: 0.8.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - puppetlabs
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-10-09 00:00:00.000000000 Z
11
+ date: 2023-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async-http