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 +4 -4
- data/README.md +10 -3
- data/lib/percheron/actions/create.rb +1 -1
- data/lib/percheron/actions/recreate.rb +2 -2
- data/lib/percheron/commands/abstract.rb +1 -1
- data/lib/percheron/formatters/stack/table.rb +1 -1
- data/lib/percheron/validators/unit.rb +2 -2
- data/lib/percheron/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab4029c23cb8f0a448262aeb764830a1e316cf76
|
4
|
+
data.tar.gz: 38c2f479439afb7d69117272c1fff74f5041c880
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
-
|
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
|
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)
|
@@ -31,11 +31,11 @@ module Percheron
|
|
31
31
|
|
32
32
|
def inform!
|
33
33
|
return nil unless unit.dockerfile_md5s_match?
|
34
|
-
$logger.info "
|
34
|
+
$logger.info "Unit '#{unit.name}' - No Dockerfile changes or version bump"
|
35
35
|
end
|
36
36
|
|
37
37
|
def recreate!
|
38
|
-
$logger.debug "
|
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
|
@@ -17,9 +17,9 @@ module Percheron
|
|
17
17
|
|
18
18
|
def formatted_message(message)
|
19
19
|
if unit.name
|
20
|
-
"
|
20
|
+
"Unit config for '%s' is invalid: %s" % [ unit.name, message ]
|
21
21
|
else
|
22
|
-
"
|
22
|
+
"Unit config is invalid: #{message}"
|
23
23
|
end
|
24
24
|
end
|
25
25
|
|
data/lib/percheron/version.rb
CHANGED