Re: Deploy cf: Error filling in template `config.json.erb' for `consul_z1/0'


James Leavers
 

Hi,

As the error message implies, there was something missing - I thought I had double-checked everything before posting, but as usual, this was not the case :-)

The encrypt_keys property had to be added - it is blank by default:

properties:
consul:
encrypt_keys: []

In case anyone else comes across this thread, the following also need to be added:

** Environment config

Ensure that you have an environment name in your cf-stub.yml, e.g.

meta:
environment: my-cf-env

Otherwise you will end up with this:

Failed: Error filling in template metron_agent.json.erb'

https://github.com/cloudfoundry/cf-release/issues/690

** HAProxy config

By default it will be generated like this:

properties:
ha_proxy: null

Which will result in this:

Error filling in template `haproxy.config.erb' for `ha_proxy_z1/0'

You can add a certificate as follows:

ha_proxy:
ssl_pem: |
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
-----BEGIN PRIVATE KEY-----
-----END PRIVATE KEY-----

Regards
James

Join cf-dev@lists.cloudfoundry.org to automatically receive all group messages.