vagrant-niftycloud 0.2.1 → 0.3.0
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.
- data/CHANGELOG.md +5 -1
- data/README.md +21 -3
- data/lib/vagrant-niftycloud/action/run_instance.rb +2 -2
- data/lib/vagrant-niftycloud/version.rb +1 -1
- metadata +3 -3
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -35,7 +35,6 @@ vagrant upを実行する前に、VirtualBox等でVagrantを使用する時と
|
|
35
35
|
```
|
36
36
|
$ vagrant plugin install vagrant-niftycloud
|
37
37
|
$ vagrant box add dummy https://github.com/sakama/vagrant-niftycloud/raw/master/dummy.box
|
38
|
-
|
39
38
|
```
|
40
39
|
|
41
40
|
### OSイメージの作成
|
@@ -241,6 +240,25 @@ export NIFTY_CLOUD_ENDPOINT_URL='https://east-1.cp.cloud.nifty.com/api/'
|
|
241
240
|
export NIFTY_CLOUD_ENDPOINT_URL='https://west-1.cp.cloud.nifty.com/api/'
|
242
241
|
```
|
243
242
|
|
243
|
+
### ニフティクラウドのサーバ起動時スクリプトのサポート
|
244
|
+
ニフティクラウドの[サーバ起動時スクリプト](http://cloud.nifty.com/service/svscript.htm)をサポートしています。
|
245
|
+
|
246
|
+
以下のように指定して下さい。
|
247
|
+
|
248
|
+
```
|
249
|
+
Vagrant.configure("2") do |config|
|
250
|
+
# ... other stuff
|
251
|
+
|
252
|
+
config.vm.provider "niftycloud" do |niftycloud|
|
253
|
+
# Option 1: 1行で指定
|
254
|
+
niftycloud.user_data = "#!/bin/bash\necho 'got user data' > /tmp/user_data.log\necho"
|
255
|
+
|
256
|
+
# Option 2: ファイルから読み込む
|
257
|
+
niftycloud.user_data = File.read("user_data.txt")
|
258
|
+
end
|
259
|
+
end
|
260
|
+
```
|
261
|
+
|
244
262
|
## VagrantのNetwork機能への対応
|
245
263
|
|
246
264
|
|
@@ -280,6 +298,6 @@ $ bundle exec rake
|
|
280
298
|
$ bundle exec vagrant up --provider=niftycloud
|
281
299
|
```
|
282
300
|
|
283
|
-
##
|
301
|
+
## License
|
284
302
|
|
285
|
-
[vagrant-aws](https://github.com/mitchellh/vagrant-aws) をベースにニフティクラウド向けに修正を加えたものです。 オリジナルに準じて MIT
|
303
|
+
[vagrant-aws](https://github.com/mitchellh/vagrant-aws) をベースにニフティクラウド向けに修正を加えたものです。 オリジナルに準じて MIT License を適用します。
|
@@ -38,7 +38,6 @@ module VagrantPlugins
|
|
38
38
|
env[:ui].info(" -- Key Name: #{key_name}") if key_name
|
39
39
|
env[:ui].info(" -- User Data: yes") if user_data
|
40
40
|
env[:ui].info(" -- Firewall: #{firewall.inspect}") if !firewall.empty?
|
41
|
-
env[:ui].info(" -- User Data: #{user_data}") if user_data
|
42
41
|
|
43
42
|
options = {
|
44
43
|
:instance_id => instance_id,
|
@@ -47,8 +46,9 @@ module VagrantPlugins
|
|
47
46
|
:image_id => image_id,
|
48
47
|
:key_name => zone_config.key_name,
|
49
48
|
:user_data => user_data,
|
49
|
+
:base64_encoded => true,
|
50
50
|
:password => password,
|
51
|
-
:accounting_type => 2,
|
51
|
+
:accounting_type => 2, #従量課金
|
52
52
|
:disable_api_termination => false #APIから即terminate可
|
53
53
|
}
|
54
54
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-niftycloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-08-
|
12
|
+
date: 2013-08-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -148,7 +148,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
148
148
|
version: '0'
|
149
149
|
segments:
|
150
150
|
- 0
|
151
|
-
hash:
|
151
|
+
hash: 647630623550404957
|
152
152
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
153
153
|
none: false
|
154
154
|
requirements:
|