I have the following:
newrelic-debconf:
debconf.set:
- name: newrelic-php5
- data:
'newrelic-php5/application-name': { 'type': 'string', 'value': '{{ salt['pillar.get']('newrelic:applicationName', '') }}' }
'newrelic-php5/license-key': { 'type': 'string', 'value': '{{ salt['pillar.get']('newrelic:licence', '') }}' }
it's pretty straightforward, using salt masterless provisioner with packer. However, this state fails with:
Rendering SLS 'base:newrelic' failed: Jinja syntax error: expected token 'end of print statement'%!(PACKER_COMMA) got 'string'; line 45
and then
'newrelic-php5/application-name': { 'type': 'string'%!(PACKER_COMMA) 'value': '{{ salt['pillar.get']('newrelic:applicationName'%!(PACKER_COMMA) '')' }} } <======================
I'm not sure what the issue is: either it expects the first { to be something else OR the '{{ somehow escapes one curly brace. I do need the value to be between ' ' so what can I do?
Thanks!