itamae-plugin-recipe-consul 0.1.0.beta3 → 0.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4c83dda123d2cf648a67c3953139bd6d6553830e
4
- data.tar.gz: 8d161eef85a13ec522a1bc2f2294d9c5cb2c13f9
3
+ metadata.gz: 5f1c3df2b8c5f0a6149ee1a48eddd3a6dcf6cebd
4
+ data.tar.gz: 1bb3009b9b3ac0c7408bdd6fb024a52bc3dc71dc
5
5
  SHA512:
6
- metadata.gz: 9333d1253a4ff02fbd5220b1a19a6b0cee33ec827b901b0370c2e6f353fe1ec163a2ac3572514ca70e11b81d940775b96d3ceca11664155c75cbff9432efc400
7
- data.tar.gz: 0236e2b2ee94fcab2cb583acda1c55431d2a4f933e3185066d2cc47bcae87b294e325f463b879d1c27384adff15726d236e38ac09e61c89b968b48da85d94d7b
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
- install Consul executable file and init scritps (systemd or init.d)
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]}_linux_amd64.zip"
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}"
@@ -10,6 +10,7 @@ end
10
10
  # Set default node values
11
11
  node.reverse_merge!(
12
12
  consul: {
13
+ platform: "linux_amd64",
13
14
  src_dir: "/usr/local/src",
14
15
  bin_dir: "/usr/local/bin",
15
16
  data_dir: "/tmp/consul",
@@ -2,7 +2,7 @@ module Itamae
2
2
  module Plugin
3
3
  module Recipe
4
4
  module Consul
5
- VERSION = "0.1.0.beta3"
5
+ VERSION = "0.1.0"
6
6
  end
7
7
  end
8
8
  end
data/recipes/node.yml CHANGED
@@ -1,5 +1,6 @@
1
1
  consul:
2
2
  version: "0.6.4"
3
+ platform: "linux_amd64"
3
4
  src_dir: "/usr/local/src"
4
5
  bin_dir: "/usr/local/bin"
5
6
  data_dir: "/tmp/consul"
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.beta3
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-09 00:00:00.000000000 Z
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: 1.3.1
133
+ version: '0'
134
134
  requirements: []
135
135
  rubyforge_project:
136
136
  rubygems_version: 2.5.1