We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Briefly, the bug is optional_groups for user are applied only on second state application.
I get a clean ubuntu server 12.04 machine. Then I install salt-minion with this cmd:
curl -L http://bootstrap.saltstack.org | sudo sh -s
Then I convert is into masterless mode:
ubuntu@ubuntu:~$ cat /etc/salt/minion | grep -Ev '^#|^$' file_client: local file_roots: base: - /home/ubuntu pillar_roots: base: - /home/ubuntu/pillar
Then I create these simple states:
cat ~ubuntu/top.sls base: '*': - user cat ~ubuntu/user.sls xek: user.present: - fullname: Xek - shell: /bin/zsh - home: /home/xek - groups: - sudo - www-data - optional_groups: - adm - cdrom - dip - plugdev - lpadmin - sambashare - wheel
Then I run salt the first time:
sudo salt-call state.highstate -l debug
and I get log #1
User gets no optional groups at all:
groups xek xek : xek sudo www-data
but they all exist except 'wheel':
id uid=1000(ubuntu) gid=1000(ubuntu) groups=1000(ubuntu),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),111(lpadmin),112(sambashare)
on the second run I get everything the way it's expected:
Python version: 2.7.3 Ubuntu version: 12.04 salt-minion version: 0.13.1
Clean ubuntu image was downloaded from: http://sourceforge.net/projects/virtualboximage/files/UbuntuServer/12.04/ubuntu-12.04-server-i386.7z
login: ubuntu, pass: reverse
The text was updated successfully, but these errors were encountered:
Thanks!
Sorry, something went wrong.
b2fcff6
Fix #4069 optional groups were not being added when new users
e4b71ac
are created
No branches or pull requests
Briefly, the bug is optional_groups for user are applied only on second state application.
I get a clean ubuntu server 12.04 machine. Then I install salt-minion with this cmd:
Then I convert is into masterless mode:
Then I create these simple states:
Then I run salt the first time:
and I get log #1
![log 1](https://camo.githubusercontent.com/93b14f446c4130f5c1c402ba65a9663e33032f9981583a951087ae1f3d42fc83/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3233383734302f3235303931332f63303234663838382d386235372d313165322d396130372d3934383235383039323636372e706e67)
User gets no optional groups at all:
but they all exist except 'wheel':
on the second run I get everything the way it's expected:
![log 2](https://camo.githubusercontent.com/6b93da7ed72af2babd05599fdc20cb37355014569719a7f6eae1018ee83ef49a/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3233383734302f3235303932322f31373465663566612d386235382d313165322d383332642d6565343765393432643566652e706e67)
Python version: 2.7.3
Ubuntu version: 12.04
salt-minion version: 0.13.1
Clean ubuntu image was downloaded from: http://sourceforge.net/projects/virtualboximage/files/UbuntuServer/12.04/ubuntu-12.04-server-i386.7z
login: ubuntu,
pass: reverse
The text was updated successfully, but these errors were encountered: