Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### jinja/master.jinja file: ===============
- {% set jinjamaster = salt['grains.filter_by']({
- 'CentOS': {
- 'file_header': '### File managed by SALT ###',
- 'file_block': '### SALT: do NOT edit below this line ###',
- },
- }, grain='os', merge=salt['pillar.get']('all:lookup')) %}
- ### fstab state file: =========================
- {% from 'jinja/master.jinja' import jinjamaster with context %}
- etc_fstab:
- file:
- - name: /etc/fstab
- - append
- - template: jinja
- - text:
- - {{ jinjamaster.file_block }}
- 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