yum packages don't install associated users
I'm running salt 0.17.1 on Oracle Enterprise Linux 6.4.
When installing a package via salt, it seems the users associated with that package aren't installed. However, when I install the package with yum they are. Reinstalling the package also re-installs the user.
Here's my sls file:
httpd:
pkg:
- installed
service:
- running
- enable: True
- require:
- pkg: httpd
In this case, the httpd rpm (and its dependencies) are installed, but the apache user and apache group are not. I can work around this by installing the user and group manually, but I don't understand why it's not pulled in with the package. Any suggestions for how to debug?
Are you running selinux? Sometimes selinux causes that On Nov 14, 2013 9:07 PM, "John Eaglesham" [email protected] wrote:
I'm running salt 0.17.1 on Oracle Enterprise Linux 6.4.
When installing a package via salt, it seems the users associated with that package aren't installed. However, when I install the package with yum they are. Reinstalling the package also re-installs the user.
Here's my sls file:
httpd: pkg:
- installed service:
- running
- enable: True
- require:
- pkg: httpd
In this case, the http rpm (and its dependencies) are installed, but the apache user is not. I can work around this by installing the user and group manually, but I don't understand why it's not pulled in with the package. Any suggestions for how to debug?
— Reply to this email directly or view it on GitHubhttps://github.com/saltstack/salt/issues/8545 .
An alternative to blanket disabling SELinux is to toggle permissive mode during the package install and toggle back afterward. This idiom was recently added to the mysql-formula.
Yes, that was very much the cause. Sorry, I should have been able to figure that out myself. Thanks for the help.
Might be worth a note in the documents since it seemed rather mysterious that I didn't encounter the issue running yum by hand, only through salt, but maybe this behavior is unsurprising to someone who knows selinux better than myself.