vm_shepherd 1.5.3 → 1.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/vm_shepherd/shepherd.rb +11 -13
- data/lib/vm_shepherd/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 43c462e588b30f5889f991c17ea977b3770134ce
|
|
4
|
+
data.tar.gz: a8b35cbfe28cd38c0ac292caca125ae4263f2ae3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d85a9915a494c2c5a65b7321223d35a29fd9b20b39d5ad2dfd37747f2e34fbfb1b26f1d67aa8f6f3a60f27817b017d4b928600170f21ff82d5bdb8f76053db80
|
|
7
|
+
data.tar.gz: c4c25f5e4c71d90cd25e85d11ab53da05a354c7165d28562a07af42bfad5d17c503f4adbdc50c984c65855a7367ed166daacea8189f912cc49df6884e356eec3
|
data/lib/vm_shepherd/shepherd.rb
CHANGED
|
@@ -26,7 +26,7 @@ module VmShepherd
|
|
|
26
26
|
password: vm_shepherd_config.creds.password,
|
|
27
27
|
},
|
|
28
28
|
vm_shepherd_config.vdc.name,
|
|
29
|
-
|
|
29
|
+
stdout_logger
|
|
30
30
|
).deploy(
|
|
31
31
|
path,
|
|
32
32
|
vcloud_deploy_options(vm_shepherd_config),
|
|
@@ -37,7 +37,7 @@ module VmShepherd
|
|
|
37
37
|
vm_shepherd_config.vcenter_creds.username,
|
|
38
38
|
vm_shepherd_config.vcenter_creds.password,
|
|
39
39
|
vm_shepherd_config.vsphere.datacenter,
|
|
40
|
-
|
|
40
|
+
stdout_logger,
|
|
41
41
|
).deploy(
|
|
42
42
|
path,
|
|
43
43
|
{
|
|
@@ -78,7 +78,7 @@ module VmShepherd
|
|
|
78
78
|
password: vm_shepherd_config.creds.password,
|
|
79
79
|
},
|
|
80
80
|
vm_shepherd_config.vdc.name,
|
|
81
|
-
|
|
81
|
+
stdout_logger
|
|
82
82
|
).prepare_environment
|
|
83
83
|
end
|
|
84
84
|
when VmShepherd::VSPHERE_IAAS_TYPE then
|
|
@@ -88,7 +88,7 @@ module VmShepherd
|
|
|
88
88
|
vm_shepherd_config.vcenter_creds.username,
|
|
89
89
|
vm_shepherd_config.vcenter_creds.password,
|
|
90
90
|
vm_shepherd_config.vsphere.datacenter,
|
|
91
|
-
|
|
91
|
+
stdout_logger,
|
|
92
92
|
).prepare_environment
|
|
93
93
|
end
|
|
94
94
|
when VmShepherd::AWS_IAAS_TYPE then
|
|
@@ -115,7 +115,7 @@ module VmShepherd
|
|
|
115
115
|
password: vm_shepherd_config.creds.password,
|
|
116
116
|
},
|
|
117
117
|
vm_shepherd_config.vdc.name,
|
|
118
|
-
|
|
118
|
+
stdout_logger
|
|
119
119
|
).destroy([vm_shepherd_config.vapp.ops_manager_name], vm_shepherd_config.vdc.catalog)
|
|
120
120
|
when VmShepherd::VSPHERE_IAAS_TYPE then
|
|
121
121
|
VmShepherd::VsphereManager.new(
|
|
@@ -123,7 +123,7 @@ module VmShepherd
|
|
|
123
123
|
vm_shepherd_config.vcenter_creds.username,
|
|
124
124
|
vm_shepherd_config.vcenter_creds.password,
|
|
125
125
|
vm_shepherd_config.vsphere.datacenter,
|
|
126
|
-
|
|
126
|
+
stdout_logger,
|
|
127
127
|
).destroy(vm_shepherd_config.vm.ip, vm_shepherd_config.vsphere.resource_pool)
|
|
128
128
|
when VmShepherd::AWS_IAAS_TYPE then
|
|
129
129
|
ami_manager.destroy(vm_shepherd_config.to_h)
|
|
@@ -148,7 +148,7 @@ module VmShepherd
|
|
|
148
148
|
password: vm_shepherd_config.creds.password,
|
|
149
149
|
},
|
|
150
150
|
vm_shepherd_config.vdc.name,
|
|
151
|
-
|
|
151
|
+
stdout_logger,
|
|
152
152
|
).clean_environment(vm_shepherd_config.vapp.product_names || [], vm_shepherd_config.vapp.product_catalog)
|
|
153
153
|
end
|
|
154
154
|
when VmShepherd::VSPHERE_IAAS_TYPE then
|
|
@@ -158,7 +158,7 @@ module VmShepherd
|
|
|
158
158
|
vm_shepherd_config.vcenter_creds.username,
|
|
159
159
|
vm_shepherd_config.vcenter_creds.password,
|
|
160
160
|
vm_shepherd_config.cleanup.datacenter,
|
|
161
|
-
|
|
161
|
+
stdout_logger,
|
|
162
162
|
).clean_environment(
|
|
163
163
|
datacenter_folders_to_clean: vm_shepherd_config.cleanup.datacenter_folders_to_clean,
|
|
164
164
|
datastores: vm_shepherd_config.cleanup.datastores,
|
|
@@ -178,10 +178,8 @@ module VmShepherd
|
|
|
178
178
|
|
|
179
179
|
attr_reader :settings
|
|
180
180
|
|
|
181
|
-
def
|
|
182
|
-
Logger.new(STDOUT)
|
|
183
|
-
lggr.level = Logger::Severity::ERROR
|
|
184
|
-
end
|
|
181
|
+
def stdout_logger
|
|
182
|
+
Logger.new(STDOUT)
|
|
185
183
|
end
|
|
186
184
|
|
|
187
185
|
def vcloud_deploy_options(vm_shepherd_config)
|
|
@@ -210,7 +208,7 @@ module VmShepherd
|
|
|
210
208
|
parameters: settings.vm_shepherd.env_config.parameters_as_a_hash,
|
|
211
209
|
outputs: settings.vm_shepherd.env_config.outputs.to_h,
|
|
212
210
|
}.merge(ami_elb_config),
|
|
213
|
-
logger:
|
|
211
|
+
logger: stdout_logger,
|
|
214
212
|
)
|
|
215
213
|
end
|
|
216
214
|
|
data/lib/vm_shepherd/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vm_shepherd
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.5.
|
|
4
|
+
version: 1.5.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ops Manager Team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-06-
|
|
11
|
+
date: 2015-06-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aws-sdk-v1
|