Skip to content
New issue

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

Chocolatey installation dosen't work #1701

Open
hemantaltair opened this issue Jun 14, 2020 · 1 comment
Open

Chocolatey installation dosen't work #1701

hemantaltair opened this issue Jun 14, 2020 · 1 comment

Comments

@hemantaltair
Copy link

      ID: install chocolatey using salt package manager on windows
Function: pkg.installed
  Result: True
 Comment: The following packages were installed/updated: chocolatey
 Started: 15:17:44.025000
Duration: 1247.0 ms
 Changes:   
          ----------
          chocolatey:
              ----------
              new:
                  /f
              old:

While running the state it shows it runs successfully but choco is not recognized when run from Powershell.

@TheBigBear
Copy link
Contributor

@hemantaltair you sure you are using the salt-winrepo-ng ? What you describe seems to be a problem with you using the salt execution module for salt. that is something different from this repo here. Note the chocolatey.sls winrepo-ng pkg. installer file mentions the difference.

Function: pkg.installed is a salt execution module state and NOT a winrepo-ng and chocolatey.sls related issue.

see https://github.com/saltstack/salt-winrepo-ng/blob/master/chocolatey/init.sls

this software also has it's own salt execution module, which you might prefer to use, see

http://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.chocolatey.html

for usage examples see

saltstack/salt#15709 (comment)

Would you please close this issue if indeed your usage issue is with the above mentioned chocolatey salt execution module. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants