Closed AmitChotaliya closed 4 years ago
I was able to solve it by adding the following in the state file.
include:
- php.curl
- php.xml
Is this the right way or should the above pillar setup should work?
@AmitChotaliya I'm not using the php:modules
but the different states (as you mention you solved it). However, taking a quick look at the code, it should work using the former method.
I think that the issue is a missing variable setting in the modules.sls iterator for the modules.
I submitted a PR (#208 ), can you check if it fixes the issue for you? I don't have a 2018.3.3
setup around, will try to prepare one and try to reproduce the issue. But in the meantime, if you can try that change, I will appreciate it.
@AmitChotaliya You didn't mention what you are using in your top.sls
. Also the full versions-report
would have been helpful. In any case, I've tested with the following in Kitchen and it is working as expected:
state_top:
base:
'*':
- php
- php.modules
pillars:
php.sls:
php:
version: "7.3"
modules:
- xml
- curl
So you'd use the state_top
in your top.sls
and the pillar (as you've already given above). These are both installed fine, as shown here:
Can you please confirm that at your end so that we can close this issue?
@javierbertoli I don't believe #208 will be required. You can look further up in that link to see some extra debug output I've included. Everything is working fine:
I'm outputting each variable in modules.sls
, as shown here:
@myii
You are right, it works fine the way you suggested. I did not put the php.modules in the top file. Should the documentation be updated with this information? It is not clear from the documentation.
@AmitChotaliya This formula probably does too many things, so the documentation is difficult to untangle. Do you have any suggestions about how it could be improved? It's always good to get a fresh point of view.
@javierbertoli I don't believe #208 will be required.
You're right. On a second read, the variable state
is being set in the loop iterator. My bad.
My Setup
Formula commit hash / release tag
64928717709d8235936e6073dbe7fe635f082919
Versions reports (master & minion)
Master Salt Version: Salt: 2018.3.3 Minion Salt Version: Salt: 2018.3.3
Pillar / config used
Modules specified are not installed.
Describe the bug
Module list specified in the pillar are not getting installed. I manually installed them and it works fine but If I remove them then the salt highstate is not installing the modules.
Steps to reproduce the bug
Expected behaviour
Attempts to fix the bug
Additional context
I removed all the php modules from the minion, to check if it works with fresh install. It does not work either. Here's the high state output.