vagrant-serverkit 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +2 -1
- data/Vagrantfile +1 -0
- data/lib/vagrant/serverkit/version.rb +1 -1
- data/lib/vagrant_plugins/serverkit/config.rb +1 -0
- data/lib/vagrant_plugins/serverkit/provisioner.rb +7 -0
- data/vagrant-serverkit.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3b650a9083301b404fa1e13d92295c3ec9ed633
|
4
|
+
data.tar.gz: 97888398de18ce5105873f48f3ac4573d074e7fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1295db8868a5f8ccac1992a57bd187e45f03c0d795c6da532811152a696bf7b44dba6226e45af79571d1c38cd8ea4dd4be936fd215f3042bce488f6810000a6
|
7
|
+
data.tar.gz: 480afee2c956f71291423813bad7d0717598e64b1ff994b641c0fda10884544f25097c6cfe49d3c16e8ae0f53b6ea291e708b2aed69e2ff7754320932a1b3f96
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -17,7 +17,8 @@ $ vagrant plugin install vagrant-serverkit
|
|
17
17
|
The following configurations are available on serverkit provisioner:
|
18
18
|
|
19
19
|
- `recipe_path` - Path to serverkit recipe (e.g. `"recipe.yml"`)
|
20
|
-
- `variables_path` - Path to serverkit recipe variables (optional)
|
20
|
+
- `variables_path` - Path to serverkit recipe variables (e.g. `"variables.yml"`, optional)
|
21
|
+
- `log_level` - Log level (e.g. `"DEBUG"`, optional)
|
21
22
|
|
22
23
|
### Example
|
23
24
|
Here is an example to provision a vagrant box with Serverkit.
|
data/Vagrantfile
CHANGED
@@ -2,6 +2,7 @@ Vagrant.configure("2") do |config|
|
|
2
2
|
config.vm.box = "ubuntu/trusty64"
|
3
3
|
|
4
4
|
config.vm.provision :serverkit do |serverkit_config|
|
5
|
+
serverkit_config.log_level = "DEBUG"
|
5
6
|
serverkit_config.recipe_path = "recipe.yml.erb"
|
6
7
|
serverkit_config.variables_path = "variables.yml"
|
7
8
|
end
|
@@ -1,3 +1,4 @@
|
|
1
|
+
require "logger"
|
1
2
|
require "serverkit"
|
2
3
|
require "vagrant"
|
3
4
|
|
@@ -7,6 +8,7 @@ module VagrantPlugins
|
|
7
8
|
def provision
|
8
9
|
::Serverkit::Actions::Apply.new(
|
9
10
|
hosts: host,
|
11
|
+
log_level: log_level,
|
10
12
|
recipe_path: config.recipe_path,
|
11
13
|
ssh_options: ssh_options,
|
12
14
|
variables_path: config.variables_path,
|
@@ -29,6 +31,11 @@ module VagrantPlugins
|
|
29
31
|
machine.ssh_info[:host]
|
30
32
|
end
|
31
33
|
|
34
|
+
# @return [Fixnum]
|
35
|
+
def log_level
|
36
|
+
::Serverkit::Command::LOG_LEVELS_TABLE[config.log_level] || ::Logger::UNKNOWN
|
37
|
+
end
|
38
|
+
|
32
39
|
# @return [Fixnum, nil]
|
33
40
|
def port
|
34
41
|
if machine.ssh_info[:port]
|
data/vagrant-serverkit.gemspec
CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
|
|
14
14
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
15
15
|
spec.require_paths = ["lib"]
|
16
16
|
|
17
|
-
spec.add_runtime_dependency "serverkit", ">= 0.
|
17
|
+
spec.add_runtime_dependency "serverkit", ">= 0.4.0"
|
18
18
|
spec.add_development_dependency "bundler"
|
19
19
|
spec.add_development_dependency "rake", "~> 10.0"
|
20
20
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-serverkit
|
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
|
- Ryo Nakamura
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: serverkit
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.4.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.4.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|