why does my use of the saltstack apache-formula fail to set the 'id' variable ? my code is as fallows ?
apache:
sites:
changed.com:
template_file: salt://salt/formulas/salt/apache-formula/apache/vhosts/standard.tmpl
template_engine: jinja
interface: '*'
port: '80'
ServerName: {{ id }}
ServerAdmin: webmaster@{{ id }}
LogLevel: Debug
ErrorLog: {{ logdir }}/{{ id }}-error.log
WSGIScriptAlias: / /var/www/project2/django.wsgi
the error message is as fallows:
Rendering SLS "base:netchosis" failed: Jinja variable 'id' is undefined; line 15
port: '80'
ServerName: {{ id }}
ServerAdmin: webmaster@{{ id }}
LogLevel: Debug
ErrorLog: {{ logdir }}/{{ id }}-error.log <======================
WSGIScriptAlias: / /var/www/project2/django.wsgi
I was expecting "changed.com" as the ID thanks.