vagrant-arubacloud 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Gemfile +4 -5
- data/Vagrantfile.server_no_smart +41 -0
- data/lib/vagrant-arubacloud/action/read_state.rb +3 -3
- data/lib/vagrant-arubacloud/version.rb +1 -1
- data/vagrant-arubacloud.gemspec +3 -3
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 0f94a045a5a3a803188e66b6efcd1f8429f9fe70c9a155e5166af0362c194bad
|
4
|
+
data.tar.gz: accd95dabd81f0f2e6fea892030a0d69b28c5adcf7b52c163a656f7c99cef03f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d56c74b4218d32c2abc9e281a959aededce2c46e0b740ecc586ad0aeb395d18b8e1ff712a8e16c276a2fff263ee17bdca9c7ec5ae51f78991a18508998e4f33
|
7
|
+
data.tar.gz: 931660ddd591ca2faa9a3da7c9f12792249dc385371fa52631dd7fe13c88a5ce9ae764fed32165a10009c4ac838fdc95917f1ac5ae835b5f7804e47f710e6c82
|
data/Gemfile
CHANGED
@@ -5,10 +5,9 @@ gemspec
|
|
5
5
|
|
6
6
|
group :development do
|
7
7
|
gem 'vagrant', git: 'https://github.com/mitchellh/vagrant.git'
|
8
|
-
#gem '
|
9
|
-
gem 'fog-arubacloud', git: 'https://github.com/fog/fog-arubacloud'
|
8
|
+
#gem 'fog-arubacloud', git: 'https://github.com/Arubacloud/fog-arubacloud.git'
|
10
9
|
end
|
11
10
|
|
12
|
-
group :plugins do
|
13
|
-
gem 'vagrant-arubacloud', path: '.'
|
14
|
-
end
|
11
|
+
#group :plugins do
|
12
|
+
# gem 'vagrant-arubacloud', path: '.'
|
13
|
+
#end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# -*- mode: ruby -*-
|
2
|
+
# vi: set ft=ruby :
|
3
|
+
|
4
|
+
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
|
5
|
+
VAGRANTFILE_API_VERSION = '2'
|
6
|
+
|
7
|
+
%w{AC_USERNAME AC_PASSWORD}.each do |var|
|
8
|
+
abort "Please set the environment variable #{var} in order to run the test" unless ENV.key? var
|
9
|
+
end
|
10
|
+
|
11
|
+
require 'securerandom'
|
12
|
+
rnd_string = SecureRandom.hex(2)
|
13
|
+
|
14
|
+
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
15
|
+
|
16
|
+
# All Vagrant configuration is done here. The most common configuration
|
17
|
+
# options are documented and commented below. For a complete reference,
|
18
|
+
# please see the online documentation at vagrantup.com.
|
19
|
+
|
20
|
+
# Every Vagrant virtual environment requires a box to build off of.
|
21
|
+
config.vm.box = "dummy"
|
22
|
+
|
23
|
+
config.vm.define :centos do |centos|
|
24
|
+
centos.ssh.username = 'root'
|
25
|
+
centos.ssh.password = 'g1un71n5.l4m3n74'
|
26
|
+
centos.vm.provider :arubacloud do |ac|
|
27
|
+
ac.arubacloud_username = ENV['AC_USERNAME']
|
28
|
+
ac.arubacloud_password = ENV['AC_PASSWORD']
|
29
|
+
ac.admin_password = 'g1un71n5.l4m3n74'
|
30
|
+
#ac.template_id = '415'
|
31
|
+
ac.template_id = '9'
|
32
|
+
#ac.package_id = 1
|
33
|
+
ac.service_type = 2
|
34
|
+
ac.server_name = "centos-#{rnd_string}"
|
35
|
+
ac.cpu_number = 2
|
36
|
+
ac.ram_qty = 4
|
37
|
+
ac.hds = [{:type => 0, :size => 20}, {:type => 1, :size => 30}]
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
end
|
@@ -25,11 +25,11 @@ module VagrantPlugins
|
|
25
25
|
|
26
26
|
# Find the machine
|
27
27
|
server = arubacloud.servers.get(machine.id)
|
28
|
-
unless server.instance_of? Fog::Compute::
|
29
|
-
msg = "VagrantPlugins::ArubaCloud::Action::ReadState.read_state, 'server' must be Fog::Compute::
|
28
|
+
unless server.instance_of? Fog::ArubaCloud::Compute::Server
|
29
|
+
msg = "VagrantPlugins::ArubaCloud::Action::ReadState.read_state, 'server' must be Fog::ArubaCloud::Compute::Server, got: #{server.class}"
|
30
30
|
@logger.critical("#{msg}")
|
31
31
|
end
|
32
|
-
if server.nil? || server.state == Fog::Compute::
|
32
|
+
if server.nil? || server.state == Fog::ArubaCloud::Compute::Server::DELETED
|
33
33
|
# The machine can't be found
|
34
34
|
@logger.info('Machine not found or deleted, assuming it got destroyed.')
|
35
35
|
machine.id = nil
|
data/vagrant-arubacloud.gemspec
CHANGED
@@ -7,15 +7,15 @@ require 'vagrant-arubacloud/version'
|
|
7
7
|
Gem::Specification.new do |spec|
|
8
8
|
spec.name = 'vagrant-arubacloud'
|
9
9
|
spec.version = Vagrant::ArubaCloud::VERSION
|
10
|
-
spec.authors = ['
|
11
|
-
spec.email = ['
|
10
|
+
spec.authors = ['Aruba S.p.A.']
|
11
|
+
spec.email = ['cloudsdk@staff.aruba.it']
|
12
12
|
spec.summary = %q{Enables Vagrant to manage servers in ArubaCloud IaaS.}
|
13
13
|
spec.description = %q{Enables Vagrant to manage servers in ArubaCloud IaaS.}
|
14
14
|
spec.homepage = 'https://www.github.com/arubacloud/vagrant-arubacloud'
|
15
15
|
spec.license = 'MIT'
|
16
16
|
|
17
17
|
spec.add_runtime_dependency 'fog', '~> 1.22'
|
18
|
-
spec.add_runtime_dependency 'fog-arubacloud', '~> 0.0.
|
18
|
+
spec.add_runtime_dependency 'fog-arubacloud', '~> 0.0.5'
|
19
19
|
|
20
20
|
spec.add_development_dependency 'bundler', '~> 1.7'
|
21
21
|
spec.add_development_dependency 'rake'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Aruba S.p.A.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fog
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.0.
|
33
|
+
version: 0.0.5
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.0.
|
40
|
+
version: 0.0.5
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -82,7 +82,7 @@ dependencies:
|
|
82
82
|
version: 2.14.0
|
83
83
|
description: Enables Vagrant to manage servers in ArubaCloud IaaS.
|
84
84
|
email:
|
85
|
-
-
|
85
|
+
- cloudsdk@staff.aruba.it
|
86
86
|
executables: []
|
87
87
|
extensions: []
|
88
88
|
extra_rdoc_files: []
|
@@ -93,6 +93,7 @@ files:
|
|
93
93
|
- README.md
|
94
94
|
- Rakefile
|
95
95
|
- Vagrantfile
|
96
|
+
- Vagrantfile.server_no_smart
|
96
97
|
- dummy.box
|
97
98
|
- example_box/metadata.json
|
98
99
|
- gemfiles/vagrant-arubacloud-0.0.1dev.gem
|
@@ -147,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
147
148
|
version: '0'
|
148
149
|
requirements: []
|
149
150
|
rubyforge_project:
|
150
|
-
rubygems_version: 2.4
|
151
|
+
rubygems_version: 2.7.4
|
151
152
|
signing_key:
|
152
153
|
specification_version: 4
|
153
154
|
summary: Enables Vagrant to manage servers in ArubaCloud IaaS.
|