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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/cem_acpt/image_builder/provision_commands.rb +13 -4
- data/lib/cem_acpt/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2efdc497a91addf155de008bebfc7062fa1bac0336be8c932dfe660a6f9a2322
|
4
|
+
data.tar.gz: 7bcb94758bd21aa8f826405a6620d42529b621f4194bb2ed1ca067c159dfeefa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c4c6c1f60167444e9f7b2735c6f12fb4258fa2c37b4d2552d5e4d2a3a1d25d555aa38a15592c22a9784fa7430789bb18796f50185e60248bdd7c48227be49d2
|
7
|
+
data.tar.gz: '09a2205577b3f8542dac2f849f769512978b64b044a97c2ec8a731e46171be0116f86e3b4857bc78f6e30f381a7fe7a2256991856b33d225f121e6bf95f09bb8'
|
data/Gemfile.lock
CHANGED
@@ -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
|
-
|
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
|
-
|
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
|
data/lib/cem_acpt/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2024-07-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async-http
|