Software to automate the management and configuration of any infrastructure or application at scale. Get access to the Salt software package repository here:
local:
----------
ID: BibTool
Function: pkg.installed
Result: True
Comment: 2 targeted packages were installed/updated.
Started: 14:27:15.498966
Duration: 11629.944 ms
Changes:
----------
GeoIP-GeoLite-data:
----------
new:
2018.06-5.el8
old:
RdRand:
----------
new:
2.1.2-2.el8
old:
Summary for local
------------
Succeeded: 3 (changed=1)
Failed: 0
------------
Total states run: 3
Total run time: 12.011 s
But BibTool is not installed. If I reorder so that RdRand appears first then RdRand will not be installed but BibTool will be installed. I've tried numerous combinations of package names (these EPEL packages were chosen somewhat at random) to rule out problems with specific packages and the result is always the same. Using the longer form for the state definitions also makes no difference.
I should also note that I first remember encountering this behavior after upgrading from 3005.x to 3006.x. I cannot say for sure whether it was present in versions prior to 3006. The issue remains in 3007.1
Description In sls files with multiple pks.installed states the first one is always dropped (not installed)
Setup salt master and minion are both v3007.1 running on RedHat Enterprise 8 (x86_64) Using salt packages from https://repo.saltproject.io/salt/py3/redhat/8/x86_64/3007
Steps to Reproduce the behavior Given the following SLS file:
B and C will be installed but A will not.
And given this sls:
A and B will install but C will not.
For example, given the following mytest.sls:
I see this output from
state.apply mytest
But BibTool is not installed. If I reorder so that RdRand appears first then RdRand will not be installed but BibTool will be installed. I've tried numerous combinations of package names (these EPEL packages were chosen somewhat at random) to rule out problems with specific packages and the result is always the same. Using the longer form for the state definitions also makes no difference.
i.e. This sls will produce the same result:
Expected behavior I expect that an SLS with multiple pkg.installed states will result in all named packages getting installed.
Versions Report
salt --versions-report
Thank you very much for your time and attention.