vagrant-arubacloud 0.0.6 → 0.0.7
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/CHANGELOG.md +36 -0
- data/README.md +38 -52
- data/lib/vagrant-arubacloud/action/list_servers.rb +13 -4
- data/lib/vagrant-arubacloud/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e6b7725f11d8c19a1af3c69ce82dedd843be142a6e552904a4d56003e2e38a5
|
4
|
+
data.tar.gz: 2570807111ff45ddb24c37690fc72a3fa8d5dd339fe69730dd41bf9a890b780c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5074fab4bee51512dde7fb82df4ca08b4a8473bf11c09c23c040a7d5578cf7f1e4123f48229a2db0e418db4fdf1f8a7718d0c304318dd88b80e36cc572004ee5
|
7
|
+
data.tar.gz: 40869a4a436bdb3855509c88c892ae623fd059ad6eb521782be370457df697000054ba0169766ba5f4dae99c524a73a6197df32d17c3d432ca8fa3b58890e2a2
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
<a name="0.0.7"></a>
|
2
|
+
## [0.0.7] (2018-03-07)
|
3
|
+
|
4
|
+
#### Bug Fixes
|
5
|
+
|
6
|
+
* Fix missing **'ip address'** when row display VM with hypervisor 'pro' ( *'vagrant arubacloud servers'* )
|
7
|
+
|
8
|
+
#### Documentation
|
9
|
+
|
10
|
+
* changes in README.md
|
11
|
+
|
12
|
+
|
13
|
+
<a name="0.0.6"></a>
|
14
|
+
## [0.0.6] (2018-03-06)
|
15
|
+
|
16
|
+
#### Documentation
|
17
|
+
|
18
|
+
* correct License info
|
19
|
+
|
20
|
+
|
21
|
+
<a name="0.0.5"></a>
|
22
|
+
## [0.0.5] (2018-03-06)
|
23
|
+
|
24
|
+
#### Features
|
25
|
+
|
26
|
+
* added command **'snapshot'** *create*, *delete*, *restore*, *list* methods
|
27
|
+
* changed command **vagrant arubacloud servers** :now output *'DC*, *'Id'* , *'status description'* .
|
28
|
+
* parameter **admin_password** ( in :arubacloud section) is removed and replaced by the directive **'nodename'.ssh.password** in vagrant config section.
|
29
|
+
* added command **reload** as *power off* ( it's a 'shutdown ' and not 'power-off' forced) and *power on*
|
30
|
+
* after vagrant command *'up'* or *'reload'*, is executed a **synced_folder**
|
31
|
+
* changed option **package_id** (in :arubacloud section) : valid values now are : *'small'*, *'medium'*, *'large'*, *'extra large'* ;
|
32
|
+
* added new parameter **endpoint** (in :arubacloud section) to define DataCenter Aruba can be used for the defined VM in Vagrantfile (
|
33
|
+
this parameter replaces *'nodename'.url* )
|
34
|
+
* changed the use of **url** parameter (in :arubacloud section) : should only be used when a new 'dc?' not yet included in this plugin ( override the *'nodename'.endpoint* value ).
|
35
|
+
* added **[dc.]** (name of DataCenter) in output for command : *'up'*, *'reload'* , *'halt'*, *'arubacloud servers/templates'*, *'destroy'*, *'snapshot'*.
|
36
|
+
|
data/README.md
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
# Vagrant ArubaCloud Provider
|
2
2
|
|
3
|
-
-Update version : 0.0.6
|
4
3
|
|
5
4
|
|
6
5
|
## Table of Contents
|
6
|
+
|
7
7
|
* [Overview](#overview)
|
8
8
|
* [Features](#features)
|
9
9
|
* [Installation](#installation)
|
10
|
-
* [
|
11
|
-
|
12
|
-
* [Available options](#available-options)
|
10
|
+
* [Available commands and parameters](#available-commands-and-parameters)
|
11
|
+
* [Obsolete options](#obsolete-options)
|
13
12
|
* [Quick start](#quickstart)
|
14
13
|
* [Example Usage](#example-usage)
|
15
14
|
* [List Templates available](#list-templates-available)
|
@@ -61,29 +60,19 @@ $ vagrant plugin install vagrant-arubacloud
|
|
61
60
|
```
|
62
61
|
|
63
62
|
|
64
|
-
___________
|
65
|
-
## Update
|
66
|
-
|
67
63
|
|
68
|
-
|
69
|
-
(in config *:arubacloud* block)
|
64
|
+
## Available commands and parameters
|
70
65
|
|
71
66
|
|
72
|
-
- the command **vagrant arubacloud servers**
|
73
|
-
*
|
67
|
+
- the command **vagrant arubacloud servers** show for each server found :
|
68
|
+
* DC (DataCenter), the 'id' of the server, the description of the status(run, stop ... etc).
|
74
69
|
* the name of the node is highlighted to see if it has been defined in Vagrantfile.
|
75
70
|
|
76
|
-
-
|
77
|
-
|
78
|
-
|
79
|
-
- option **reload** is now implemented and available; this option execute a simple
|
80
|
-
*power off* ( it's a 'reboot' and not 'power-off' forced)
|
71
|
+
- the command **vagrant reload** execute a simple
|
72
|
+
*power off* ( it's a 'shutdown' and not 'power-off' forced)
|
81
73
|
*power on*
|
82
74
|
|
83
|
-
-
|
84
|
-
|
85
|
-
- option **snapshot** is now implemented and available; this option execute a snapshot
|
86
|
-
of server:
|
75
|
+
- the command **vagrant snapshot** execute a snapshot of server:
|
87
76
|
|
88
77
|
|
89
78
|
| Type| Command | description | status server |
|
@@ -97,9 +86,7 @@ of server:
|
|
97
86
|
1. *if the 'snapshot ... restore ... ' is executed, once the command is finished, after a few seconds the snapshot is automatically deleted*
|
98
87
|
|
99
88
|
|
100
|
-
|
101
|
-
|
102
|
-
- option **package_id** is changed.
|
89
|
+
- parameter **package_id** (in *:arubacloud* section ) is changed.
|
103
90
|
Valid values now are :'small', 'medium', 'large', 'extra large'
|
104
91
|
|
105
92
|
|
@@ -112,10 +99,8 @@ of server:
|
|
112
99
|
|
113
100
|
|
114
101
|
|
115
|
-
-
|
116
|
-
|
117
|
-
for provider *:arubacloud*
|
118
|
-
this parameter define what is the DataCenter Aruba can be used for the defined VM in Vagrantfile ; valid value are: dc1, dc2, dc3, dc4, dc5, dc6, dc8
|
102
|
+
- parameter **endpoint** (in *:arubacloud* section ) define what is the DataCenter Aruba can be used for the defined VM in Vagrantfile;
|
103
|
+
valid value are: dc1, dc2, dc3, dc4, dc5, dc6, dc8
|
119
104
|
(default: dc2 )
|
120
105
|
|
121
106
|
|
@@ -130,26 +115,11 @@ of server:
|
|
130
115
|
| `dc8` | Poland |
|
131
116
|
|
132
117
|
|
133
|
-
- the parameter
|
134
|
-
|
135
|
-
**nodename.url**
|
136
|
-
|
137
|
-
if used can override the 'endpoint' value.
|
118
|
+
- the parameter **nodename.url** (in *:arubacloud* section ) , if used can override the 'endpoint' value.
|
138
119
|
This parameter should only be used in case of new 'dc*'not yet included in this plugin.
|
139
120
|
|
140
|
-
- The very important's messages has the name of DataCenter where the VM running : [dc?] in row displayed ( 'up', 'reload' , 'halt', 'arubacloud servers/templates', 'destroy', 'snapshot')
|
141
|
-
|
142
|
-
|
143
|
-
Together with the package are provided some 'Vagrantfile_*', as an example of basic configuration , minimum configuration for consulting existing servers/templates in Arubacloud, configuration with syncing_folder and a simple shell for provisioning, multi-machine configuration with multiple VM .
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
___________
|
148
|
-
### Available options
|
149
|
-
(in config *:arubacloud*)
|
150
|
-
__________
|
151
121
|
|
152
|
-
- **service_type**
|
122
|
+
- parameter **service_type** (in *:arubacloud* section ) is the 'code' (is a numeric value) of hypervisor used (in Arubacloud )
|
153
123
|
Valid values are:
|
154
124
|
|
155
125
|
| code | hypervisor | service type |
|
@@ -159,20 +129,20 @@ Valid values are:
|
|
159
129
|
| `3` | Microsoft Hyper-V Low Cost | Cloud pro |
|
160
130
|
| `4` | VMWare | Cloud smart |
|
161
131
|
|
162
|
-
- **server_name**
|
163
|
-
- **arubacloud_username**
|
164
|
-
- **arubacloud_password**
|
165
|
-
- **url**
|
166
|
-
- **template_id**
|
167
|
-
- **cpu_number**
|
132
|
+
- parameter **server_name** (in *:arubacloud* section ) is the name of server ( name listed in arubacloud web interface)
|
133
|
+
- parameter **arubacloud_username** (in *:arubacloud* section ) is user account to access arubacloud
|
134
|
+
- parameter **arubacloud_password** (in *:arubacloud* section ) is password of account to access arubacloud
|
135
|
+
- parameter **url** (in *:arubacloud* section ) is url of the web service to use ( *DEPRECATED*)
|
136
|
+
- parameter **template_id** (in *:arubacloud* section ) is ID of the template to use ( read the next notes to determine the correct value)
|
137
|
+
- parameter **cpu_number** (in *:arubacloud* section ) is number of virtual CPU to be assigned to the VM only for service type **not smart**
|
168
138
|
|
169
139
|
| descr | n (number) of CPU) |
|
170
140
|
| --- | --- |
|
171
141
|
| Pro VMWare | 1 < `n` < 8 |
|
172
142
|
| Pro Hyper-V | 1 < `n` < 4 |
|
173
143
|
|
174
|
-
- **ram_qty**
|
175
|
-
- **hds**
|
144
|
+
- parameter **ram_qty** (in *:arubacloud* section ) is amount of GB of RAM to be assigned to the VM (n <= 16) only for service type **not smart**
|
145
|
+
- parameter **hds** (in *:arubacloud* section ) is an array containing hard disk Configuration only for service type **not smart**:
|
176
146
|
|
177
147
|
*Example configuration (size is expressed in GB):*
|
178
148
|
*hds* = [{:type => 0, :size => 100}, {:type => 1, :size => 200}]
|
@@ -182,6 +152,22 @@ Valid values are:
|
|
182
152
|
2. *Hd type > 0 < 4 are 3 additional hard disks (optional)*
|
183
153
|
|
184
154
|
|
155
|
+
|
156
|
+
Now the very important's messages has the name of DataCenter where the VM running : [dc?] in row displayed ( 'up', 'reload' , 'halt', 'arubacloud servers/templates', 'destroy', 'snapshot')
|
157
|
+
|
158
|
+
Together with the package are provided some 'Vagrantfile_...', as an example of basic configuration , minimum configuration for consulting existing servers/templates in Arubacloud, configuration with syncing_folder and a simple shell for provisioning, multi-machine configuration with multiple VM .
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
___________
|
163
|
+
## Obsolete options
|
164
|
+
(in config *:arubacloud* section)
|
165
|
+
__________
|
166
|
+
|
167
|
+
|
168
|
+
- option **admin_password** has been removed and replaced by the directive :
|
169
|
+
'nodename'.ssh.password
|
170
|
+
|
185
171
|
_______________________________________
|
186
172
|
|
187
173
|
|
@@ -17,8 +17,13 @@ module VagrantPlugins
|
|
17
17
|
|
18
18
|
if server_fnd && server_fnd.length == 1
|
19
19
|
server = server_fnd[0]
|
20
|
-
server.
|
21
|
-
|
20
|
+
server.get_public_ip
|
21
|
+
ip_found = server.ipv4_addr
|
22
|
+
if server.hypervisor == 4
|
23
|
+
ip_found = server.smart_ipv4
|
24
|
+
end
|
25
|
+
|
26
|
+
env[:machine].ui.info('%-6s %-20s %-8s %-12s %-14s %s' % [arubacloud_dc, server.name, server.id, server.state, Fog::ArubaCloud::Compute::Server::STATE_DES[server.state], ip_found] )
|
22
27
|
end
|
23
28
|
|
24
29
|
if config.reserved_status == "other"
|
@@ -32,8 +37,12 @@ module VagrantPlugins
|
|
32
37
|
end
|
33
38
|
server_xs = vm_in_dc.select{ |s| not (config.reserved_list_owned.include? s.name)}
|
34
39
|
server_xs.sort_by(&:name).each do |server|
|
35
|
-
server.
|
36
|
-
|
40
|
+
server.get_public_ip
|
41
|
+
ip_found = server.ipv4_addr
|
42
|
+
if server.hypervisor == 4
|
43
|
+
ip_found = server.smart_ipv4
|
44
|
+
end
|
45
|
+
ui_ext.detail('%-6s %-20s %-8s %-12s %-14s %s' % [arubacloud_dc, server.name, server.id, server.state, Fog::ArubaCloud::Compute::Server::STATE_DES[server.state], ip_found] )
|
37
46
|
end
|
38
47
|
config.reserved_list_owned = []
|
39
48
|
else
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-arubacloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aruba S.p.A.
|
@@ -95,6 +95,7 @@ extensions: []
|
|
95
95
|
extra_rdoc_files: []
|
96
96
|
files:
|
97
97
|
- ".gitignore"
|
98
|
+
- CHANGELOG.md
|
98
99
|
- Gemfile
|
99
100
|
- LICENSE.txt
|
100
101
|
- README.md
|