-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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: Support for homebrew cask #24653
Comments
@fgimian Thank you for this feature idea. |
👍 +1 |
Yes please! ;-) I'm more than happy to help test (I am refactoring my home lab and looking at using saltstack to orchestrate my mini server and its virtual machines). |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
This would still be desirable if possible 😄 |
Thank you for updating this issue. It is no longer marked as stale. |
I believe this merged PR should bring support for cask installs. e.g. |
#45309 adds some support for checking if a cask is installed. There are, however, a few outstanding issues.
|
It is currently supported, just install your package specifying the full name: visual-studio-code:
pkg.installed:
- name: homebrew/cask/visual-studio-code It works for custom taps too: cdalvaro/tap/cpp-plotly:
pkg.installed or even fonts: fira code nerd font:
pkg.installed:
- name: - name: homebrew/cask-fonts/font-fira-code-nerd-font This support was added on #54216 Warning: The only thing I haven't tested yet, is what does happen when installing a cask formula which requires user password... |
brew changed how to interface with casks:
if anyone is interested in the brew version(s) I have:
and salt version:
|
This have been solved in #58381 |
@cdalvaro thanks for the info! do you know when that is going to get out onto salt? |
You are welcome! I know that it is planned to be released with the Aluminium version. Update: You can check here the Aluminium release date. Apparently, it is scheduled for February 24th. |
Hey guys, as of salt 3002.2, this doesn't work on Mac:
It just fails this way:
Is there any way to make this work the |
At the moment, if you have access to you salt-master files, you can add this file:
and then sync your minion modules: salt '*' saltutil.sync_modules If you prefer, you can use this version of |
Thank you!
and here's the code I used:
|
Could you try this instead (if you have used patch #59439)?
or if you have used #58381, try using this one?
|
I did not use any patches, I just used vanilla 3002.2 thanks a lot, |
#58381 and #59371 are already merged with master and should be available when Salt Aluminium version is released. Download the
Then you have to sync all modules with your minions ( p4v-installed:
pkg.installed:
- name: homebrew/cask/p4v Warning: You must remember to delete this file when Salt 3003 is available to avoid freezing the module for future updates. |
I copied the file, did refresh modules, and I still get this error. `---------- Summary for xyzSucceeded: 0 (changed=1)
|
If I remove
|
I think the problem is that you are specifying the version of the app |
yeah you are right, I just tried without version, and doesn't error out anymore. I'd like to pin to specific version though, is there a way to do that? |
I have never tried that feature. Not even directly with |
thanks a lot, I appreciate all your help so far! |
Just to note, that visual-studio-code brew package can be installed using cask and version. |
May be you need to specify the full p4v version: |
I tried that as well, still didn't work :( |
I'm not really sure, but it seems like casks cannot be pinned: ~
❯ brew pin visual-studio-code
Error: No available formula with the name "visual-studio-code".
~
❯ brew pin homebrew/cask/visual-studio-code
Error: No available formula with the name "homebrew/cask/visual-studio-code".
~
❯ brew list --pinned
~
❯ brew pin boost
~
❯ brew list --pinned
boost
~
❯ brew unpin boost
~
❯ brew list --pinned Update: Homebrew will install the cask version available at the moment of the first installation. Then, apps with auto-update won't be updated by Homebrew using You cannot either install specific Homebrew formulas version unless they provide a specific formula for such version, like ❯ brew search '/ruby@[0-9.]+/'
==> Formulae
ruby@2.4 ruby@2.5 ruby@2.6 ruby@2.7 ruby@3 ✔ ruby@3.0 ✔ |
Yes, I think you are right, some casks offer the option to specify version, and some not. |
Hey there guys, hope you're doing well 😄
I was wondering if you would please consider supporting homebrew-cask in the future?
This allows OS X users to install desktop applications via the CLI. Ansible contains support for it and it works rather well, but I'd really like to try Salt instead for automating the build of my Mac 😄
Thanks heaps and have a great weekend!
Fotis
The text was updated successfully, but these errors were encountered: