itamae-plugin-recipe-consul 0.1.2 → 0.1.3.beta1

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: 0a4e25dae562c05a16432fc72342702646f28f14
4
- data.tar.gz: 149b7a50dd2a66732b918b801616e119ecfe3599
3
+ metadata.gz: 4b44d7a47dc95c38c07c81d882a8f3fc82f34fb5
4
+ data.tar.gz: 78982cebc8d13d89f8d8323efdde76e2962b5db1
5
5
  SHA512:
6
- metadata.gz: 35537aead72a0135a0bf16bf41ea0b9f7c2e33c3c6e15fe9b0b8a8229d5a98777f7262eac325f78061869ab7c8115da4a1c6a0c69f89d1dbbe514d8cff608916
7
- data.tar.gz: 52005f30a26030930223be18a58a22d468bfec26e181a97a0afb04b901cc19da74fb5723e63d171172b9a0689c75639b8224a45ab661c0eb1a671efb72a3047e
6
+ metadata.gz: 98d7bf0b7c2a4f3ae9a174806dfbbd77bbd8e2463d10e7ef2eec7bd74a5b4bb7e3d91636f0330d44a2d6057456463da5255fe029fd2398395e5a25c491889bbc
7
+ data.tar.gz: d08ad421785210b9bbafb2c424de49eb3f6d751b339cd7e21dc8b83fb9ee6b2e0d1d4299e5110fb3684f31728911bd8c9996915ece70a104c27c0930b4f6a0b7
data/CHANGELOG.md CHANGED
@@ -1,24 +1,38 @@
1
1
  # Change Log
2
2
 
3
+ ## [v0.1.2](https://github.com/sue445/itamae-plugin-recipe-consul/tree/v0.1.2) (2016-05-19)
4
+ [Full Changelog](https://github.com/sue445/itamae-plugin-recipe-consul/compare/v0.1.1...v0.1.2)
5
+
6
+ **Implemented enhancements:**
7
+
8
+ - Restart consul when environment file is updated [\#12](https://github.com/sue445/itamae-plugin-recipe-consul/pull/12) ([sue445](https://github.com/sue445))
9
+
10
+ **Merged pull requests:**
11
+
12
+ - Refactor: Remove unused resource [\#11](https://github.com/sue445/itamae-plugin-recipe-consul/pull/11) ([sue445](https://github.com/sue445))
13
+
3
14
  ## [v0.1.1](https://github.com/sue445/itamae-plugin-recipe-consul/tree/v0.1.1) (2016-05-19)
4
15
  [Full Changelog](https://github.com/sue445/itamae-plugin-recipe-consul/compare/v0.1.0...v0.1.1)
5
16
 
17
+ **Implemented enhancements:**
18
+
19
+ - Remove needless systemctl daemon-reload [\#9](https://github.com/sue445/itamae-plugin-recipe-consul/pull/9) ([sue445](https://github.com/sue445))
20
+
6
21
  **Merged pull requests:**
7
22
 
8
23
  - Refactor: Use absolute path instead of relative path [\#10](https://github.com/sue445/itamae-plugin-recipe-consul/pull/10) ([sue445](https://github.com/sue445))
9
- - Remove needless systemctl daemon-reload [\#9](https://github.com/sue445/itamae-plugin-recipe-consul/pull/9) ([sue445](https://github.com/sue445))
10
24
 
11
25
  ## [v0.1.0](https://github.com/sue445/itamae-plugin-recipe-consul/tree/v0.1.0) (2016-05-18)
12
26
  [Full Changelog](https://github.com/sue445/itamae-plugin-recipe-consul/compare/v0.1.0.beta3...v0.1.0)
13
27
 
14
- **Merged pull requests:**
28
+ **Implemented enhancements:**
15
29
 
16
30
  - Add platform to node [\#8](https://github.com/sue445/itamae-plugin-recipe-consul/pull/8) ([sue445](https://github.com/sue445))
17
31
 
18
32
  ## [v0.1.0.beta3](https://github.com/sue445/itamae-plugin-recipe-consul/tree/v0.1.0.beta3) (2016-05-09)
19
33
  [Full Changelog](https://github.com/sue445/itamae-plugin-recipe-consul/compare/v0.1.0.beta2...v0.1.0.beta3)
20
34
 
21
- **Merged pull requests:**
35
+ **Implemented enhancements:**
22
36
 
23
37
  - Set mode 644 to file [\#7](https://github.com/sue445/itamae-plugin-recipe-consul/pull/7) ([sue445](https://github.com/sue445))
24
38
 
data/README.md CHANGED
@@ -71,6 +71,13 @@ consul:
71
71
  options: "-server -bootstrap-expect 1"
72
72
 
73
73
  gomaxprocs: 2
74
+
75
+ # consul service actions when after install (default: enable, start)
76
+ service_actions:
77
+ - enable
78
+ - start
79
+ # - disable
80
+ # - stop
74
81
  ```
75
82
 
76
83
  ## Development
@@ -0,0 +1,3 @@
1
+ service "consul" do
2
+ action node[:consul][:service_actions]
3
+ end
@@ -4,6 +4,4 @@ else
4
4
  set_consul_initd_script "/etc/sysconfig/consul"
5
5
  end
6
6
 
7
- service "consul" do
8
- action [:enable, :start]
9
- end
7
+ include_recipe "consul::service::action"
@@ -1,7 +1,5 @@
1
1
  if node[:platform_version].to_i >= 8
2
2
  set_consul_systemd_unit "/etc/default/consul"
3
3
 
4
- service "consul" do
5
- action [:enable, :start]
6
- end
4
+ include_recipe "consul::service::action"
7
5
  end
@@ -15,5 +15,8 @@ node.reverse_merge!(
15
15
  bin_dir: "/usr/local/bin",
16
16
  data_dir: "/tmp/consul",
17
17
  gomaxprocs: 2,
18
+ service_actions: [:enable, :start]
18
19
  },
19
20
  )
21
+
22
+ node[:consul][:service_actions] ||= []
@@ -2,7 +2,7 @@ module Itamae
2
2
  module Plugin
3
3
  module Recipe
4
4
  module Consul
5
- VERSION = "0.1.2"
5
+ VERSION = "0.1.3.beta1"
6
6
  end
7
7
  end
8
8
  end
data/recipes/node.yml CHANGED
@@ -6,3 +6,6 @@ consul:
6
6
  data_dir: "/tmp/consul"
7
7
  gomaxprocs: 2
8
8
  options: "-server -bootstrap-expect 1"
9
+ service_actions:
10
+ - enable
11
+ - start
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.2
4
+ version: 0.1.3.beta1
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-19 00:00:00.000000000 Z
11
+ date: 2016-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: itamae
@@ -104,6 +104,7 @@ files:
104
104
  - lib/itamae/plugin/recipe/consul/default.rb
105
105
  - lib/itamae/plugin/recipe/consul/install.rb
106
106
  - lib/itamae/plugin/recipe/consul/service.rb
107
+ - lib/itamae/plugin/recipe/consul/service/action.rb
107
108
  - lib/itamae/plugin/recipe/consul/service/centos.rb
108
109
  - lib/itamae/plugin/recipe/consul/service/debian.rb
109
110
  - lib/itamae/plugin/recipe/consul/service/definitions.rb
@@ -129,9 +130,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
129
130
  version: '0'
130
131
  required_rubygems_version: !ruby/object:Gem::Requirement
131
132
  requirements:
132
- - - ">="
133
+ - - ">"
133
134
  - !ruby/object:Gem::Version
134
- version: '0'
135
+ version: 1.3.1
135
136
  requirements: []
136
137
  rubyforge_project:
137
138
  rubygems_version: 2.5.1