cem_acpt 0.8.6 → 0.8.7
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/provision/terraform/linux.rb +16 -0
- data/lib/cem_acpt/provision/terraform.rb +1 -1
- 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: bd72076945b79db4583d665e691c86214c901331f37ccdfc25e0d07b999b50ca
|
4
|
+
data.tar.gz: f32e25b3c220e20c73aa3bcd7bab9873c2ac753b5d41c61e2f069988eaf29822
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9e7b0d71cfd8efedd0faef1e8fb2cb23b0335a049b1b8d270a7325a3cf19b97d1d603042d7326478c6e4e23ae42de890de0b88bc38a21085ab44e19c47d605b
|
7
|
+
data.tar.gz: ab1df006f61525ead0c8b64f38b52fe93a1152a337eea0d7a78535f3496fa3d4856b3fdc46e6f9dd29f8fea038e17af5acd76ced4df502707f3880201d6df511
|
data/Gemfile.lock
CHANGED
@@ -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
|
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.8.
|
4
|
+
version: 0.8.7
|
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-
|
11
|
+
date: 2023-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async-http
|