Consul Template 0.10.0

239 views
Skip to first unread message

Seth Vargo

unread,
Jun 9, 2015, 1:33:10 PM6/9/15
to consu...@googlegroups.com
Hi Consulers,

I am excited to announce the release of Consul Template v0.10.0:

FEATURES

  * Add `plugin` and plugin ecosystem
  * Add `parseBool` function for parsing strings into booleans (GH-312)
  * Add `parseFloat` function for parsing strings into float64 (GH-312)
  * Add `parseInt` function for parsing strings into int64 (GH-312)
  * Add `parseUint` function for parsing strings into uint64 (GH-312)
  * Add `explode` function for exploding the result of `tree` or `ls` into a
    deeply nested  hash (GH-311)
  * Add `toJSON` and `toJSONPretty` function for exporting the result of `tree`
    or `ls`  into a JSON hash (GH-311)
  * Add `toYAML` function for exporting the result of `tree` or `ls` into a
    YAML document (GH-311)
  * Add `node` function for querying nodes (GH-306, GH-309)
  * Add `split` function for splitting a string on a separator (GH-285)
  * Add `join` function for joining a string slice on a given key (GH-285)
  * Add `pid_file` configuration and command line option for specifying the
    location of a pid file on disk (GH-281, GH-286)

IMPROVEMENTS:

  * Allow setting log_level via the configuration file (CLI still take
    precedence if specified)
  * Improve error reporting when loading multiple configs by including the path
    on the configuration file that had an error (GH-275)
  * Add a timeout around command execution to prevent hanging (GH-283)
  * Read Vault/Consul environment variables for the config (GH-307, GH-308)

BUG FIXES:

  * Properly merge "default" config values with user-supplied values (GH-271)


As always, please test in an isolated environment before upgrading.

Best,
Seth
@sethvargo

DanyC

unread,
Aug 12, 2015, 7:52:15 AM8/12/15
to Consul
Hi Seth,

Are you also planning to create/ provide an rpm or only tar ball ? if the latter, are you aware of any projects which builds the consul-template rpm?

cheers,
Dani

Seth Vargo

unread,
Aug 12, 2015, 11:06:08 AM8/12/15
to consu...@googlegroups.com
Hi Dani,

Consul Template is a single static binary. I think providing an RPM or Deb is overkill for such a tiny task :).

I don't think anyone installs/builds it as a package, but I can't be sure.

Best,
Seth

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/consul/issues
IRC: #consul on Freenode
---
You received this message because you are subscribed to the Google Groups "Consul" group.
To unsubscribe from this group and stop receiving emails from it, send an email to consul-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/consul-tool/11caced8-2993-4492-a847-6275e4919f5a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Darron Froese

unread,
Aug 12, 2015, 1:07:34 PM8/12/15
to consu...@googlegroups.com
I've built debs for it - but not rpms:


I wanted to have better control over how and where it installed that didn't involve using Chef to unzip and place. The unzip library we were using with Chef at the time was a pain and didn't quite work correctly.

I'd be happy to accept patches that built an RPM and host it at package cloud if somebody was interested.



David Birdsong

unread,
Aug 13, 2015, 2:39:35 AM8/13/15
to Consul


On Wednesday, August 12, 2015 at 8:06:08 AM UTC-7, Seth Vargo wrote:
Hi Dani,

Consul Template is a single static binary. I think providing an RPM or Deb is overkill for such a tiny task :).

I don't think anyone installs/builds it as a package, but I can't be sure.

I use FPM to build .debs. It can build rpms too.

Dani, try it out, it's really easy.

Here's the command line for deb:

fpm -v 0.6.0-1  --provides consul-template --description="consul-template" --url https://github.com/hashicorp/consul-template -n consul-template -t deb -s dir consul-template_0.6.0_linux_amd64/consul-template=/opt/bin/

Brian Lalor

unread,
Aug 13, 2015, 5:25:27 AM8/13/15
to consu...@googlegroups.com
Seth, packages are really useful.  Not so much as an installation method, but also as a distribution mechanism via Yum or Apt.


For more options, visit https://groups.google.com/d/optout.

— 
Brian Lalor

Michael Fischer

unread,
Aug 13, 2015, 11:42:57 AM8/13/15
to consu...@googlegroups.com
I agree: it's not that updating a single binary is particularly difficult, but good package management does a lot more than just manage files.  It gives you the ability to perform updates cleanly via well-written phase scripts; integrate into startup management systems (SysV init, systemd, etc.); and uninstall easily, even without leaving a trace behind. 

Seth Vargo

unread,
Aug 13, 2015, 12:46:18 PM8/13/15
to consu...@googlegroups.com
I'm not discouting any of those points, but OS packages is not something we plan at this time for Consul Template. Maybe in the future :).

Best,
Seth

Reply all
Reply to author
Forward
0 new messages