pero 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pero/cli.rb +6 -3
- data/lib/pero/docker.rb +3 -1
- data/lib/pero/puppet/redhat.rb +3 -1
- data/lib/pero/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c70b7eacb6c850afd1cdd014f357204cf34face7354aeb5056cf3869172794e
|
4
|
+
data.tar.gz: 83d9dd8fedd249340337914d5635725b9f2cd189fac0d8bc189c7e9a3a74874f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb72ebfec2140ef2bde35127614ed05240e73b41ebd7442d9cf8ab8bcc9b2bbed3c98198c6caef0932481066477246661332741b7a44d3fcfeb7667509709741
|
7
|
+
data.tar.gz: 4a9288d537cc01061b725552f9dd01ce71f48112cf9f49a5b180bba9cb5274521d95b7d673e3f9121d518158ae3596cba1e100e4a1f6c62d8acdcf2509fd1862
|
data/lib/pero/cli.rb
CHANGED
@@ -57,7 +57,10 @@ module Pero
|
|
57
57
|
|
58
58
|
prepare
|
59
59
|
nodes = Pero::History.search(name_regexp)
|
60
|
-
|
60
|
+
if nodes.empty?
|
61
|
+
Pero.log.info 'No matching node found.'
|
62
|
+
return
|
63
|
+
end
|
61
64
|
m = Mutex.new
|
62
65
|
|
63
66
|
begin
|
@@ -117,8 +120,8 @@ module Pero
|
|
117
120
|
end
|
118
121
|
|
119
122
|
def prepare
|
120
|
-
`bundle install` if File.
|
121
|
-
`bundle exec librarian-puppet install` if File.
|
123
|
+
`bundle install` if File.exist?("Gemfile")
|
124
|
+
`bundle exec librarian-puppet install` if File.exist?("Puppetfile")
|
122
125
|
end
|
123
126
|
end
|
124
127
|
end
|
data/lib/pero/docker.rb
CHANGED
@@ -135,8 +135,10 @@ EOS
|
|
135
135
|
["puppetlabs-release-pc1-el-#{el}.noarch.rpm", "puppetserver"]
|
136
136
|
elsif Gem::Version.new("6.0.0") > Gem::Version.new(server_version)&& Gem::Version.new("5.0.0") <= Gem::Version.new(server_version)
|
137
137
|
["puppet5-release-el-#{el}.noarch.rpm", "puppetserver"]
|
138
|
-
|
138
|
+
elsif Gem::Version.new("7.0.0") > Gem::Version.new(server_version)&& Gem::Version.new("6.0.0") <= Gem::Version.new(server_version)
|
139
139
|
["puppet6-release-el-#{el}.noarch.rpm", "puppetserver"]
|
140
|
+
else
|
141
|
+
["puppet7-release-el-#{el}.noarch.rpm", "puppetserver"]
|
140
142
|
end
|
141
143
|
|
142
144
|
vault_repo = if el == 6
|
data/lib/pero/puppet/redhat.rb
CHANGED
@@ -44,8 +44,10 @@ module Pero
|
|
44
44
|
["puppetlabs-release-pc1-el-#{main_release}.noarch.rpm", "puppet"]
|
45
45
|
elsif Gem::Version.new("6.0.0") > Gem::Version.new(version) && Gem::Version.new("5.0.0") <= Gem::Version.new(version)
|
46
46
|
["puppet5-release-el-#{main_release}.noarch.rpm", "puppet-agent"]
|
47
|
-
|
47
|
+
elsif Gem::Version.new("7.0.0") > Gem::Version.new(version) && Gem::Version.new("6.0.0") <= Gem::Version.new(version)
|
48
48
|
["puppet6-release-el-#{main_release}.noarch.rpm", "puppet-agent"]
|
49
|
+
else
|
50
|
+
["puppet7-release-el-#{main_release}.noarch.rpm", "puppet-agent"]
|
49
51
|
end
|
50
52
|
|
51
53
|
unless run_specinfra(:check_package_is_installed, package_name, version)
|
data/lib/pero/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pero
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- pyama86
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-03-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -199,7 +199,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
199
199
|
- !ruby/object:Gem::Version
|
200
200
|
version: '0'
|
201
201
|
requirements: []
|
202
|
-
rubygems_version: 3.
|
202
|
+
rubygems_version: 3.3.26
|
203
203
|
signing_key:
|
204
204
|
specification_version: 4
|
205
205
|
summary: tool for puppet apply from our desktop.
|