vagrant-vrealize 0.0.4 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -2
- data/lib/vagrant-vrealize/action/terminate_instance.rb +42 -0
- data/lib/vagrant-vrealize/version.rb +1 -1
- data/lib/vagrant-vrealize/vra_client.rb +3 -2
- metadata +14 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d5f963084189f37b4cb956807302f4ace521029
|
4
|
+
data.tar.gz: b18cab449a5b4ab68f92b68b4ece8fffba71497d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a0c05aeb9a9f38f6eff8b3ae84a19cf7f45fde9d05856e62a86360dbf0992ad9d05b0adc5983de3e5dd73bec0230fa9288b5358738a6aa327d6d39c26dbc38b
|
7
|
+
data.tar.gz: 531037b73ebab6529b45421842c6f4b0c46a49dcd879aa71d59e21aa3a9fd0ee0532be1f6748b0f52b54b1d66e9fa6c75e0f6ae1e5987ffed9ef2a2d3f9144bc
|
data/README.md
CHANGED
@@ -1,12 +1,16 @@
|
|
1
1
|
# Vagrant VRealize Provider
|
2
2
|
|
3
|
-
This is a [Vagrant](http://www.vagrantup.com) 1.2+ plugin that adds a
|
3
|
+
This is a [Vagrant](http://www.vagrantup.com) 1.2+ plugin that adds a VMware vRealize Automation
|
4
4
|
provider to Vagrant, allowing Vagrant to control and provision machines in
|
5
5
|
VRealize.
|
6
6
|
|
7
7
|
**NOTE:** This plugin requires Vagrant 1.2+,
|
8
8
|
|
9
|
-
**NOTE MORE:**
|
9
|
+
**NOTE MORE:**
|
10
|
+
The version of the vmware-vra gem is locked to < 2.0.0 - as such this will only work with vRA 6.X.
|
11
|
+
Remove the restriction in the gemspec to use the latest vmware-vra gem for vRA 7.X
|
12
|
+
|
13
|
+
**NOTE EVEN MORE:** This plugin is a work in progress. The basics work, but it's
|
10
14
|
not as fully-featured as the `vagrant-aws` plugin it's largely based on.
|
11
15
|
|
12
16
|
## What works
|
@@ -120,6 +124,8 @@ Use bundler to execute Vagrant:
|
|
120
124
|
$ bundle exec vagrant up --provider=vrealize
|
121
125
|
```
|
122
126
|
|
127
|
+
[![Dependency Status](https://dependencyci.com/github/sky-uk/vagrant-vrealize/badge)](https://dependencyci.com/github/sky-uk/vagrant-vrealize)
|
128
|
+
|
123
129
|
## And Finally
|
124
130
|
|
125
131
|
This plugin is an unfinished work-in-progress. It (and large parts of
|
@@ -15,6 +15,48 @@ module VagrantPlugins
|
|
15
15
|
vra = env[:vra]
|
16
16
|
vra.destroy(env[:machine].id) if env[:machine].id
|
17
17
|
|
18
|
+
# Destroy action_provision
|
19
|
+
action_provision_file = env[:machine].data_dir.join('action_provision')
|
20
|
+
if action_provision_file.file?
|
21
|
+
action_provision_file.delete
|
22
|
+
end
|
23
|
+
|
24
|
+
# Destroy creator_uid
|
25
|
+
creator_uid_file = env[:machine].data_dir.join('creator_uid')
|
26
|
+
if creator_uid_file.file?
|
27
|
+
creator_uid_file.delete
|
28
|
+
end
|
29
|
+
|
30
|
+
# Destroy elastic_ip
|
31
|
+
elastic_ip_file = env[:machine].data_dir.join('elastic_ip')
|
32
|
+
if elastic_ip_file.file?
|
33
|
+
elastic_ip_file.delete
|
34
|
+
end
|
35
|
+
|
36
|
+
# Destroy id
|
37
|
+
id_file = env[:machine].data_dir.join('id')
|
38
|
+
if id_file.file?
|
39
|
+
id_file.delete
|
40
|
+
end
|
41
|
+
|
42
|
+
# Destroy index_uuid
|
43
|
+
index_uuid_file = env[:machine].data_dir.join('index_uuid')
|
44
|
+
if index_uuid_file.file?
|
45
|
+
index_uuid_file.delete
|
46
|
+
end
|
47
|
+
|
48
|
+
# Destroy private_key
|
49
|
+
private_key_file = env[:machine].data_dir.join('private_key')
|
50
|
+
if private_key_file.file?
|
51
|
+
private_key_file.delete
|
52
|
+
end
|
53
|
+
|
54
|
+
# Destroy synced_folders
|
55
|
+
synced_folders_file = env[:machine].data_dir.join('synced_folders')
|
56
|
+
if synced_folders_file.file?
|
57
|
+
synced_folders_file.delete
|
58
|
+
end
|
59
|
+
|
18
60
|
@app.call(env)
|
19
61
|
end
|
20
62
|
end
|
@@ -6,7 +6,7 @@ module VagrantPlugins
|
|
6
6
|
class VraClient
|
7
7
|
|
8
8
|
def self.build(vra_params)
|
9
|
-
pagination_bugfix_params = {page_size:
|
9
|
+
pagination_bugfix_params = {page_size: 99999}.merge(vra_params)
|
10
10
|
new(Vra::Client.new(pagination_bugfix_params))
|
11
11
|
end
|
12
12
|
|
@@ -101,7 +101,8 @@ module VagrantPlugins
|
|
101
101
|
|
102
102
|
def machine
|
103
103
|
if done?
|
104
|
-
|
104
|
+
# expecting only one VM, but should check and error out if there are more
|
105
|
+
@request.resources.select { |a| a.vm? }.first
|
105
106
|
end
|
106
107
|
end
|
107
108
|
|
metadata
CHANGED
@@ -1,45 +1,48 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-vrealize
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Young
|
8
|
+
- David Stark
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date:
|
12
|
+
date: 2017-05-12 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: vmware-vra
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
16
17
|
requirements:
|
17
|
-
- - "
|
18
|
+
- - "~>"
|
18
19
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
20
|
+
version: '2.0'
|
20
21
|
type: :runtime
|
21
22
|
prerelease: false
|
22
23
|
version_requirements: !ruby/object:Gem::Requirement
|
23
24
|
requirements:
|
24
|
-
- - "
|
25
|
+
- - "~>"
|
25
26
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
27
|
+
version: '2.0'
|
27
28
|
- !ruby/object:Gem::Dependency
|
28
29
|
name: rake
|
29
30
|
requirement: !ruby/object:Gem::Requirement
|
30
31
|
requirements:
|
31
|
-
- - "
|
32
|
+
- - "~>"
|
32
33
|
- !ruby/object:Gem::Version
|
33
34
|
version: '0'
|
34
35
|
type: :development
|
35
36
|
prerelease: false
|
36
37
|
version_requirements: !ruby/object:Gem::Requirement
|
37
38
|
requirements:
|
38
|
-
- - "
|
39
|
+
- - "~>"
|
39
40
|
- !ruby/object:Gem::Version
|
40
41
|
version: '0'
|
41
42
|
description: Enables Vagrant to manage machines in VMware VRealize.
|
42
|
-
email:
|
43
|
+
email:
|
44
|
+
- Alexander.Young@sky.uk
|
45
|
+
- david.stark@sky.uk
|
43
46
|
executables: []
|
44
47
|
extensions: []
|
45
48
|
extra_rdoc_files: []
|
@@ -99,8 +102,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
99
102
|
version: 1.3.6
|
100
103
|
requirements: []
|
101
104
|
rubyforge_project:
|
102
|
-
rubygems_version: 2.
|
105
|
+
rubygems_version: 2.5.1
|
103
106
|
signing_key:
|
104
107
|
specification_version: 4
|
105
|
-
summary:
|
108
|
+
summary: Vagrant plugin for VRealize.
|
106
109
|
test_files: []
|