Advertisement
Guest User

Untitled

a guest
Mar 24th, 2015
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. ===/srv/salt/groups.sls===
  2.  
  3. {% for group, args in pillar['groups'].iteritems() %}
  4. {{ group }}:
  5. group.present:
  6. - name: {{ group }}
  7. {% if 'gid' in args %}
  8. - gid: {{ args['gid'] }}
  9. {% endif %}
  10. {% endfor %}
  11.  
  12.  
  13. ===/srv/pillar/groups.sls===
  14.  
  15. groups:
  16. scs-admins:
  17. gid: 7000
  18.  
  19.  
  20. ==i run 'salt fileshare1 state.sls groups' on a Red Hat setup and i get the following
  21.  
  22. "Rendering SLS 'base:groups' failed: Jinja variable 'dict' object has no attribute 'groups'"
  23.  
  24. the same exact pillar and state files work on CentOS... suggestions?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement