manageiq-appliance_console 7.2.1 → 7.2.2

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: 33d193e9c84f52e85c6441d02c734439dd1a275dc325c95b63e3ce0dcf8a7cd1
4
- data.tar.gz: e38fdae29aaace585c42e18b7a4ff114c6354e07f1e03d99e0d08144629fa93c
3
+ metadata.gz: 021c433c615f94bacc4ff3451b4ba8a1b4ec06314a6b904878af06955045bd01
4
+ data.tar.gz: 6b9645b97157b890b7fa9070b9ce92cb144c925b3546fecf244dd5b67fcf475c
5
5
  SHA512:
6
- metadata.gz: d2194e5f1ce34f4f66762e7669ca4ad99ca95742e0600ecd2c7dad07c4e167b1c7d0b4b7694bc843ddbb0d502f90de46ae34a88c499a79014c8eaf550796c4ed
7
- data.tar.gz: 9ab2d2251f57e528ca95cc0642dfe0c2536494b16eedb58a21b895c9144368092dcd925a15f6111419d7726b609f64bcdc8fee445e0c86ed6af19e9f45f99176
6
+ metadata.gz: 1e44783d9a5c85c2fc9773bd8c262cd726131a622e84e96e5d4e77b88b20512bec97828238be1ac58ed2872809b5af2d90cb25119344fc6df8f962911ad81442
7
+ data.tar.gz: 3d8c40bb89caa6e6aee9b5703f8d1982f895117aba2b0fa5d09bf29a89f20fd270e1c220da48573c9acb8a2b6a4078b40bbb8811045ee428ddfeb650965a11db
@@ -5,7 +5,7 @@
5
5
  require 'bundler'
6
6
  Bundler.setup
7
7
 
8
- require 'manageiq-appliance_console'
8
+ require 'manageiq/appliance_console'
9
9
 
10
10
  require 'fileutils'
11
11
  require 'highline/import'
@@ -3,5 +3,5 @@
3
3
  require 'bundler'
4
4
  Bundler.setup
5
5
 
6
- require 'manageiq-appliance_console'
6
+ require 'manageiq/appliance_console'
7
7
  ManageIQ::ApplianceConsole::Cli.parse(ARGV)
@@ -151,8 +151,8 @@ Replication Server Configuration
151
151
  end
152
152
  end
153
153
 
154
- Process.wait(pid)
155
- $CHILD_STATUS.success?
154
+ pid, status = Process.wait2(pid)
155
+ status.success?
156
156
  end
157
157
 
158
158
  def primary_connection_hash
@@ -10,12 +10,14 @@ module ApplianceConsole
10
10
  attr_accessor :service
11
11
  # kerberos principal name
12
12
  attr_accessor :name
13
+ attr_accessor :service_principal
13
14
 
14
15
  def initialize(options = {})
15
16
  options.each { |n, v| public_send("#{n}=", v) }
16
17
  @ca_name ||= "ipa"
17
18
  @realm = @realm.upcase if @realm
18
- @name ||= "#{service}/#{hostname}\\@#{realm}"
19
+ @service_principal ||= "#{service}/#{hostname}"
20
+ @name ||= "#{service_principal}@#{realm}"
19
21
  end
20
22
 
21
23
  def register
@@ -33,13 +35,13 @@ module ApplianceConsole
33
35
  private
34
36
 
35
37
  def exist?
36
- AwesomeSpawn.run("/usr/bin/ipa", :params => ["-e", "skip_version_check=1", "service-find", "--principal", name]).success?
38
+ AwesomeSpawn.run("/usr/bin/ipa", :params => ["-e", "skip_version_check=1", "service-find", "--principal", service_principal]).success?
37
39
  end
38
40
 
39
41
  def request
40
42
  # using --force because these services tend not to be in dns
41
43
  # this is like VERIFY_NONE
42
- AwesomeSpawn.run!("/usr/bin/ipa", :params => ["-e", "skip_version_check=1", "service-add", "--force", name])
44
+ AwesomeSpawn.run!("/usr/bin/ipa", :params => ["-e", "skip_version_check=1", "service-add", "--force", service_principal])
43
45
  end
44
46
  end
45
47
  end
@@ -1,5 +1,5 @@
1
1
  module ManageIQ
2
2
  module ApplianceConsole
3
- VERSION = '7.2.1'.freeze
3
+ VERSION = '7.2.2'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: manageiq-appliance_console
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.2.1
4
+ version: 7.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ManageIQ Developers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-03 00:00:00.000000000 Z
11
+ date: 2023-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -352,7 +352,7 @@ files:
352
352
  - Rakefile
353
353
  - bin/appliance_console
354
354
  - bin/appliance_console_cli
355
- - lib/manageiq-appliance_console.rb
355
+ - lib/manageiq/appliance_console.rb
356
356
  - lib/manageiq/appliance_console/auth_utilities.rb
357
357
  - lib/manageiq/appliance_console/certificate.rb
358
358
  - lib/manageiq/appliance_console/certificate_authority.rb