manageiq-smartstate 0.2.15 → 0.2.16
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b8ffe0ea7f752ee9698daddf1ebb4f78233e57f6
|
4
|
+
data.tar.gz: 516997461f598bc97ef96df4df1ade730edce39d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e8c0e84ba2b336b6081d87dbbcf432f0deb831f4467d366aa4461fa9d1449255a175bd0a32e19446ef80ec5d570926adf8f1a43fbccdde849a7c8530d6cddae
|
7
|
+
data.tar.gz: cfe139450f783f6a4ced52ed9262e1c15d660ec4671ecea3cd9f2859a3a4ebd000fa3cc1226208d064395ca1c72522e0ea13381420c84cd363055acf9346d99a
|
data/Gemfile
CHANGED
@@ -4,7 +4,6 @@ source 'https://rubygems.org'
|
|
4
4
|
gemspec
|
5
5
|
|
6
6
|
gem "manageiq-gems-pending", :git => "https://github.com/ManageIQ/manageiq-gems-pending.git", :branch => "master"
|
7
|
-
gem "manageiq-password", :git => "https://github.com/ManageIQ/manageiq-password.git", :branch => "master"
|
8
7
|
|
9
8
|
# Modified gems for vmware_web_service. Setting sources here since they are git references
|
10
9
|
gem "handsoap", "~>0.2.5", :require => false, :git => "https://github.com/ManageIQ/handsoap.git", :tag => "v0.2.5-5"
|
@@ -36,12 +36,12 @@ class MIQExtract
|
|
36
36
|
@target = filename
|
37
37
|
@configFile = filename.respond_to?(:vmConfigFile) ? @target.vmConfigFile : nil
|
38
38
|
|
39
|
-
$log.info "MIQExtract using config file: [#{@configFile}] settings: [#{
|
39
|
+
$log.info "MIQExtract using config file: [#{@configFile}] settings: [#{ManageIQ::Password.sanitize_string(ost.scanData.inspect)}]"
|
40
40
|
else
|
41
41
|
@externalMount = false
|
42
42
|
@configFile = filename.gsub(/^"/, "").gsub(/"$/, "")
|
43
43
|
|
44
|
-
$log.info "MIQExtract using config file: [#{@configFile}] settings: [#{
|
44
|
+
$log.info "MIQExtract using config file: [#{@configFile}] settings: [#{ManageIQ::Password.sanitize_string(ost.scanData.inspect)}]"
|
45
45
|
ost.openParent = true if ost.scanData.fetch_path('snapshot', 'use_existing') == true
|
46
46
|
ost.force = false if ost.scanData.fetch_path('snapshot', 'forceFleeceDefault') == false
|
47
47
|
ost.snapshotDescription = ost.scanData.fetch_path('snapshot', 'description') if ost.scanData.fetch_path('snapshot', 'description')
|
@@ -32,7 +32,7 @@ module VMPlatformMountLinux
|
|
32
32
|
# TODO: passing the user name and password on the command line is BAD.
|
33
33
|
# Change this to use web-services.
|
34
34
|
#
|
35
|
-
@cs =
|
35
|
+
@cs = ManageIQ::Password::Key.new
|
36
36
|
cmd = "#{VCBNAME} -h #{@ems['host']} -u #{@ems['user']} -p #{@cs.decrypt64(@ems['password'])} -s \"Name:#{@vmName}\" | grep \"moref:\""
|
37
37
|
#
|
38
38
|
# XXX Don't forget to remove this. We're logging the username and password, not good.
|
@@ -408,7 +408,7 @@ class VmConfig
|
|
408
408
|
|
409
409
|
require 'VMwareWebService/miq_fault_tolerant_vim'
|
410
410
|
|
411
|
-
password_decrypt =
|
411
|
+
password_decrypt = ManageIQ::Password.decrypt(ems_host['password'])
|
412
412
|
hostVim = MiqFaultTolerantVim.new(:ip => ems_host['host'], :user => ems_host['user'], :pass => password_decrypt, :use_broker => ems_host['use_vim_broker'], :vim_broker_drb_uri => ems_host['vim_broker_drb_uri'])
|
413
413
|
$log.info "#{conn_reason}: Connection to [#{ems_display_text}] completed for VM:[#{vmCfgFile}] in [#{Time.now - st}] seconds"
|
414
414
|
return hostVim
|
@@ -425,7 +425,7 @@ class VmConfig
|
|
425
425
|
ems = host_vim_credentials
|
426
426
|
return (filename) if ems.nil?
|
427
427
|
|
428
|
-
password_decrypt =
|
428
|
+
password_decrypt = ManageIQ::Password.decrypt(ems['password'])
|
429
429
|
$log.debug "resolve_path_names: emsHost = #{ems['host']}, emsUser = #{ems['user']}" if $log
|
430
430
|
vi = MiqVimInventory.new(ems['host'], ems['user'], password_decrypt)
|
431
431
|
return getDsName(filename, vi)
|
data/manageiq-smartstate.gemspec
CHANGED
@@ -24,6 +24,7 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.add_dependency "binary_struct", "~> 2.1"
|
25
25
|
spec.add_dependency "iniparse"
|
26
26
|
spec.add_dependency "linux_block_device", "~>0.2.1"
|
27
|
+
spec.add_dependency "manageiq-password", "~>0.1.0"
|
27
28
|
spec.add_dependency "memory_buffer", ">=0.1.0"
|
28
29
|
spec.add_dependency "rufus-lru", "~>1.0.3"
|
29
30
|
spec.add_dependency "sys-uname", "~>1.0.1"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: manageiq-smartstate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ManageIQ Developers
|
@@ -66,6 +66,20 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: 0.2.1
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: manageiq-password
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 0.1.0
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 0.1.0
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: memory_buffer
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|