markround.com

DevOps, Sound Engineering and other things of interest...

Tiller v0.0.7 Now Supports Environment Variables

| Comments

Just a quick update : Tiller has just been updated to v0.0.7. I’ve just added a new EnvironmentDataSource which is super-simple, but very convenient. It makes all your environment variables accessible to templates (as global values) by converting them to lower-case, and prefixing them with env_.

To use it, just add it to your datasources in /etc/tiller/common.yaml :

/etc/tiller/common.yaml
1
2
3
data_sources:
  - file
  - environment

And then you can do things like this in your templates :

1
2
Hello, world!
My auto-generated hostname is <%= env_hostname %>

Check it out at GitHub or install the Ruby gem.

Comments