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

[FEATURE REQUEST] new salt state for scoop (salt.states.scoop) #60939

Open
achimmihca opened this issue Sep 23, 2021 · 0 comments
Open

[FEATURE REQUEST] new salt state for scoop (salt.states.scoop) #60939

achimmihca opened this issue Sep 23, 2021 · 0 comments
Labels
Feature new functionality including changes to functionality and code refactors, etc.
Milestone

Comments

@achimmihca
Copy link

I noticed that there is a chocolatey module, which works well.

However, I think a module for scoop would be useful for some users.
In contrast to chocolatey, scoop installs software inside the users HOME directory (e.g. C:\Users\myuser\scoop\apps).

This way, software can be installed per-user, without admin privileges, and without adding values to the system wide PATH.

Chocolatey uses a NuGet repository format, whereas scoop uses a simple JSON format and git repositories.
Thus, I can imagine that adding a custom repo to scoop is easier and there might be more niche apps available for scoop (but I did not check this)

Describe the solution you'd like
A new module salt.states.scoop, which can

  • install scoop by running in powershell
    • Set-ExecutionPolicy RemoteSigned -scope CurrentUser
    • Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')
  • add buckets
    • scoop bucket add extras
  • install, upgrade, uninstall apps
    • scoop install git
    • scoop upgrade git
    • scoop uninstall git

Describe alternatives you've considered
As a workaround, one can run scoop commands via cmd.run.
However, this does not provide information to the salt system, e.g. which minions changed during execution.

@achimmihca achimmihca added Feature new functionality including changes to functionality and code refactors, etc. needs-triage labels Sep 23, 2021
@achimmihca achimmihca changed the title [FEATURE REQUEST] [FEATURE REQUEST] scoop salt state (salt.states.scoop) Sep 23, 2021
@achimmihca achimmihca changed the title [FEATURE REQUEST] scoop salt state (salt.states.scoop) [FEATURE REQUEST] new salt state for scoop (salt.states.scoop) Sep 23, 2021
@frogunder frogunder added this to the Approved milestone Oct 1, 2021
@frogunder frogunder removed their assignment Oct 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature new functionality including changes to functionality and code refactors, etc.
Projects
None yet
Development

No branches or pull requests

2 participants