vagrant-g5k 0.0.4 → 0.0.5
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 +3 -95
- data/README.md +1 -27
- data/lib/vagrant-g5k/{util/.launch_vm_fwd.sh.swp → action/.delete_job.rb.swp} +0 -0
- data/lib/vagrant-g5k/action/delete_job.rb +18 -0
- data/lib/vagrant-g5k/action.rb +28 -4
- data/lib/vagrant-g5k/command.rb +2 -3
- data/lib/vagrant-g5k/util/g5k_utils.rb +1 -1
- data/lib/vagrant-g5k/version.rb +1 -1
- metadata +4 -4
- data/lib/vagrant-g5k/util/.g5k_utils.rb.swp +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2356c0013be92069f4e7d3bc2987c175e20ff007
|
4
|
+
data.tar.gz: 2d94e08a93912a7fec591109cdee311614872cb9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e3beec21c5dd929985e4d7dd5c97b2bf921ca8a11d16b32e87fd5b54a9bd86859da41cf1d465a927031ed248d67daacdb4aa262ed22a9bc059a77352c9baab7
|
7
|
+
data.tar.gz: 9e94479cf5412fe688fdb82b196d541aeddfa6ddabd75398ffbbb0a84ef37ceda848bb5ebac4ced24f03a5e4f5e70e91727989b13d25b4f322db235efe02b454
|
data/CHANGELOG.md
CHANGED
@@ -1,96 +1,4 @@
|
|
1
|
-
# 0.
|
1
|
+
# 0.0.4
|
2
2
|
|
3
|
-
*
|
4
|
-
|
5
|
-
# 0.6.0 (December 13, 2014)
|
6
|
-
|
7
|
-
* Support static Elastic IP addresses.
|
8
|
-
* Support for creating AMIs with the `vagrant package`
|
9
|
-
|
10
|
-
# 0.5.0 (June 22, 2014)
|
11
|
-
|
12
|
-
* Support for associating public IPs for VMs inside of VPCs (GH
|
13
|
-
[#219](https://github.com/mitchellh/vagrant-aws/pull/219), GH
|
14
|
-
[#205](https://github.com/mitchellh/vagrant-aws/issues/205))
|
15
|
-
* Bug-fix for per region configs with `associate_public_ip` (GH
|
16
|
-
[#237](https://github.com/mitchellh/vagrant-aws/pull/237))
|
17
|
-
* rsyncing folders uses `--delete` flag to better emulate "real shared folders
|
18
|
-
(GH [#194](https://github.com/mitchellh/vagrant-aws/pull/194))
|
19
|
-
* fog gem version bumped to 1.22 (GH [#253](https://github.com/mitchellh/vagrant-aws/pull/253))
|
20
|
-
* Simple ELB support (GH [#88](https://github.com/mitchellh/vagrant-aws/pull/88),
|
21
|
-
GH [#238](https://github.com/mitchellh/vagrant-aws/pull/238))
|
22
|
-
|
23
|
-
# 0.4.1 (December 17, 2013)
|
24
|
-
|
25
|
-
* Update fog.io to 1.18.0
|
26
|
-
* Fix sync folder user permissions (GH #175)
|
27
|
-
* Fix vagrant < 1.3.0 provisioner compatibility (GH #173)
|
28
|
-
* Add vagrant 1.4.0 multiple SSH key support (GH #172)
|
29
|
-
* Fix EIP deallocation bug (GH #164)
|
30
|
-
* Add (per shared folder) rsync exclude flag (GH #156)
|
31
|
-
|
32
|
-
# 0.4.0 (October 11, 2013)
|
33
|
-
|
34
|
-
* Handle EIP allocation error (GH #134)
|
35
|
-
* Implement halt and reload (GH #31)
|
36
|
-
* rsync ignores Vagrantfile
|
37
|
-
* warn if none of the security groups allows incoming SSH
|
38
|
-
* bump fog.io to 1.15.0
|
39
|
-
* Fix rsync on windows (GH #77)
|
40
|
-
* Add `ssh_host_attribute` config (GH #143)
|
41
|
-
|
42
|
-
# 0.3.0 (September 2, 2013)
|
43
|
-
|
44
|
-
* Parallelize multi-machine up on Vagrant 1.2+
|
45
|
-
* Show proper configuration errors if an invalid configuration key
|
46
|
-
is used.
|
47
|
-
* Request confirmation on `vagrant destroy`, like normal VirtualBox + Vagrant.
|
48
|
-
* If user data is configured, output is shown on "vagrant up" that
|
49
|
-
it is being set.
|
50
|
-
* Add EIP support (GH #65)
|
51
|
-
* Add block device mapping support (GH #93)
|
52
|
-
* README improvements (GH #120)
|
53
|
-
* Fix missing locale message (GH #73)
|
54
|
-
* SyncFolders creates hostpath if it doesn't exist and `:create` option is set (GH #17)
|
55
|
-
* Add IAM Instance Profile support (GH #68)
|
56
|
-
* Add shutdown behavior support (GH #125,#131)
|
57
|
-
|
58
|
-
# 0.2.2 (April 18, 2013)
|
59
|
-
|
60
|
-
* Fix crashing bug with incorrect provisioner arguments.
|
61
|
-
|
62
|
-
# 0.2.1 (April 16, 2013)
|
63
|
-
|
64
|
-
* Got rid of extranneous references to old SSH settings.
|
65
|
-
|
66
|
-
# 0.2.0 (April 16, 2013)
|
67
|
-
|
68
|
-
* Add support for `vagrant ssh -c` [GH-42]
|
69
|
-
* Ability to specify a timeout for waiting for instances to become ready. [GH-44]
|
70
|
-
* Better error message if instance didn't become ready in time.
|
71
|
-
* Connection can now be done using IAM profiles. [GH-41]
|
72
|
-
|
73
|
-
# 0.1.3 (April 9, 2013)
|
74
|
-
|
75
|
-
* The `AWS_ACCESS_KEY` and `AWS_SECRET_KEY` will be used if available
|
76
|
-
and no specific keys are set in the Vagrantfile. [GH-33]
|
77
|
-
* Fix issues with SSH on VPCs, the correct IP is used. [GH-30]
|
78
|
-
* Exclude the ".vagrant" directory from rsync.
|
79
|
-
* Implement `:disabled` flag support for shared folders. [GH-29]
|
80
|
-
* `aws.user_data` to specify user data on the instance. [GH-26]
|
81
|
-
|
82
|
-
# 0.1.2 (March 22, 2013)
|
83
|
-
|
84
|
-
* Choose the proper region when connecting to AWS. [GH-9]
|
85
|
-
* Configurable SSH port. [GH-13]
|
86
|
-
* Support other AWS-compatible API endpoints with `config.endpoint`
|
87
|
-
and `config.version`. [GH-6]
|
88
|
-
* Disable strict host key checking on rsync so known hosts aren't an issue. [GH-7]
|
89
|
-
|
90
|
-
# 0.1.1 (March 18, 2013)
|
91
|
-
|
92
|
-
* Up fog dependency for Vagrant 1.1.1
|
93
|
-
|
94
|
-
# 0.1.0 (March 14, 2013)
|
95
|
-
|
96
|
-
* Initial release.
|
3
|
+
* use nat-ted network provided by kvm
|
4
|
+
* remove hard-coded names
|
data/README.md
CHANGED
@@ -24,30 +24,4 @@ $ vagrant up --provider=g5k
|
|
24
24
|
```
|
25
25
|
## Configuration
|
26
26
|
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
```ruby
|
32
|
-
# -*- mode: ruby -*-
|
33
|
-
# vi: set ft=ruby :
|
34
|
-
#
|
35
|
-
|
36
|
-
Vagrant.configure(2) do |config|
|
37
|
-
# box isn't used
|
38
|
-
config.vm.box = "public/alpine_docker"
|
39
|
-
# user to log with inside the vm
|
40
|
-
config.ssh.username = "root"
|
41
|
-
# password to use to log inside the vm
|
42
|
-
config.ssh.password = ""
|
43
|
-
|
44
|
-
config.vm.provider "g5k" do |g5k|
|
45
|
-
g5k.username = "msimonin"
|
46
|
-
g5k.site = "lille"
|
47
|
-
g5k.image_location = "/home/msimonin/public/alpine_docker.qcow2"
|
48
|
-
g5k.image_type = "local"
|
49
|
-
g5k.image_strategy = "snapshot"
|
50
|
-
end
|
51
|
-
|
52
|
-
end
|
53
|
-
```
|
27
|
+
Check the Vagrantfile.
|
Binary file
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module VagrantPlugins
|
2
|
+
module G5K
|
3
|
+
module Action
|
4
|
+
class DeleteJob
|
5
|
+
def initialize(app, env)
|
6
|
+
@app = app
|
7
|
+
end
|
8
|
+
|
9
|
+
def call(env)
|
10
|
+
job_id = env[:machine].id
|
11
|
+
conn = env[:g5k_connection]
|
12
|
+
conn.exec("oardel #{job_id}")
|
13
|
+
@app.call(env)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
data/lib/vagrant-g5k/action.rb
CHANGED
@@ -62,16 +62,40 @@ module VagrantPlugins
|
|
62
62
|
end
|
63
63
|
end
|
64
64
|
|
65
|
+
# This action is called to terminate the remote machine.
|
66
|
+
def self.action_destroy
|
67
|
+
Vagrant::Action::Builder.new.tap do |b|
|
68
|
+
b.use Call, DestroyConfirm do |env, b2|
|
69
|
+
if env[:result]
|
70
|
+
b2.use ConfigValidate
|
71
|
+
b2.use Call, IsCreated do |env2, b3|
|
72
|
+
if !env2[:result]
|
73
|
+
b3.use MessageNotCreated
|
74
|
+
next
|
75
|
+
end
|
76
|
+
|
77
|
+
b3.use ConnectG5K
|
78
|
+
b3.use DeleteJob
|
79
|
+
end
|
80
|
+
else
|
81
|
+
b2.use MessageWillNotDestroy
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
|
65
88
|
action_root = Pathname.new(File.expand_path("../action", __FILE__))
|
89
|
+
autoload :ConnectG5K, action_root.join("connect_g5k")
|
90
|
+
autoload :CreateLocalWorkingDir, action_root.join("create_local_working_dir")
|
91
|
+
autoload :DeleteJob, action_root.join("delete_job")
|
92
|
+
autoload :IsCreated, action_root.join("is_created")
|
66
93
|
autoload :MessageAlreadyCreated, action_root.join("message_already_created")
|
67
94
|
autoload :MessageNotCreated, action_root.join("message_not_created")
|
68
95
|
autoload :ReadSSHInfo, action_root.join("read_ssh_info")
|
69
96
|
autoload :ReadState, action_root.join("read_state")
|
70
|
-
autoload :ConnectG5K, action_root.join("connect_g5k")
|
71
|
-
autoload :CreateLocalWorkingDir, action_root.join("create_local_working_dir")
|
72
|
-
autoload :StartInstance, action_root.join("start_instance")
|
73
|
-
autoload :IsCreated, action_root.join("is_created")
|
74
97
|
autoload :RunInstance, action_root.join("run_instance")
|
98
|
+
autoload :StartInstance, action_root.join("start_instance")
|
75
99
|
|
76
100
|
end
|
77
101
|
end
|
data/lib/vagrant-g5k/command.rb
CHANGED
data/lib/vagrant-g5k/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-g5k
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthieu Simonin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-09-
|
11
|
+
date: 2016-09-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: iniparse
|
@@ -129,8 +129,10 @@ files:
|
|
129
129
|
- lib/vagrant-g5k.rb
|
130
130
|
- lib/vagrant-g5k/.config.rb.swp
|
131
131
|
- lib/vagrant-g5k/action.rb
|
132
|
+
- lib/vagrant-g5k/action/.delete_job.rb.swp
|
132
133
|
- lib/vagrant-g5k/action/connect_g5k.rb
|
133
134
|
- lib/vagrant-g5k/action/create_local_working_dir.rb
|
135
|
+
- lib/vagrant-g5k/action/delete_job.rb
|
134
136
|
- lib/vagrant-g5k/action/is_created.rb
|
135
137
|
- lib/vagrant-g5k/action/message_already_created.rb
|
136
138
|
- lib/vagrant-g5k/action/message_not_created.rb
|
@@ -142,8 +144,6 @@ files:
|
|
142
144
|
- lib/vagrant-g5k/errors.rb
|
143
145
|
- lib/vagrant-g5k/plugin.rb
|
144
146
|
- lib/vagrant-g5k/provider.rb
|
145
|
-
- lib/vagrant-g5k/util/.g5k_utils.rb.swp
|
146
|
-
- lib/vagrant-g5k/util/.launch_vm_fwd.sh.swp
|
147
147
|
- lib/vagrant-g5k/util/g5k_utils.rb
|
148
148
|
- lib/vagrant-g5k/util/launch_vm_fwd.sh
|
149
149
|
- lib/vagrant-g5k/version.rb
|
Binary file
|