vagrant-openstack-provider 0.3.3 → 0.3.4.pre
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22cfd63490dd6ae88ae62f3ff27dcb5a86b936c2
|
4
|
+
data.tar.gz: 1e8bdb1a7946c5ad1d176613e987aac0e862c62e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 09d6b747454c925c2563679a76f721d021fa3bc570a49d5aed83d4a06539c10b0e8088d777aa78c864f3e3ee8374283f1350182f29c4cf6e14213224affee642
|
7
|
+
data.tar.gz: 6628dcc91c4545d005ff97a5908e0ee776572ee9af26532c0e7cd98c3240d1e1a2a3cbc3118f71a5b34ec1bae1f3b77c9554057c464709604187af48d741ae0e
|
@@ -101,7 +101,9 @@ module VagrantPlugins
|
|
101
101
|
key = SSHKey.generate
|
102
102
|
nova = env[:openstack_client].nova
|
103
103
|
generated_keyname = nova.import_keypair(env, key.ssh_public_key)
|
104
|
-
|
104
|
+
file_path = "#{env[:machine].data_dir}/#{generated_keyname}"
|
105
|
+
File.write(file_path, key.private_key)
|
106
|
+
File.chmod(0600, file_path)
|
105
107
|
generated_keyname
|
106
108
|
end
|
107
109
|
|
@@ -200,6 +200,7 @@ describe VagrantPlugins::Openstack::Action::CreateServer do
|
|
200
200
|
nova.stub(:import_keypair) { 'my-keypair-imported' }
|
201
201
|
SSHKey.stub(:generate) { ssh_key }
|
202
202
|
File.should_receive(:write).with('/data/dir/my-keypair-imported', 'private key')
|
203
|
+
File.should_receive(:chmod).with(0600, '/data/dir/my-keypair-imported')
|
203
204
|
@action.generate_keypair(env).should eq('my-keypair-imported')
|
204
205
|
end
|
205
206
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-openstack-provider
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Guillaume Giamarchi
|
@@ -212,9 +212,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
212
212
|
version: '0'
|
213
213
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
214
214
|
requirements:
|
215
|
-
- - '
|
215
|
+
- - '>'
|
216
216
|
- !ruby/object:Gem::Version
|
217
|
-
version:
|
217
|
+
version: 1.3.1
|
218
218
|
requirements: []
|
219
219
|
rubyforge_project:
|
220
220
|
rubygems_version: 2.0.14
|