cem_acpt 0.10.2 → 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: 313e47c31c497b2022080f8b1c4a7c523c2e10db9b946452499bf0fa7801ad79
4
- data.tar.gz: 38b9253363b2d7a100eb54b71c35175c815f054b0453197a062621b3e4624130
3
+ metadata.gz: 2efdc497a91addf155de008bebfc7062fa1bac0336be8c932dfe660a6f9a2322
4
+ data.tar.gz: 7bcb94758bd21aa8f826405a6620d42529b621f4194bb2ed1ca067c159dfeefa
5
5
  SHA512:
6
- metadata.gz: 303411412161fcfc92aedb00437bf970cf866ee836e2e43fd49f63678a0af33ef1cdb6cf672ce794a2c59d51cb021cd844b25f5b53e9690d547493d06a96ca8f
7
- data.tar.gz: 30b852282a238035d6a2984382c188e3e25d0c5bd71be012fffa25d36d3f1b1194b31b529ad05219ba92c2a2ef3fa583bd618e18d6c043bfc4e57b74fe4c0d5a
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.2)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CemAcpt
4
- VERSION = '0.10.2'
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.2
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-06-26 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