saltstack/salt — Issue #872: group issue
Author: dhoffutt
Created: 2012-03-09 19:18:07+00:00
State: open

Created a group state entry, but it causes issues. I double-checked http://readthedocs.org/docs/salt/en/latest/ref/states/all/salt.states.group.html?highlight=group, and am indeed creating it correctly.

The packages.sls file pasted below does not work - even though it should. I moved the group section to a new sls file of its own named group.sls and adjusted top.sls, listing packages.sls and next group.sls. Run salt, the packages get loaded (every single package listed), but the group gets ignored. Then i comment out the packages sls out of top.sls and rerun salt, the group gets added.

Restoring the minion snapshot back to post minion install && pre first salt run

Adding the group sls very first in top.sls, to see if that corrects. It does not. The group just gets ignored while all the other sls files run through successfully. So adding a user can appear in any order and that works - but not adding a group, unless it is the only sls file to appear in top.sls (nothing else listed).

addGroup.sls:

pam_ldap:
pkg:
- installed
- order: 1
openldap-clients:
pkg:
- installed
- order: 2
linux-dev:
group:
- present
- gid: 509
- order 3