Skip to content

Instantly share code, notes, and snippets.

@nafg
Created September 11, 2015 02:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nafg/22f14e3329127c2f12fe to your computer and use it in GitHub Desktop.
Save nafg/22f14e3329127c2f12fe to your computer and use it in GitHub Desktop.
Salt error
:03:49]----------
[21:03:49] ID: app.conf
[21:03:49] Function: file.managed
[21:03:49] Name: /home/jj-asm-play/app.conf
[21:03:49] Result: False
[21:03:49] Comment: Unable to manage file: Jinja variable 'dict object' has no attribute 'tenantresponse'
[21:03:49] Started: 17:03:47.850293
[21:03:49] Duration: 19.713 ms
[21:03:49] Changes:
include "application"
jjasm {
db {
url: "jdbc:mysql://localhost/{{ pillar.database.db }}?zeroDateTimeBehavior=convertToNull"
user: "{{ pillar.database.user }}"
password: "{{ pillar.database.pass }}"
}
baseurl: "http://localhost:9000"
script: "/var/www/app/getpdf.js"
imageroot: "{{ pillar.syncthingpath }}"
imagePath.tenantResponse: "{{ pillar.tenantresponse.imagepath}}"
}
productionMode: "no"
syncthingpath: /var/syncthing/
tenantresponse.imagepath: FED
base:
'*':
- main
- emailer
- play
'vagrant.vb':
- dev
'production':
- prod
'dev':
- dev
'qa':
- dev
# ...
app.conf:
file.managed:
- name: /home/jj-asm-play/app.conf
- source: salt://provision/files/app.conf
- template: jinja
- user: {{ pillar.playservice.username }}
- group: {{ pillar.playservice.username }}
# ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment