marathon-template 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/marathon-template/deploy.rb +1 -1
- data/lib/marathon-template/options.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: 1e29c955ccac0d990fe433cc84608b6f31523a36
|
4
|
+
data.tar.gz: f577be40ab909f87099ae0f9dbfddd81ec557bff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf3c95ba818005ead994c87a6868b372cecb3d89561e965e472e7903cb26ca464feb6f2145a803333f57fbc817601b2a042888c66fbd25af9a365c3620ecf273
|
7
|
+
data.tar.gz: ceb3beca0075f8c45da804ce0a434871f0d2b5fed6cf8ef21f6967e51d3284b19b5d7182c847dfe5adf31857bd6be4a6692153a83418eea3f87578559a4f134f
|
@@ -108,7 +108,7 @@ module Marathon_template
|
|
108
108
|
servers = get_servers(app_name)
|
109
109
|
LOG.info "#{app_name}: #{servers}"
|
110
110
|
servers.each do |host, port|
|
111
|
-
f.write "\tserver #{app_name} #{host.split('_').first}:#{port.first} #{options}\n"
|
111
|
+
f.write "\tserver #{app_name}-#{host.split('_').last} #{host.split('_').first}:#{port.first} #{options}\n"
|
112
112
|
end
|
113
113
|
elsif values.kind_of?(Array)
|
114
114
|
values.each do |value|
|
@@ -26,7 +26,7 @@ module Marathon_template
|
|
26
26
|
@config[:haproxy_frontends] = config_file['haproxy']['frontends'] || nil
|
27
27
|
@config[:haproxy_backends] = config_file['haproxy']['backends'] || nil
|
28
28
|
@config[:haproxy_path] = config_file['haproxy_path'] || '/etc/haproxy'
|
29
|
-
@config[:cron_splay] = config_file['cron_splay_time'] || '* * * * *
|
29
|
+
@config[:cron_splay] = config_file['cron_splay_time'] || '* * * * * root /usr/local/bin/marathon-template > /var/log/marathon-template-lastrun.log 2>&1'
|
30
30
|
@config.each do |k,v|
|
31
31
|
LOG.info("#{k}: #{v}")
|
32
32
|
end
|