percheron 0.7.7 → 0.7.8

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: 79a9a87148e586cbe1c73e2b6c199db31aa9aa12
4
- data.tar.gz: c1df6b2ee03d4d646d256497e8b1643aba319871
3
+ metadata.gz: ab4029c23cb8f0a448262aeb764830a1e316cf76
4
+ data.tar.gz: 38c2f479439afb7d69117272c1fff74f5041c880
5
5
  SHA512:
6
- metadata.gz: 42fd8d18346e7717b34b58af187d419f7e15d047c74619cea26ec934d08c1d496f7a7b029a9bd2ad90af2c992379579ad35cb62bfac49ef7027d8d34aff4d5f1
7
- data.tar.gz: b3e0b3e3ecdb332cda1c646be5cd8a047721e761e855225480a77932e2e30fce2184f516eb96c214d36678b27eb6f032667dbe1e0ac02fb74d3f695c613dbcfe
6
+ metadata.gz: 67689cafe1f650f03a5bf8defe0fc9d2f207d346e93f9cdcfc4e264c0f17852b44456525a3b87ef6cc6939e30c3e6baec9d375bb2c63fe41bfa49d12cd69b393
7
+ data.tar.gz: 73d86345a6c9ac3e8759fa7e3d4824d89c7af2640ed33129efa0d0b81db97708d6dd60ffa536996c8016df68e1fe72a058298303f002b066217e7574e908a446
data/README.md CHANGED
@@ -66,14 +66,15 @@ docker:
66
66
  ssl_verify_peer: false
67
67
 
68
68
  stacks:
69
- - name: consul
69
+ - name: consul-stack
70
70
  units:
71
71
  - name: master
72
72
  version: 1.0.0
73
73
  docker_image: progrium/consul:latest
74
74
  start_args: "-server -bootstrap -ui-dir /ui"
75
75
  ports:
76
- - "8500:8500"
76
+ - 8500:8500
77
+ - 8600:53/udp
77
78
  - name: agent
78
79
  version: 1.0.0
79
80
  docker_image: progrium/consul:latest
@@ -85,7 +86,7 @@ stacks:
85
86
  3) Start it up!
86
87
 
87
88
  ```bash
88
- percheron start demo
89
+ percheron start consul-stack
89
90
  ```
90
91
 
91
92
  4) Bring up the consul UI
@@ -94,6 +95,12 @@ percheron start demo
94
95
  open http://boot2docker:8500/ui
95
96
  ```
96
97
 
98
+ 5) Perform a DNS lookup
99
+
100
+ ```bash
101
+ dig @boot2docker -p 8600 master.node.consul +short
102
+ ```
103
+
97
104
  ## Demo
98
105
 
99
106
  [![asciicast](https://asciinema.org/a/19216.png)](https://asciinema.org/a/19216)
@@ -15,7 +15,7 @@ module Percheron
15
15
  def execute!
16
16
  results = []
17
17
  if unit.exists?
18
- $logger.debug "Container '#{unit.name}' already exists"
18
+ $logger.debug "Unit '#{unit.name}' already exists"
19
19
  else
20
20
  results << create!
21
21
  end
@@ -31,11 +31,11 @@ module Percheron
31
31
 
32
32
  def inform!
33
33
  return nil unless unit.dockerfile_md5s_match?
34
- $logger.info "Container '#{unit.name}' - No Dockerfile changes or version bump"
34
+ $logger.info "Unit '#{unit.name}' - No Dockerfile changes or version bump"
35
35
  end
36
36
 
37
37
  def recreate!
38
- $logger.debug "Container '#{unit.name}' exists but will be recreated"
38
+ $logger.debug "Unit '#{unit.name}' exists but will be recreated"
39
39
  Purge.new(unit).execute!
40
40
  Create.new(unit).execute!
41
41
  end
@@ -29,7 +29,7 @@ module Percheron
29
29
  def execute
30
30
  stack.valid?
31
31
  rescue => e
32
- puts "%s\n%s\n" % [ e.inspect, e.backtrace ]
32
+ puts "%s\n\n%s\n\n" % [ e.inspect, e.backtrace.join("\n") ]
33
33
  signal_usage_error(e.message)
34
34
  end
35
35
 
@@ -24,7 +24,7 @@ module Percheron
24
24
 
25
25
  def headings
26
26
  [
27
- 'Container',
27
+ 'Unit',
28
28
  'ID',
29
29
  'Running?',
30
30
  'IP',
@@ -17,9 +17,9 @@ module Percheron
17
17
 
18
18
  def formatted_message(message)
19
19
  if unit.name
20
- "Container config for '%s' is invalid: %s" % [ unit.name, message ]
20
+ "Unit config for '%s' is invalid: %s" % [ unit.name, message ]
21
21
  else
22
- "Container config is invalid: #{message}"
22
+ "Unit config is invalid: #{message}"
23
23
  end
24
24
  end
25
25
 
@@ -1,3 +1,3 @@
1
1
  module Percheron
2
- VERSION = '0.7.7'
2
+ VERSION = '0.7.8'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: percheron
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.7
4
+ version: 0.7.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ash McKenzie