cem_acpt 0.10.1 → 0.10.3

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: effc49c862d39a278026a2fbda70959a6b17bfd9346c826261b47f79949c0e01
4
- data.tar.gz: 391e8f39502a334c5419a7b84a64e7c66eb16c364a92dddf3de51bb824d5371a
3
+ metadata.gz: 2efdc497a91addf155de008bebfc7062fa1bac0336be8c932dfe660a6f9a2322
4
+ data.tar.gz: 7bcb94758bd21aa8f826405a6620d42529b621f4194bb2ed1ca067c159dfeefa
5
5
  SHA512:
6
- metadata.gz: a54d53b0f2c910b3fac6776c7c1d7e13ff041d5ca4694335bce8ee0bbd23c843d66329fed98622ba7e7de682d0892b7bd019f4507413674deaaa953add629f86
7
- data.tar.gz: 2a6c6028331ec393b8a620fe44406889f17eff48f0cd0ccfd37f4abb3f9512f81e91720130573300b31e950511e7416ca532a28d6d46b40adeb6cf3ecb2a8e5c
6
+ metadata.gz: 7c4c6c1f60167444e9f7b2735c6f12fb4258fa2c37b4d2552d5e4d2a3a1d25d555aa38a15592c22a9784fa7430789bb18796f50185e60248bdd7c48227be49d2
7
+ data.tar.gz: '09a2205577b3f8542dac2f849f769512978b64b044a97c2ec8a731e46171be0116f86e3b4857bc78f6e30f381a7fe7a2256991856b33d225f121e6bf95f09bb8'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cem_acpt (0.10.1)
4
+ cem_acpt (0.10.3)
5
5
  async-http (>= 0.60, < 0.70)
6
6
  bcrypt_pbkdf (>= 1.0, < 2.0)
7
7
  deep_merge (>= 1.2, < 2.0)
@@ -26,11 +26,11 @@ module CemAcpt
26
26
  private
27
27
 
28
28
  def package_manager
29
- @package_manager ||= @os_major_version.to_i >= 8 ? 'dnf' : 'yum'
29
+ @package_manager ||= (@os_major_version.to_i >= 8) ? 'dnf' : 'yum'
30
30
  end
31
31
 
32
32
  def package_manager_utils
33
- @package_manager_utils ||= @os_major_version.to_i >= 8 ? 'dnf-utils' : 'yum-utils'
33
+ @package_manager_utils ||= (@os_major_version.to_i >= 8) ? 'dnf-utils' : 'yum-utils'
34
34
  end
35
35
 
36
36
  def upgrade_packages_command
@@ -96,7 +96,12 @@ module CemAcpt
96
96
  private
97
97
 
98
98
  def upgrade_packages_command
99
- 'sudo apt-get update && sudo apt-get upgrade -y'
99
+ if @os_major_version.to_i > 2004
100
+ 'sudo DEBIAN_FRONTEND=noninteractive NEEDRESTART_SUSPEND=1 NEEDRESTART_MODE=a apt-get update &&'\
101
+ ' sudo DEBIAN_FRONTEND=noninteractive NEEDRESTART_SUSPEND=1 NEEDRESTART_MODE=a apt-get upgrade -y'
102
+ else
103
+ 'sudo apt-get update && sudo apt-get upgrade -y'
104
+ end
100
105
  end
101
106
 
102
107
  def puppet_platform_repository_url
@@ -108,7 +113,11 @@ module CemAcpt
108
113
  end
109
114
 
110
115
  def install_puppet_agent_command
111
- 'sudo apt-get install -y puppet-agent'
116
+ if @os_major_version.to_i > 2004
117
+ 'sudo DEBIAN_FRONTEND=noninteractive NEEDRESTART_SUSPEND=1 NEEDRESTART_MODE=a apt-get install -y puppet-agent'
118
+ else
119
+ 'sudo apt-get install -y puppet-agent'
120
+ end
112
121
  end
113
122
 
114
123
  # The latest Google-provided Ubuntu images do not have curl installed by default
@@ -11,7 +11,7 @@ module CemAcpt
11
11
  end
12
12
 
13
13
  def self.valid_versions
14
- %w[7 8 9 2004]
14
+ %w[7 8 9 2004 2204]
15
15
  end
16
16
 
17
17
  def systemd_files
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CemAcpt
4
- VERSION = '0.10.1'
4
+ VERSION = '0.10.3'
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.10.1
4
+ version: 0.10.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - puppetlabs
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-04-12 00:00:00.000000000 Z
11
+ date: 2024-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async-http
@@ -313,7 +313,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
313
313
  - !ruby/object:Gem::Version
314
314
  version: '0'
315
315
  requirements: []
316
- rubygems_version: 3.4.19
316
+ rubygems_version: 3.4.22
317
317
  signing_key:
318
318
  specification_version: 4
319
319
  summary: CEM Acceptance Tests