itamae-plugin-recipe-consul 0.1.0.beta3 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +12 -1
- data/lib/itamae/plugin/recipe/consul/install.rb +1 -1
- data/lib/itamae/plugin/recipe/consul/setup.rb +1 -0
- data/lib/itamae/plugin/recipe/consul/version.rb +1 -1
- data/recipes/node.yml +1 -0
- 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: 5f1c3df2b8c5f0a6149ee1a48eddd3a6dcf6cebd
|
4
|
+
data.tar.gz: 1bb3009b9b3ac0c7408bdd6fb024a52bc3dc71dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a75ac2b3c2a61779e40de7eab0e2b97324ff19d171031d4bf8f668dc8c9475dc9662be1d5390b99d4e5a473c0fe41e436dd8ebf89bc32732e1c87c546daadeaa
|
7
|
+
data.tar.gz: 509a12c539b2c19dc5fba382df60dfcb85362dfc6c74ff07ff920f53562b90b45064be0caf59a7b6706de454ba468f8e793b801b2bc4b962e18a2d8cedfd536c
|
data/README.md
CHANGED
@@ -32,12 +32,20 @@ Or install it yourself as:
|
|
32
32
|
|
33
33
|
### Recipe
|
34
34
|
|
35
|
+
Install Consul executable file and init scritps (systemd or init.d)
|
36
|
+
|
35
37
|
```ruby
|
36
38
|
# recipe.rb
|
37
39
|
include_recipe "consul"
|
38
40
|
```
|
39
41
|
|
40
|
-
|
42
|
+
Or `include_recipe` just what you need manually:
|
43
|
+
|
44
|
+
```ruby
|
45
|
+
include_recipe "consul::setup"
|
46
|
+
include_recipe "consul::install"
|
47
|
+
include_recipe "consul::service"
|
48
|
+
```
|
41
49
|
|
42
50
|
### Node
|
43
51
|
|
@@ -47,6 +55,9 @@ consul:
|
|
47
55
|
# install consul version (required)
|
48
56
|
version: "0.6.4"
|
49
57
|
|
58
|
+
# download zip platform (default: "linux_amd64")
|
59
|
+
platform: "linux_amd64"
|
60
|
+
|
50
61
|
# path to downloaded zip file (default: "/usr/local/src")
|
51
62
|
src_dir: "/usr/local/src"
|
52
63
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# Download and install consul executable file
|
2
2
|
package "unzip"
|
3
3
|
|
4
|
-
zip_name = "consul_#{node[:consul][:version]}
|
4
|
+
zip_name = "consul_#{node[:consul][:version]}_#{node[:consul][:platform]}.zip"
|
5
5
|
|
6
6
|
http_request "#{node[:consul][:src_dir]}/#{zip_name}" do
|
7
7
|
url "https://releases.hashicorp.com/consul/#{node[:consul][:version]}/#{zip_name}"
|
data/recipes/node.yml
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: itamae-plugin-recipe-consul
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sue445
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: itamae
|
@@ -128,9 +128,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
128
128
|
version: '0'
|
129
129
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
130
130
|
requirements:
|
131
|
-
- - "
|
131
|
+
- - ">="
|
132
132
|
- !ruby/object:Gem::Version
|
133
|
-
version:
|
133
|
+
version: '0'
|
134
134
|
requirements: []
|
135
135
|
rubyforge_project:
|
136
136
|
rubygems_version: 2.5.1
|