vagrant-cloudstack 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +18 -19
- data/.ruby-version +1 -1
- data/.travis.yml +19 -19
- data/CHANGELOG.md +179 -171
- data/Docker/.dockerignore +2 -0
- data/Docker/Dockerfile +51 -0
- data/Docker/Dockerfile.chefdk_0_17 +49 -0
- data/Docker/Dockerfile.latest_dependencies +49 -0
- data/Docker/README.md +67 -0
- data/Docker/vac.ps1 +29 -0
- data/Docker/vac.sh +30 -0
- data/Gemfile +20 -20
- data/LICENSE +8 -8
- data/README.md +416 -416
- data/Rakefile +106 -99
- data/bootstrap.key +27 -0
- data/build_rpm.sh +7 -7
- data/functional-tests/basic/Vagrantfile.basic_networking +45 -45
- data/functional-tests/basic/basic_spec.rb +21 -21
- data/functional-tests/networking/Vagrantfile.advanced_networking +119 -102
- data/functional-tests/networking/networking_spec.rb +14 -0
- data/functional-tests/rsync/Vagrantfile.advanced_networking +39 -56
- data/functional-tests/rsync/rsync_spec.rb +9 -9
- data/functional-tests/vmlifecycle/Vagrantfile.advanced_networking +66 -82
- data/functional-tests/vmlifecycle/vmlifecycle_spec.rb +13 -13
- data/lib/vagrant-cloudstack/action/connect_cloudstack.rb +47 -47
- data/lib/vagrant-cloudstack/action/is_created.rb +18 -18
- data/lib/vagrant-cloudstack/action/is_stopped.rb +18 -18
- data/lib/vagrant-cloudstack/action/message_already_created.rb +16 -16
- data/lib/vagrant-cloudstack/action/message_not_created.rb +16 -16
- data/lib/vagrant-cloudstack/action/message_will_not_destroy.rb +16 -16
- data/lib/vagrant-cloudstack/action/read_rdp_info.rb +76 -76
- data/lib/vagrant-cloudstack/action/read_ssh_info.rb +104 -87
- data/lib/vagrant-cloudstack/action/read_state.rb +38 -38
- data/lib/vagrant-cloudstack/action/read_winrm_info.rb +103 -103
- data/lib/vagrant-cloudstack/action/run_instance.rb +798 -703
- data/lib/vagrant-cloudstack/action/start_instance.rb +81 -81
- data/lib/vagrant-cloudstack/action/stop_instance.rb +28 -28
- data/lib/vagrant-cloudstack/action/terminate_instance.rb +269 -224
- data/lib/vagrant-cloudstack/action/timed_provision.rb +21 -21
- data/lib/vagrant-cloudstack/action/wait_for_state.rb +41 -41
- data/lib/vagrant-cloudstack/action/warn_networks.rb +19 -19
- data/lib/vagrant-cloudstack/action.rb +210 -210
- data/lib/vagrant-cloudstack/capabilities/rdp.rb +12 -12
- data/lib/vagrant-cloudstack/capabilities/winrm.rb +12 -12
- data/lib/vagrant-cloudstack/config.rb +566 -548
- data/lib/vagrant-cloudstack/errors.rb +27 -27
- data/lib/vagrant-cloudstack/exceptions/exceptions.rb +10 -10
- data/lib/vagrant-cloudstack/model/cloudstack_resource.rb +51 -33
- data/lib/vagrant-cloudstack/plugin.rb +82 -82
- data/lib/vagrant-cloudstack/provider.rb +58 -58
- data/lib/vagrant-cloudstack/service/cloudstack_resource_service.rb +64 -58
- data/lib/vagrant-cloudstack/util/timer.rb +17 -17
- data/lib/vagrant-cloudstack/version.rb +5 -5
- data/lib/vagrant-cloudstack.rb +17 -17
- data/locales/en.yml +131 -123
- data/spec/spec_helper.rb +8 -6
- data/spec/vagrant-cloudstack/action/read_ssh_info_spec.rb +80 -0
- data/spec/vagrant-cloudstack/config_spec.rb +355 -355
- data/spec/vagrant-cloudstack/model/cloudstack_resource_spec.rb +95 -73
- data/spec/vagrant-cloudstack/service/cloudstack_resource_service_spec.rb +43 -43
- data/spec/vagrant-cloudstack/support/be_a_resource.rb +6 -0
- data/vagrant-cloudstack.gemspec +59 -59
- data/vagrant-cloudstack.spec +42 -42
- metadata +14 -7
- data/dummy.box +0 -0
- data/example_box/README.md +0 -13
- data/example_box/metadata.json +0 -3
- data/functional-tests/networking/rsync_spec.rb +0 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2897e7ad4d58dd6fd8f8039521e7677050bece61
|
4
|
+
data.tar.gz: 3f816c2f823f1dbd4f3f3b0fc6832ee5218dae0c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13af100eb8ca7cdc17ed0728f7ff39aaa0b1624f838eee1935381169f9490f435dc9d2dfbe2e205eced73d5f0107879de3e21e0b3b59ae97e6273334d4007d33
|
7
|
+
data.tar.gz: 2c7c37a1e79b5ce728ccb1e42d3e013e0922500ec7d9d7fc7d8895478e5792a9a4c67abed3e6b3dc382a0a2714deba00b4357fb5f21f18539ae4565b4bd658bc
|
data/.gitignore
CHANGED
@@ -1,19 +1,18 @@
|
|
1
|
-
# OS-specific
|
2
|
-
.DS_Store
|
3
|
-
|
4
|
-
# Bundler/Rubygems
|
5
|
-
*.gem
|
6
|
-
.bundle
|
7
|
-
pkg/*
|
8
|
-
tags
|
9
|
-
Gemfile.lock
|
10
|
-
|
11
|
-
# Vagrant
|
12
|
-
.vagrant
|
13
|
-
Vagrantfile
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
.idea/*
|
1
|
+
# OS-specific
|
2
|
+
.DS_Store
|
3
|
+
|
4
|
+
# Bundler/Rubygems
|
5
|
+
*.gem
|
6
|
+
.bundle
|
7
|
+
pkg/*
|
8
|
+
tags
|
9
|
+
Gemfile.lock
|
10
|
+
|
11
|
+
# Vagrant
|
12
|
+
.vagrant
|
13
|
+
Vagrantfile
|
14
|
+
coverage/*
|
15
|
+
vendor/*
|
16
|
+
|
17
|
+
# RubyMine
|
18
|
+
.idea/*
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0.0-p481
|
1
|
+
2.0.0-p481
|
data/.travis.yml
CHANGED
@@ -1,19 +1,19 @@
|
|
1
|
-
language: ruby
|
2
|
-
notifications:
|
3
|
-
email:
|
4
|
-
- int-toolkit@schubergphilis.com
|
5
|
-
before_install:
|
6
|
-
- sudo apt-get update -qq
|
7
|
-
- sudo apt-get install -qq -y bsdtar
|
8
|
-
- rvm @global do gem uninstall bundler -a -x
|
9
|
-
- rvm @global do gem install bundler -v 1.10.6
|
10
|
-
rvm:
|
11
|
-
- 2.0.0
|
12
|
-
script: rake
|
13
|
-
notifications:
|
14
|
-
webhooks:
|
15
|
-
urls:
|
16
|
-
- https://webhooks.gitter.im/e/83f6eebe81bad15857f4
|
17
|
-
on_success: always # options: [always|never|change] default: always
|
18
|
-
on_failure: always # options: [always|never|change] default: always
|
19
|
-
on_start: false # default: false
|
1
|
+
language: ruby
|
2
|
+
notifications:
|
3
|
+
email:
|
4
|
+
- int-toolkit@schubergphilis.com
|
5
|
+
before_install:
|
6
|
+
- sudo apt-get update -qq
|
7
|
+
- sudo apt-get install -qq -y bsdtar
|
8
|
+
- rvm @global do gem uninstall bundler -a -x
|
9
|
+
- rvm @global do gem install bundler -v 1.10.6
|
10
|
+
rvm:
|
11
|
+
- 2.0.0
|
12
|
+
script: rake
|
13
|
+
notifications:
|
14
|
+
webhooks:
|
15
|
+
urls:
|
16
|
+
- https://webhooks.gitter.im/e/83f6eebe81bad15857f4
|
17
|
+
on_success: always # options: [always|never|change] default: always
|
18
|
+
on_failure: always # options: [always|never|change] default: always
|
19
|
+
on_start: false # default: false
|
data/CHANGELOG.md
CHANGED
@@ -1,171 +1,179 @@
|
|
1
|
-
# 1.
|
2
|
-
*
|
3
|
-
*
|
4
|
-
*
|
5
|
-
*
|
6
|
-
*
|
7
|
-
*
|
8
|
-
|
9
|
-
|
10
|
-
*
|
11
|
-
|
12
|
-
|
13
|
-
*
|
14
|
-
*
|
15
|
-
*
|
16
|
-
*
|
17
|
-
*
|
18
|
-
*
|
19
|
-
|
20
|
-
# 1.
|
21
|
-
*
|
22
|
-
* Fix
|
23
|
-
*
|
24
|
-
*
|
25
|
-
*
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
*
|
30
|
-
*
|
31
|
-
*
|
32
|
-
*
|
33
|
-
*
|
34
|
-
|
35
|
-
# 0.
|
36
|
-
*
|
37
|
-
*
|
38
|
-
*
|
39
|
-
|
40
|
-
|
41
|
-
*
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
*
|
46
|
-
*
|
47
|
-
|
48
|
-
|
49
|
-
*
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
*
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
# 0.4.
|
82
|
-
|
83
|
-
*
|
84
|
-
|
85
|
-
# 0.4.
|
86
|
-
|
87
|
-
*
|
88
|
-
|
89
|
-
# 0.
|
90
|
-
|
91
|
-
*
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
* Add
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
*
|
111
|
-
*
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
*
|
119
|
-
*
|
120
|
-
*
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
*
|
128
|
-
*
|
129
|
-
*
|
130
|
-
|
131
|
-
*
|
132
|
-
|
133
|
-
# 0.0.
|
134
|
-
|
135
|
-
*
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
*
|
140
|
-
|
141
|
-
# 0.
|
142
|
-
|
143
|
-
*
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
*
|
153
|
-
*
|
154
|
-
*
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
*
|
161
|
-
*
|
162
|
-
|
163
|
-
*
|
164
|
-
|
165
|
-
# 0.1.
|
166
|
-
|
167
|
-
*
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
*
|
1
|
+
# 1.4.0 (Nov 30, 2016)
|
2
|
+
* Support multiple network ids and network names (PR #148)
|
3
|
+
* Add ssh_network_id and ssh_network_name configuration (PR #149)
|
4
|
+
* Add (firewall management for) VPC support (PR #151)
|
5
|
+
* Remove additional data disk on destroy (PR #152)
|
6
|
+
* Add Docker containers for development and testing (PR #159)
|
7
|
+
* CloudStack >= 4.6 list all offerings / templates. (PR #161)
|
8
|
+
|
9
|
+
# 1.3.0 (Mar 24, 2016)
|
10
|
+
* Automate port forwarding for RDP for Windows guests (PR #117)
|
11
|
+
* Specify `trusted_networks` by Array (PR #121)
|
12
|
+
* Random public port range is specified by hash using `:start` and `:end` (PR #122)
|
13
|
+
* Generate firewall rule from port forward rules automatically (PR #123)
|
14
|
+
* Let firewall rule elements (`ipaddress`,`protocol`,`startport`) use defaults (PR #123)
|
15
|
+
* Generate SSH keypair for lifetime of VM (PR #125)
|
16
|
+
* Deprecate usage in Vagrantfile of `cloudstack.network_type` (PR #134)
|
17
|
+
* Determine dynamically from ZONE if 'Basic' or 'Advanced' networking (PR #134)
|
18
|
+
* Allow trusted_networks as both string or array (PR #146)
|
19
|
+
|
20
|
+
# 1.2.0 (Sep 4, 2015)
|
21
|
+
* Add support for disk offering (PR#89)
|
22
|
+
* Fix bug open file handles on Windows (PR#98)
|
23
|
+
* Add support for Windows guests (PR#96)
|
24
|
+
* Automate port forwarding for the Communicator (PR#104)
|
25
|
+
* Allow setting to open Firewall to specific network (PR#99)
|
26
|
+
* Make config.vm.box an optional setting in Vagrantfile (PR#105)
|
27
|
+
|
28
|
+
# 1.1.0 (May 26, 2015)
|
29
|
+
* Allow setting VM private IP in config (PR #73)
|
30
|
+
* Fix several coding style issues (PR #76, #77, #78)
|
31
|
+
* Fix bug when destroying VM created with Static NAT and firewall rules (PR #81)
|
32
|
+
* Allow expunging VM on destroy (PR #75)
|
33
|
+
* Make `network_type` optional, and defaulting to "Basic" (PR #82)
|
34
|
+
|
35
|
+
# 1.0.0 (May 5, 2015)
|
36
|
+
* Use vagrant's built-in rsync synced folder (PR #57)
|
37
|
+
* Enable creating custom static NAT, port forwarding, firewall rules (PR #59)
|
38
|
+
* Fixed bug when `network_id` and `network_name` are not specified in Vagrantfile (PR #59)
|
39
|
+
* Enable setting SSH user name and private key to access VM (PR #64)
|
40
|
+
* Fixed bug when `vagrant destroy` destroys other VMs (PR #66)
|
41
|
+
* Enable toggling port forwarding automatically adding an open firewall rule (PR #70)
|
42
|
+
|
43
|
+
# 0.10.0 (Sep 11, 2014)
|
44
|
+
* Clean up code base DRY
|
45
|
+
* Improve documentation
|
46
|
+
* Use URL safe base 64 encoding
|
47
|
+
|
48
|
+
# 0.9.1 (Jun 29, 2014)
|
49
|
+
* Fixed a bug intrcduced in 0.9.0, where we failed to fetch correct
|
50
|
+
name because we didn't pass the correct parameters.
|
51
|
+
|
52
|
+
# 0.9.0 (Jun 25, 2014)
|
53
|
+
* Clean up of dead code and comments.
|
54
|
+
* Re-organize imports and code.
|
55
|
+
* Corrects the dependency on Vagrant 1.5+
|
56
|
+
* Updates documentation to refelect the above.
|
57
|
+
* Now supports setting the machine hostname in Vagrantfile
|
58
|
+
|
59
|
+
# 0.8.0 (Jun 24, 2014)
|
60
|
+
* Remove unused code.
|
61
|
+
* Add support for specifying most resources by name. Where applicable there is
|
62
|
+
a matching _name config for the _id configs.
|
63
|
+
Note: in this release there were no support for the project apis in fog,
|
64
|
+
therefore there is no project_name config.
|
65
|
+
|
66
|
+
# 0.7.0 (Jun 17, 2014)
|
67
|
+
* Change the resolution order of how we discover the scheme to talk to the cloud.
|
68
|
+
This is a possibly breaking change.
|
69
|
+
|
70
|
+
# 0.6.0 (May 13, 2014)
|
71
|
+
|
72
|
+
* Bump the Ruby version to 2.0.0-p481
|
73
|
+
* The API and secret keys can now be passed through environment
|
74
|
+
variables CLOUDSTACK_API_KEY and CLOUDSTACK_SECRET_KEY.
|
75
|
+
|
76
|
+
# 0.5.0 (Apr 29, 2014)
|
77
|
+
|
78
|
+
* Use latest version of upstream fog which contains some much needed
|
79
|
+
improvements to the Cloudstack support. Closes #10 for example.
|
80
|
+
|
81
|
+
# 0.4.3 (Apr 15, 2014)
|
82
|
+
|
83
|
+
* Update README to reflect Vagrant version needed
|
84
|
+
|
85
|
+
# 0.4.2 (Apr 15, 2014)
|
86
|
+
|
87
|
+
* Add support for userdata
|
88
|
+
|
89
|
+
# 0.4.1 (Apr 14, 2014)
|
90
|
+
|
91
|
+
* Add support for cygwin paths
|
92
|
+
|
93
|
+
# 0.4.0 (Mar 30, 2014)
|
94
|
+
|
95
|
+
* Fix for Vagrant > =1.5 [GH-29]
|
96
|
+
|
97
|
+
# 0.3.0 (Mar 3, 2014)
|
98
|
+
|
99
|
+
* Update fog to latest version (1.20.0)
|
100
|
+
* Update ruby version to 2.0.0-p451
|
101
|
+
* Add Gitter.im notification
|
102
|
+
|
103
|
+
# 0.2.1 (Jan 12, 2014)
|
104
|
+
|
105
|
+
* Remove extranous printout
|
106
|
+
|
107
|
+
# 0.2.0 (Jan 8, 2014)
|
108
|
+
|
109
|
+
* Add display name and group support
|
110
|
+
* Add support for security groups
|
111
|
+
* Bump versions of dependencies
|
112
|
+
|
113
|
+
# 0.1.2 (Dec 12, 2013)
|
114
|
+
* Version bump to gemspec configucation to use shared email
|
115
|
+
|
116
|
+
# 0.1.1 (Dec 11, 2013)
|
117
|
+
|
118
|
+
* Enable Vagrant 1.4 compability
|
119
|
+
* Add support for security groups
|
120
|
+
* Add helper script to build a RPM for easier deployment
|
121
|
+
|
122
|
+
# 0.1.0 (Dec 3, 2013)
|
123
|
+
* Plugin now enables parallelization by default.
|
124
|
+
* This behaviour can be turned off by invoking vagrant with
|
125
|
+
--no-parallel (this flag requires vagrant 1.2.1)
|
126
|
+
* Added support for starting, stoping and reloading machines.
|
127
|
+
* Added support for portforwarding and adding ssh keys.
|
128
|
+
* Added support for basic network type.
|
129
|
+
* Basic means that there is no need to specify a network_id
|
130
|
+
to connecto to.
|
131
|
+
* Default network type is advanced.
|
132
|
+
|
133
|
+
# 0.0.2 (May 3, 2013)
|
134
|
+
|
135
|
+
* Renamed module from CloudStack to Cloudstack
|
136
|
+
* Renamed configurations to match Cloudstack
|
137
|
+
* domain -> domain_id
|
138
|
+
* offering_id -> service_offering_id
|
139
|
+
* Added specc test for all provider specific configurations
|
140
|
+
|
141
|
+
# 0.0.1 (April 17, 2013)
|
142
|
+
|
143
|
+
* Forked into a Cloudstack plugin
|
144
|
+
|
145
|
+
# 0.2.1 (April 16, 2013)
|
146
|
+
|
147
|
+
* Got rid of extranneous references to old SSH settings.
|
148
|
+
|
149
|
+
# 0.2.0 (April 16, 2013)
|
150
|
+
|
151
|
+
* Add support for `vagrant ssh -c` [GH-42]
|
152
|
+
* Ability to specify a timeout for waiting for instances to become ready. [GH-44]
|
153
|
+
* Better error message if instance didn't become ready in time.
|
154
|
+
* Connection can now be done using IAM profiles. [GH-41]
|
155
|
+
|
156
|
+
# 0.1.3 (April 9, 2013)
|
157
|
+
|
158
|
+
* The `AWS_ACCESS_KEY` and `AWS_SECRET_KEY` will be used if available
|
159
|
+
and no specific keys are set in the Vagrantfile. [GH-33]
|
160
|
+
* Fix issues with SSH on VPCs, the correct IP is used. [GH-30]
|
161
|
+
* Exclude the ".vagrant" directory from rsync.
|
162
|
+
* Implement `:disabled` flag support for shared folders. [GH-29]
|
163
|
+
* `aws.user_data` to specify user data on the instance. [GH-26]
|
164
|
+
|
165
|
+
# 0.1.2 (March 22, 2013)
|
166
|
+
|
167
|
+
* Choose the proper region when connecting to AWS. [GH-9]
|
168
|
+
* Configurable SSH port. [GH-13]
|
169
|
+
* Support other AWS-compatible API endpoints with `config.endpoint`
|
170
|
+
and `config.version`. [GH-6]
|
171
|
+
* Disable strict host key checking on rsync so known hosts aren't an issue. [GH-7]
|
172
|
+
|
173
|
+
# 0.1.1 (March 18, 2013)
|
174
|
+
|
175
|
+
* Up fog dependency for Vagrant 1.1.1
|
176
|
+
|
177
|
+
# 0.1.0 (March 14, 2013)
|
178
|
+
|
179
|
+
* Initial release.
|