Advertisement
Guest User

Untitled

a guest
Feb 18th, 2014
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. ### jinja/master.jinja file: ===============
  2.  
  3. {% set jinjamaster = salt['grains.filter_by']({
  4. 'CentOS': {
  5. 'file_header': '### File managed by SALT ###',
  6. 'file_block': '### SALT: do NOT edit below this line ###',
  7.  
  8. },
  9. }, grain='os', merge=salt['pillar.get']('all:lookup')) %}
  10.  
  11.  
  12.  
  13.  
  14. ### fstab state file: =========================
  15.  
  16. {% from 'jinja/master.jinja' import jinjamaster with context %}
  17.  
  18.  
  19.  
  20. etc_fstab:
  21. file:
  22. - name: /etc/fstab
  23. - append
  24. - template: jinja
  25. - text:
  26. - {{ jinjamaster.file_block }}
  27.  
  28.  
  29.  
  30. when i run the state_show.sls ... the text that is to be appended is None.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement