0

I want to replicate the following step of a deployment in saltstack, as a given user:

gem install --user-install bundler

I checked the documentation and I was still unsure as to how to do this. I tried the following:

bundler-install:
  gem.installed:
    - user: username
    - name: bundler

And:

bundler-install:
  gem.installed:
    - user: username
    - name: bundler
    - gem_bin: gem install --user-install

And:

bundler-install:
  gem.installed:
    - user: username
    - gem_bin: gem install --user-install bundler

I guess I'm either doing it wrong or this isn't possible? Can anyone advise?

0

I raised this a feature request/bug with saltstack:

https://github.com/saltstack/salt/issues/31821

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.