consul-template-generator 0.3.5 → 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/.travis.yml +15 -3
- data/Gemfile.lock +44 -37
- data/README.md +45 -1
- data/bin/consul-template-generator +3 -4
- data/consul-template-generator.gemspec +8 -7
- data/lib/consul/template/generator/configuration.rb +4 -1
- data/lib/consul/template/generator/version.rb +1 -1
- data/spec/key_value_spec.rb +4 -4
- data/spec/spec_helper.rb +1 -4
- metadata +64 -65
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
MjJjODFlNzRjM2EyNzk0MjM4ODViMWFjZGM5MGNmOTg0Mzc3YTUzMg==
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: f9b13454eb8a9ecbae979c7cd9e7ab7059ead09bccab88ad80717bf2cab3dc29
|
4
|
+
data.tar.gz: d6af9f9b003e2689c31773cf97545fcc1fc6f999951adc5866ccf1f8013f754f
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
Zjg3Y2EyNzhiNDMxNjRkMzY3NzEwMGRhYzdjYjU2ZDc3MDVlNWIwMjBmMjcw
|
11
|
-
NzliYTQyMmYxYTlmNjA1NjNiNDlmZmIxYTc2ODg1ODVlMGUzMjI=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
YWVkYWEwN2ZkZDgwN2QyZTdkNzk5MzE2YjRmNjFjYWEwZjZkMTk4ZDI4ZjFh
|
14
|
-
MWNmYTBjZjkyNWVmNGMyODM5MjQyZWFiOTM4OGQ4MmMxOTYwNGJkN2FmMzQy
|
15
|
-
NWNkYzI0ZmMwMDQ3ODQ0YzgzZjQ4ZjRiY2UxMzk2ZjBhZWM0MjE=
|
6
|
+
metadata.gz: 6d304ceabef20b23b76d90b91b84892f46cfea5856a6f3f3deb5781b308f9a856a91f87eb3f80f5a400714baaaf0da582f617d1cbe4bc0cb36103725eef4c3ee
|
7
|
+
data.tar.gz: 743c1d4360e6924955a0c4d32694249506f267810aaaf4ae8f272792bcd5fcaa0dcb9884dbab2c5f1f04b8cf533d373c06cc4652bb921b5772f5b93d1e0aca5f
|
data/.travis.yml
CHANGED
@@ -1,7 +1,19 @@
|
|
1
1
|
language: ruby
|
2
|
+
dist: xenial
|
3
|
+
|
4
|
+
branches:
|
5
|
+
only:
|
6
|
+
- master
|
7
|
+
|
2
8
|
rvm:
|
3
|
-
-
|
4
|
-
- 2.
|
5
|
-
- 2.
|
9
|
+
- 2.3
|
10
|
+
- 2.4
|
11
|
+
- 2.5
|
12
|
+
- 2.6
|
13
|
+
|
14
|
+
before_install:
|
15
|
+
- gem install bundler
|
16
|
+
|
6
17
|
bundler_args: --binstubs
|
18
|
+
|
7
19
|
script: "bin/rspec --format doc"
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
consul-template-generator (0.3.
|
4
|
+
consul-template-generator (0.3.6)
|
5
5
|
diffy (~> 3.0)
|
6
6
|
diplomat (~> 0.13)
|
7
7
|
popen4 (~> 0.1)
|
@@ -9,64 +9,71 @@ PATH
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
|
-
Platform (0.4.
|
13
|
-
addressable (2.
|
14
|
-
|
15
|
-
|
12
|
+
Platform (0.4.2)
|
13
|
+
addressable (2.6.0)
|
14
|
+
public_suffix (>= 2.0.2, < 4.0)
|
15
|
+
ansi (1.5.0)
|
16
|
+
crack (0.4.3)
|
16
17
|
safe_yaml (~> 1.0.0)
|
17
|
-
diff-lcs (1.
|
18
|
-
diffy (3.0
|
19
|
-
diplomat (0.
|
18
|
+
diff-lcs (1.3)
|
19
|
+
diffy (3.3.0)
|
20
|
+
diplomat (0.19.0)
|
20
21
|
faraday (~> 0.9)
|
21
|
-
json
|
22
|
-
docile (1.1
|
23
|
-
faraday (0.
|
22
|
+
json
|
23
|
+
docile (1.3.1)
|
24
|
+
faraday (0.15.4)
|
24
25
|
multipart-post (>= 1.2, < 3)
|
26
|
+
hashdiff (0.3.9)
|
25
27
|
hirb (0.7.3)
|
26
|
-
json (
|
28
|
+
json (2.2.0)
|
27
29
|
multipart-post (2.0.0)
|
28
30
|
open4 (1.3.4)
|
29
31
|
popen4 (0.1.2)
|
30
32
|
Platform (>= 0.4.0)
|
31
33
|
open4 (>= 0.4.0)
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
rspec-
|
37
|
-
rspec-
|
38
|
-
|
39
|
-
|
40
|
-
|
34
|
+
public_suffix (3.0.3)
|
35
|
+
rack (2.0.7)
|
36
|
+
rake (12.3.2)
|
37
|
+
rspec (3.8.0)
|
38
|
+
rspec-core (~> 3.8.0)
|
39
|
+
rspec-expectations (~> 3.8.0)
|
40
|
+
rspec-mocks (~> 3.8.0)
|
41
|
+
rspec-core (3.8.0)
|
42
|
+
rspec-support (~> 3.8.0)
|
43
|
+
rspec-expectations (3.8.3)
|
41
44
|
diff-lcs (>= 1.2.0, < 2.0)
|
42
|
-
rspec-support (~> 3.
|
43
|
-
rspec-mocks (3.
|
45
|
+
rspec-support (~> 3.8.0)
|
46
|
+
rspec-mocks (3.8.0)
|
44
47
|
diff-lcs (>= 1.2.0, < 2.0)
|
45
|
-
rspec-support (~> 3.
|
46
|
-
rspec-support (3.
|
47
|
-
safe_yaml (1.0.
|
48
|
-
simplecov (0.
|
49
|
-
docile (~> 1.1
|
50
|
-
json (
|
48
|
+
rspec-support (~> 3.8.0)
|
49
|
+
rspec-support (3.8.0)
|
50
|
+
safe_yaml (1.0.5)
|
51
|
+
simplecov (0.16.1)
|
52
|
+
docile (~> 1.1)
|
53
|
+
json (>= 1.8, < 3)
|
51
54
|
simplecov-html (~> 0.10.0)
|
52
|
-
simplecov-console (0.2
|
53
|
-
|
55
|
+
simplecov-console (0.4.2)
|
56
|
+
ansi
|
54
57
|
hirb
|
55
58
|
simplecov
|
56
|
-
simplecov-html (0.10.
|
57
|
-
webmock (
|
59
|
+
simplecov-html (0.10.2)
|
60
|
+
webmock (3.5.1)
|
58
61
|
addressable (>= 2.3.6)
|
59
62
|
crack (>= 0.3.2)
|
63
|
+
hashdiff
|
60
64
|
|
61
65
|
PLATFORMS
|
62
66
|
ruby
|
63
67
|
|
64
68
|
DEPENDENCIES
|
65
|
-
bundler (~>
|
69
|
+
bundler (~> 2.0)
|
66
70
|
consul-template-generator!
|
67
|
-
rack (~>
|
68
|
-
rake (~>
|
71
|
+
rack (~> 2.0)
|
72
|
+
rake (~> 12.0)
|
69
73
|
rspec (~> 3.3)
|
70
74
|
simplecov (~> 0.10)
|
71
75
|
simplecov-console (~> 0.2)
|
72
|
-
webmock (~>
|
76
|
+
webmock (~> 3.5)
|
77
|
+
|
78
|
+
BUNDLED WITH
|
79
|
+
2.0.1
|
data/README.md
CHANGED
@@ -1,3 +1,47 @@
|
|
1
1
|
[![Build Status](https://travis-ci.org/socrata-platform/consul-template-generator.svg)](https://travis-ci.org/socrata-platform/consul-template-generator)
|
2
|
+
[![Gem Version](https://badge.fury.io/rb/consul-template-generator.svg)](https://badge.fury.io/rb/consul-template-generator)
|
2
3
|
|
3
|
-
#
|
4
|
+
# Consul Template Generator
|
5
|
+
|
6
|
+
[Consul-Template](https://github.com/hashicorp/consul-template) is an immensely valuable tool
|
7
|
+
for translating services registered with [Consul](https://github.com/hashicorp/consul) into
|
8
|
+
system configurations. One potential pitfall with it, though, is the potential for large,
|
9
|
+
distributed systems to [DDoS](https://github.com/hashicorp/consul-template/issues/205) their Consul
|
10
|
+
cluster. This work can be mitigated to some degree with carefully crafted templates, but can
|
11
|
+
also be avoided by the use of `consul-template-generator`
|
12
|
+
|
13
|
+
The function of `consul-template-generator` is to delegate template generation to a single process
|
14
|
+
in a fault-tolerant fashion. The `consul-template-generator` "master" takes a consul lock on a
|
15
|
+
specified session K/V store key to allow redundant deployments of any given configuration to be
|
16
|
+
active simultaneously. A given `consul-template-generator` configuration can include an arbitrary
|
17
|
+
number `ctmpl` files which will be evaluated using `consul-template`. When updates to a `ctmpl`
|
18
|
+
are found `consul-template-generator` will update specified keys in Consul's K/V store with the
|
19
|
+
`consul-template` rendered templates. This allows downstream instances of `consul-template` to
|
20
|
+
watch a single key in Consul K/V instead of multiple Consul registered services, thus reducing
|
21
|
+
the load on the underlying Consul cluster significantly.
|
22
|
+
|
23
|
+
|
24
|
+
## Usage
|
25
|
+
|
26
|
+
`consul-template-generator <command> [options]`
|
27
|
+
|
28
|
+
### Commands
|
29
|
+
|
30
|
+
| Command | Description |
|
31
|
+
|---------|-------------|
|
32
|
+
| once | Run once and exit. On success, the rendered template will be inserted into the KV store whether or not it has changed. |
|
33
|
+
| run | Run continually, uploading the rendered template when a change is detected. |
|
34
|
+
|
35
|
+
### Options
|
36
|
+
| required | short flag | long flag | Description |
|
37
|
+
|----------|--------------------|---------------------------------|-------------|
|
38
|
+
| No | `-c HOSTNAME` | `--consul HOSTNAME` | Hostname/port used to connect to consul [default: 127.0.0.1:8500] |
|
39
|
+
| Yes | `-t TEMPLATES` | `--templates TEMPLATES` | (required) Comma separated list of consul-template `ctmpl` file and keys to monitor, `tmple.ctmpl:tmple-key,tmple2.ctmpl:templ-key2`. If `--graphite-host` is supplied, target graphite path must also be supplied, e.g. `tmple.ctmpl:tmple-key:consul.template.<HOSTNAME>.<template name>`. |
|
40
|
+
| No | `-s SESSION_KEY` | `--session-key SESSION_KEY` | Key used to lock template generation session [default: consul-template-generator] |
|
41
|
+
| No | | `--session-ttl SESSION_TTL` | Set a TTL for consul sessions (sets an implicit ttl on locks created by consul-template-generator [default: 30s] |
|
42
|
+
| No | | `--unset-proxy` | Use if 'http_proxy' is set in your environment, but you don't want to use it... |
|
43
|
+
| No | | `--diff-changes` | Log diff'ed template prior to upload |
|
44
|
+
| No | `-l` | `--log-level LOG_LEVEL` | Log level, options are 'debug', 'info', 'error' [default: info] |
|
45
|
+
| No | | `--cycle-sleep CYCLE_SLEEP` | Sleep interval in seconds between each template rendering [default: 0.5] |
|
46
|
+
| No | | `--lock-sleep LOCK_SLEEP` | Sleep interval in seconds between each attempt to obtain a session lock [default: 1.0] |
|
47
|
+
| No | `-g GRAPHITE_HOST` | `--graphite-host GRAPHITE_HOST` | Graphite host to post template update events to (optional) |
|
@@ -51,19 +51,18 @@ EOC
|
|
51
51
|
'--templates TEMPLATES',
|
52
52
|
'Comma separated list of consul-template ctmpl file and keys to monitor, tmple.ctmpl:tmple-key,tmple2.ctmpl:templ-key2 (required)',
|
53
53
|
'If \'--graphite-host\' is supplied, target graphite path must also be supplied, e.g.',
|
54
|
-
' tmple.ctmpl:tmple-key:consul.template.HOSTNAME.<template name>,tmple2.ctmpl:tmple-key2:consul.template
|
55
|
-
'where \'HOSTNAME\' will be replaced as one might expect.') do |t|
|
54
|
+
' tmple.ctmpl:tmple-key:consul.template.HOSTNAME.<template name>,tmple2.ctmpl:tmple-key2:consul.template.<HOSTNAME>.<template name>') do |t|
|
56
55
|
options[:templates] = process_templates(t)
|
57
56
|
options[:graphite_paths] = process_graphite_paths(t)
|
58
57
|
end
|
59
58
|
|
60
59
|
options[:session_key] = 'consul-template-generator'
|
61
|
-
opts.on('-s SESSION_KEY', '--session-key SESSION_KEY', 'Key used to lock template generation session [default: consul-template-generator') do |l|
|
60
|
+
opts.on('-s SESSION_KEY', '--session-key SESSION_KEY', 'Key used to lock template generation session [default: consul-template-generator]') do |l|
|
62
61
|
options[:session_key] = l
|
63
62
|
end
|
64
63
|
|
65
64
|
options[:session_ttl] = 30
|
66
|
-
opts.on(nil, '--session-ttl SESSION_TTL', "Set a TTL for consul sessions (sets an implicit ttl on locks created by consul-template-generator [default:
|
65
|
+
opts.on(nil, '--session-ttl SESSION_TTL', "Set a TTL for consul sessions (sets an implicit ttl on locks created by consul-template-generator [default: 30s])") do |ttl|
|
67
66
|
options[:session_ttl] = ttl.to_i
|
68
67
|
end
|
69
68
|
|
@@ -18,14 +18,15 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ['lib']
|
20
20
|
|
21
|
-
spec.
|
22
|
-
spec.
|
21
|
+
spec.add_dependency 'diffy', '~> 3.0'
|
22
|
+
spec.add_dependency 'diplomat', '~> 0.18.0'
|
23
|
+
spec.add_dependency 'popen4', '~> 0.1'
|
24
|
+
|
25
|
+
spec.add_development_dependency 'bundler', '~> 2.0'
|
26
|
+
spec.add_development_dependency 'rack', '~> 2.0'
|
27
|
+
spec.add_development_dependency 'rake', '~> 12.0'
|
23
28
|
spec.add_development_dependency 'rspec', '~> 3.3'
|
24
29
|
spec.add_development_dependency 'simplecov', '~> 0.10'
|
25
30
|
spec.add_development_dependency 'simplecov-console', '~> 0.2'
|
26
|
-
spec.add_development_dependency 'webmock', '~>
|
27
|
-
spec.add_development_dependency 'rack', '~> 1.6'
|
28
|
-
spec.add_dependency 'diffy', '~> 3.0'
|
29
|
-
spec.add_dependency 'diplomat', '~> 0.13'
|
30
|
-
spec.add_dependency 'popen4', '~> 0.1'
|
31
|
+
spec.add_development_dependency 'webmock', '~> 3.5'
|
31
32
|
end
|
@@ -54,10 +54,13 @@ module Consul
|
|
54
54
|
@logger = Consul::Template::Generator::STDLogger
|
55
55
|
@graphite_host = nil
|
56
56
|
@diff_changes = false
|
57
|
+
|
58
|
+
STDOUT.sync = true
|
59
|
+
STDERR.sync = true
|
57
60
|
end
|
58
61
|
|
59
62
|
def lock_key(key)
|
60
|
-
"
|
63
|
+
"lock/#{key.sub(/^\//, '')}"
|
61
64
|
end
|
62
65
|
|
63
66
|
def session_lock_key
|
data/spec/key_value_spec.rb
CHANGED
@@ -10,7 +10,7 @@ include Consul::Template::Generator
|
|
10
10
|
describe 'Consul::Template::Generator::CTRunner' '#acquire_lock' do
|
11
11
|
before do
|
12
12
|
Consul::Template::Generator.configure do |config|
|
13
|
-
config.templates = { 'test-template.ctmpl' => '
|
13
|
+
config.templates = { 'test-template.ctmpl' => 'test-template' }
|
14
14
|
config.consul_host = '127.0.0.1:8500'
|
15
15
|
config.consul_template_binary = 'consul-template'
|
16
16
|
config.log_level = :off
|
@@ -40,7 +40,7 @@ end
|
|
40
40
|
describe 'Consul::Template::Generator::CTRunner' '#acquire_session_lock' do
|
41
41
|
before do
|
42
42
|
Consul::Template::Generator.configure do |config|
|
43
|
-
config.templates = { 'test-template.ctmpl' => '
|
43
|
+
config.templates = { 'test-template.ctmpl' => 'test-template' }
|
44
44
|
config.session_key = '/session/test-template'
|
45
45
|
config.consul_host = '127.0.0.1:8500'
|
46
46
|
config.consul_template_binary = 'consul-template'
|
@@ -71,7 +71,7 @@ describe 'Consul::Template::Generator::CTRunner' '#upload_template' do
|
|
71
71
|
context 'uploads template' do
|
72
72
|
before do
|
73
73
|
Consul::Template::Generator.configure do |config|
|
74
|
-
config.templates = { 'test-template.ctmpl' => '
|
74
|
+
config.templates = { 'test-template.ctmpl' => 'test-template' }
|
75
75
|
config.consul_host = '127.0.0.1:8500'
|
76
76
|
config.consul_template_binary = 'consul-template'
|
77
77
|
config.log_level = :off
|
@@ -90,7 +90,7 @@ describe 'Consul::Template::Generator::CTRunner' '#upload_template' do
|
|
90
90
|
context 'handles template upload failure' do
|
91
91
|
before do
|
92
92
|
Consul::Template::Generator.configure do |config|
|
93
|
-
config.templates = { 'test-template.ctmpl' => '
|
93
|
+
config.templates = { 'test-template.ctmpl' => 'test-template-failure' }
|
94
94
|
config.consul_host = '127.0.0.1:8500'
|
95
95
|
config.consul_template_binary = 'consul-template'
|
96
96
|
config.log_level = :off
|
data/spec/spec_helper.rb
CHANGED
@@ -97,10 +97,7 @@ RSpec.configure do |config|
|
|
97
97
|
|
98
98
|
end
|
99
99
|
|
100
|
-
SimpleCov.formatter = SimpleCov::Formatter::
|
101
|
-
SimpleCov::Formatter::HTMLFormatter,
|
102
|
-
SimpleCov::Formatter::Console
|
103
|
-
]
|
100
|
+
SimpleCov.formatter = SimpleCov::Formatter::Console
|
104
101
|
SimpleCov.minimum_coverage(80)
|
105
102
|
SimpleCov.start
|
106
103
|
|
metadata
CHANGED
@@ -1,155 +1,155 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: consul-template-generator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Oldfield
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: diffy
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
20
|
-
type: :
|
19
|
+
version: '3.0'
|
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: '
|
26
|
+
version: '3.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: diplomat
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
34
|
-
type: :
|
33
|
+
version: 0.18.0
|
34
|
+
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 0.18.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: popen4
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
48
|
-
type: :
|
47
|
+
version: '0.1'
|
48
|
+
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - ~>
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '0.1'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: bundler
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - ~>
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '0
|
61
|
+
version: '2.0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - ~>
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '0
|
68
|
+
version: '2.0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: rack
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - ~>
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '0
|
75
|
+
version: '2.0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - ~>
|
80
|
+
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '0
|
82
|
+
version: '2.0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: rake
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - ~>
|
87
|
+
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
89
|
+
version: '12.0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - ~>
|
94
|
+
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
96
|
+
version: '12.0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
98
|
+
name: rspec
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - ~>
|
101
|
+
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
103
|
+
version: '3.3'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- - ~>
|
108
|
+
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
110
|
+
version: '3.3'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
112
|
+
name: simplecov
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- - ~>
|
115
|
+
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: '
|
118
|
-
type: :
|
117
|
+
version: '0.10'
|
118
|
+
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- - ~>
|
122
|
+
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: '
|
124
|
+
version: '0.10'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
126
|
+
name: simplecov-console
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- - ~>
|
129
|
+
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: '0.
|
132
|
-
type: :
|
131
|
+
version: '0.2'
|
132
|
+
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- - ~>
|
136
|
+
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: '0.
|
138
|
+
version: '0.2'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
|
-
name:
|
140
|
+
name: webmock
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
|
-
- - ~>
|
143
|
+
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: '
|
146
|
-
type: :
|
145
|
+
version: '3.5'
|
146
|
+
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
|
-
- - ~>
|
150
|
+
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version: '
|
152
|
+
version: '3.5'
|
153
153
|
description: When using complex consul-template templates or distributing them across
|
154
154
|
many hosts, you run the risk of DoSing your consul cluster. Using consul-template-generator
|
155
155
|
you can instead delegate the watching/rendering of templates to a single host and
|
@@ -162,9 +162,9 @@ executables:
|
|
162
162
|
extensions: []
|
163
163
|
extra_rdoc_files: []
|
164
164
|
files:
|
165
|
-
- .gitignore
|
166
|
-
- .rspec
|
167
|
-
- .travis.yml
|
165
|
+
- ".gitignore"
|
166
|
+
- ".rspec"
|
167
|
+
- ".travis.yml"
|
168
168
|
- Gemfile
|
169
169
|
- Gemfile.lock
|
170
170
|
- README.md
|
@@ -195,17 +195,16 @@ require_paths:
|
|
195
195
|
- lib
|
196
196
|
required_ruby_version: !ruby/object:Gem::Requirement
|
197
197
|
requirements:
|
198
|
-
- -
|
198
|
+
- - ">="
|
199
199
|
- !ruby/object:Gem::Version
|
200
200
|
version: '0'
|
201
201
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
202
202
|
requirements:
|
203
|
-
- -
|
203
|
+
- - ">="
|
204
204
|
- !ruby/object:Gem::Version
|
205
205
|
version: '0'
|
206
206
|
requirements: []
|
207
|
-
|
208
|
-
rubygems_version: 2.4.6
|
207
|
+
rubygems_version: 3.0.3
|
209
208
|
signing_key:
|
210
209
|
specification_version: 4
|
211
210
|
summary: Wrapper around consul template which uploads renterd templates to consul's
|