0

I would like to have Salt manage my application binaries that will be hosted on each minion. If possible, I would like Salt to:

  • Ensure my program is always running
  • Pull the latest binaries from the master server (but allow selecting application versions for specific minions)
  • Not have to host source code on the minions

What's the best way to do this with Salt? So far, I've thought of having Salt manage the binaries as regular files via the file.managed state, or creating a debian package and having Salt manage the app through the pkg module, or using the docker module (though all my minions will be identical, so using Docker seems like overkill). Is there a standard or "best-practice" way of letting Salt manage my application?

1 Answer 1

1

We create deb pkg and manage them just like any other. You can setup your own repo location with salt pretty easily.

myrepo-custom:
  pkgrepo.managed:
    - key_url: https://myrepo.com/custom.gpg.key
    - name: deb https://myrepo.com/ trusty main
Sign up to request clarification or add additional context in comments.

1 Comment

Yeah, I asked on IRC and got the same answer. This seems to be the best approach.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.