Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ===/srv/salt/groups.sls===
- {% for group, args in pillar['groups'].iteritems() %}
- {{ group }}:
- group.present:
- - name: {{ group }}
- {% if 'gid' in args %}
- - gid: {{ args['gid'] }}
- {% endif %}
- {% endfor %}
- ===/srv/pillar/groups.sls===
- groups:
- scs-admins:
- gid: 7000
- ==i run 'salt fileshare1 state.sls groups' on a Red Hat setup and i get the following
- "Rendering SLS 'base:groups' failed: Jinja variable 'dict' object has no attribute 'groups'"
- the same exact pillar and state files work on CentOS... suggestions?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement