vagrant-haipa 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +19 -0
- data/.vscode/launch.json +29 -0
- data/Gemfile +20 -0
- data/LICENSE +373 -0
- data/README.md +111 -0
- data/Rakefile +24 -0
- data/box/haipa.box +0 -0
- data/box/metadata.json +3 -0
- data/lib/vagrant-haipa.rb +20 -0
- data/lib/vagrant-haipa/actions.rb +209 -0
- data/lib/vagrant-haipa/actions/check_state.rb +19 -0
- data/lib/vagrant-haipa/actions/connect_haipa.rb +24 -0
- data/lib/vagrant-haipa/actions/create_machine.rb +56 -0
- data/lib/vagrant-haipa/actions/delete_machine.rb +31 -0
- data/lib/vagrant-haipa/actions/is_created.rb +18 -0
- data/lib/vagrant-haipa/actions/is_stopped.rb +18 -0
- data/lib/vagrant-haipa/actions/message_already_created.rb +16 -0
- data/lib/vagrant-haipa/actions/message_not_created.rb +16 -0
- data/lib/vagrant-haipa/actions/message_will_not_destroy.rb +16 -0
- data/lib/vagrant-haipa/actions/modify_provision_path.rb +38 -0
- data/lib/vagrant-haipa/actions/set_name.rb +53 -0
- data/lib/vagrant-haipa/actions/shut_down.rb +33 -0
- data/lib/vagrant-haipa/actions/start_machine.rb +34 -0
- data/lib/vagrant-haipa/actions/stop_machine.rb +33 -0
- data/lib/vagrant-haipa/actions/wait_for_ip_address.rb +32 -0
- data/lib/vagrant-haipa/config.rb +54 -0
- data/lib/vagrant-haipa/errors.rb +41 -0
- data/lib/vagrant-haipa/helpers/client.rb +111 -0
- data/lib/vagrant-haipa/helpers/result.rb +40 -0
- data/lib/vagrant-haipa/plugin.rb +22 -0
- data/lib/vagrant-haipa/provider.rb +118 -0
- data/lib/vagrant-haipa/version.rb +5 -0
- data/locales/en.yml +95 -0
- data/test/Vagrantfile +43 -0
- data/test/cookbooks/test/recipes/default.rb +1 -0
- data/test/scripts/provision.sh +3 -0
- data/test/test.sh +13 -0
- data/test/test_id_rsa +27 -0
- data/test/test_id_rsa.pub +1 -0
- data/vagrant +27 -0
- data/vagrant-haipa.gemspec +21 -0
- metadata +132 -0
data/test/test.sh
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# if ! bundle exec vagrant box list | grep haipa 1>/dev/null; then
|
2
|
+
# bundle exec vagrant box add haipa box/haipa.box
|
3
|
+
# fi
|
4
|
+
|
5
|
+
cd test
|
6
|
+
|
7
|
+
bundle exec vagrant up --provider=haipa
|
8
|
+
bundle exec vagrant up
|
9
|
+
bundle exec vagrant provision
|
10
|
+
bundle exec vagrant halt
|
11
|
+
bundle exec vagrant destroy
|
12
|
+
|
13
|
+
cd ..
|
data/test/test_id_rsa
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
-----BEGIN RSA PRIVATE KEY-----
|
2
|
+
MIIEowIBAAKCAQEAmxZRyfvgXFxlPW9ivoxffdK9erqpCp1oitghUtDxbzPSCbNw
|
3
|
+
qBoiJcnPVA/TuCxMnruUcNEXYgKfTL8lD3A1Hom8N1pTAhSed5m4qAGqTMubT15s
|
4
|
+
cSR+SnDdriShErB/9YSb9LVn1aR0MsFS3H/+x1j4w5d6hBas8BhDfuVd16shvoaA
|
5
|
+
OKy0ywy+NBuvGy/6Au3q3t7M9wdelODRnYLSWWqaLeYExRKxWWc7ape+oduQoe4r
|
6
|
+
BNVwGmIOjWOM9aFPEPVHdLGO+LQyPExdeuS0rW96a39U4p8GjGzsrkNcKzVOGjM3
|
7
|
+
pIsGs3qOi7RzJ3z48HiBj9NT8I2fFpGHERerbQIDAQABAoIBABXsIcObhyuHJAh7
|
8
|
+
JkopLZZro70lhZ+qgIyf4JYEUxyVBqu4YcRhbVJKJLSNSDBQksQdX+5SoCuKk1oV
|
9
|
+
6vcztU6Lyb9JVVKF96CQajnVgm04msutXUbhEbkUG0Hyi5JIwM3D4QfGXNcmWAaU
|
10
|
+
rVHeBfXH7eI4F2l0ix2lUGUvpwRFRDq9HgpOjXzyc57B4jeF7na/UTnt+Uoi4hzZ
|
11
|
+
FjjQ7nSLqEJL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C5ngC4
|
26
|
+
JPxyTn4MdoX0enm8PRDg7CSZwa4AK1MIYetbiuJgWJ2wKXDFxuGH
|
27
|
+
-----END RSA PRIVATE KEY-----
|
@@ -0,0 +1 @@
|
|
1
|
+
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCbFlHJ++BcXGU9b2K+jF990r16uqkKnWiK2CFS0PFvM9IJs3CoGiIlyc9UD9O4LEyeu5Rw0RdiAp9MvyUPcDUeibw3WlMCFJ53mbioAapMy5tPXmxxJH5KcN2uJKESsH/1hJv0tWfVpHQywVLcf/7HWPjDl3qEFqzwGEN+5V3XqyG+hoA4rLTLDL40G68bL/oC7ere3sz3B16U4NGdgtJZapot5gTFErFZZztql76h25Ch7isE1XAaYg6NY4z1oU8Q9Ud0sY74tDI8TF165LStb3prf1TinwaMbOyuQ1wrNU4aMzekiwazeo6LtHMnfPjweIGP01PwjZ8WkYcRF6tt digital_ocean provider test key
|
data/vagrant
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
#!C:/Users/vagrant/AppData/Local/Temp/b2p1jxhg.y1c/embedded/mingw64/bin/ruby.exe
|
2
|
+
#
|
3
|
+
# This file was generated by RubyGems.
|
4
|
+
#
|
5
|
+
# The application 'vagrant' is installed as part of a gem, and
|
6
|
+
# this file is here to facilitate running it.
|
7
|
+
#
|
8
|
+
|
9
|
+
require 'rubygems'
|
10
|
+
|
11
|
+
version = ">= 0.a"
|
12
|
+
|
13
|
+
if ARGV.first
|
14
|
+
str = ARGV.first
|
15
|
+
str = str.dup.force_encoding("BINARY") if str.respond_to? :force_encoding
|
16
|
+
if str =~ /\A_(.*)_\z/ and Gem::Version.correct?($1) then
|
17
|
+
version = $1
|
18
|
+
ARGV.shift
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
if Gem.respond_to?(:activate_bin_path)
|
23
|
+
load Gem.activate_bin_path('vagrant', 'vagrant', version)
|
24
|
+
else
|
25
|
+
gem "vagrant", version
|
26
|
+
load Gem.bin_path("vagrant", "vagrant", version)
|
27
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'vagrant-haipa/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |gem|
|
7
|
+
gem.name = "vagrant-haipa"
|
8
|
+
gem.version = VagrantPlugins::Haipa::VERSION
|
9
|
+
gem.authors = ["Frank Wagner"]
|
10
|
+
gem.email = ["info@contiva.com"]
|
11
|
+
gem.description = %q{Enables Vagrant to manage Hyper-V with Haipa}
|
12
|
+
gem.summary = gem.description
|
13
|
+
|
14
|
+
gem.files = `git ls-files`.split($/)
|
15
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
16
|
+
gem.require_paths = ["lib"]
|
17
|
+
|
18
|
+
gem.add_dependency "faraday", ">= 0.8.6"
|
19
|
+
gem.add_dependency "json"
|
20
|
+
gem.add_dependency "log4r"
|
21
|
+
end
|
metadata
ADDED
@@ -0,0 +1,132 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: vagrant-haipa
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Frank Wagner
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-03-16 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: faraday
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.8.6
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.8.6
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: json
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: log4r
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
description: Enables Vagrant to manage Hyper-V with Haipa
|
56
|
+
email:
|
57
|
+
- info@contiva.com
|
58
|
+
executables: []
|
59
|
+
extensions: []
|
60
|
+
extra_rdoc_files: []
|
61
|
+
files:
|
62
|
+
- ".gitignore"
|
63
|
+
- ".vscode/launch.json"
|
64
|
+
- Gemfile
|
65
|
+
- LICENSE
|
66
|
+
- README.md
|
67
|
+
- Rakefile
|
68
|
+
- box/haipa.box
|
69
|
+
- box/metadata.json
|
70
|
+
- lib/vagrant-haipa.rb
|
71
|
+
- lib/vagrant-haipa/actions.rb
|
72
|
+
- lib/vagrant-haipa/actions/check_state.rb
|
73
|
+
- lib/vagrant-haipa/actions/connect_haipa.rb
|
74
|
+
- lib/vagrant-haipa/actions/create_machine.rb
|
75
|
+
- lib/vagrant-haipa/actions/delete_machine.rb
|
76
|
+
- lib/vagrant-haipa/actions/is_created.rb
|
77
|
+
- lib/vagrant-haipa/actions/is_stopped.rb
|
78
|
+
- lib/vagrant-haipa/actions/message_already_created.rb
|
79
|
+
- lib/vagrant-haipa/actions/message_not_created.rb
|
80
|
+
- lib/vagrant-haipa/actions/message_will_not_destroy.rb
|
81
|
+
- lib/vagrant-haipa/actions/modify_provision_path.rb
|
82
|
+
- lib/vagrant-haipa/actions/set_name.rb
|
83
|
+
- lib/vagrant-haipa/actions/shut_down.rb
|
84
|
+
- lib/vagrant-haipa/actions/start_machine.rb
|
85
|
+
- lib/vagrant-haipa/actions/stop_machine.rb
|
86
|
+
- lib/vagrant-haipa/actions/wait_for_ip_address.rb
|
87
|
+
- lib/vagrant-haipa/config.rb
|
88
|
+
- lib/vagrant-haipa/errors.rb
|
89
|
+
- lib/vagrant-haipa/helpers/client.rb
|
90
|
+
- lib/vagrant-haipa/helpers/result.rb
|
91
|
+
- lib/vagrant-haipa/plugin.rb
|
92
|
+
- lib/vagrant-haipa/provider.rb
|
93
|
+
- lib/vagrant-haipa/version.rb
|
94
|
+
- locales/en.yml
|
95
|
+
- test/Vagrantfile
|
96
|
+
- test/cookbooks/test/recipes/default.rb
|
97
|
+
- test/scripts/provision.sh
|
98
|
+
- test/test.sh
|
99
|
+
- test/test_id_rsa
|
100
|
+
- test/test_id_rsa.pub
|
101
|
+
- vagrant
|
102
|
+
- vagrant-haipa.gemspec
|
103
|
+
homepage:
|
104
|
+
licenses: []
|
105
|
+
metadata: {}
|
106
|
+
post_install_message:
|
107
|
+
rdoc_options: []
|
108
|
+
require_paths:
|
109
|
+
- lib
|
110
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
111
|
+
requirements:
|
112
|
+
- - ">="
|
113
|
+
- !ruby/object:Gem::Version
|
114
|
+
version: '0'
|
115
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
116
|
+
requirements:
|
117
|
+
- - ">="
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: '0'
|
120
|
+
requirements: []
|
121
|
+
rubyforge_project:
|
122
|
+
rubygems_version: 2.7.6
|
123
|
+
signing_key:
|
124
|
+
specification_version: 4
|
125
|
+
summary: Enables Vagrant to manage Hyper-V with Haipa
|
126
|
+
test_files:
|
127
|
+
- test/Vagrantfile
|
128
|
+
- test/cookbooks/test/recipes/default.rb
|
129
|
+
- test/scripts/provision.sh
|
130
|
+
- test/test.sh
|
131
|
+
- test/test_id_rsa
|
132
|
+
- test/test_id_rsa.pub
|