Open Aurely9n opened 7 months ago
Hello there! I've found a temporal solution for this problem. In the installed.jinja
file, after looping through all the different versions to create the pkgs
and specials
arrays, you can use the unique
Jinja filter to remove duplicates.
line 39, add this piece of code.
{% set pkgs = pkgs | unique %}
{% set specials = specials | unique %}
After applying the fix, no more duplicate packages errors appear while calling php.modules
, php.ini
or php.fpm
.
Your setup
Formula commit hash / release tag
I'm using php-formula 9c69a4e. the last one on master branch
Versions reports (master & minion)
Master :
Minion server:
Pillar / config used
Bug details
Describe the bug
On launch salt {minion} state.sls php.modules (php.apcu) and/or salt {minion} php.fpm, they both failed by trying to install duplicate package.
Steps to reproduce the bug
salt {minion} state.sls php.modules produce only this error :
salt {minion} state.sls php.fpm produce this error :
Expected behaviour
This 2 errors didn't appear when the same pillar is launched on older sminions server (salt-minion 3002.9+ds-1). There is not any duplicates packages in queue.
Attempts to fix the bug
In installed.jinja, i've write line 23:
and line 36:
And it seems to correct salt state.sls php.fpm error.
But i didn't yet identified the problem with php.apcu or php.modules state.
Additional context
Thanks