Closed felrivero closed 7 years ago
@felrivero Thanks for the report. Looking at the pillar documentation that you linked to, it looks like the pillar values that you're missing are referenced in the section just above the one you mentioned, "PARAMETERIZING STATES WITH PILLAR".
@felrivero Apologies, misread the issue report. I believe the piece that you're missing, which is missing from the documentation, is that you need to include the edit.vim
pillar values in the /srv/pillar/top.sls:
file, similar to how the data
, user
and pkg
pillar files were included.
Thanks edit.vim in top.sls works, it was a little unobvious for me, I will correct myself.
@felrivero I have added this information to the pillar tutorial in PR #42516. Thanks for letting us know!
Closed via #42516
Description of Issue/Question
Hello everyone, I'm studying salt, one of the steps is pillars ( https://docs.saltstack.com/en/latest/topics/tutorials/pillar.html#pillar-walk-through ) After completing the steps from the section "PILLAR MAKES SIMPLE STATES GROW EASILY" salt '*' state.apply edit.vim returns: Rendering SLS 'base:edit.vim' failed: Jinja variable 'salt.pillar object' has no attribute 'vimrc'
The steps described above worked fine (above section "PILLAR MAKES SIMPLE STATES GROW EASILY")
Setup
Master config default (path default /srv/salt and /srv/pillar)
Steps to Reproduce Issue
The contents of files according to the section "PILLAR MAKES SIMPLE STATES GROW EASILY" ( https://docs.saltstack.com/en/latest/topics/tutorials/pillar.html#pillar-walk-through ) /srv/salt/edit/vim.sls
/srv/pillar/edit/vim.sls
Versions Report
(Provided by running
salt --versions-report
. Please also mention any differences in master/minion versions.)