marathon-template 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b21896fde507b47f8f44d96dd5b1441df94a8f51
4
- data.tar.gz: 848374a49709d44dc9ec88f541b2d3ae79b7a415
3
+ metadata.gz: 1e29c955ccac0d990fe433cc84608b6f31523a36
4
+ data.tar.gz: f577be40ab909f87099ae0f9dbfddd81ec557bff
5
5
  SHA512:
6
- metadata.gz: 22350c213b1f8b52c74eff1f8d49506ff7cce88b1198f5247a4d08e9e6fcce5d3b1019649341621b2edad2139c65cc92608d77bac524525a943c7c507c261ca0
7
- data.tar.gz: 13f6a7dd95e52f13cb5e5a4111f7e85cb1e4706801caea275105d945095bbc7863ac46981cf10b08ae83e3041b64e7ad4acfb97c3f2dce1da52ff5f0f2320bce
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'] || '* * * * * marathon_template'
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: marathon-template
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Malnick