-1

I want to create a web app (like a form) where users can pass values when creating a server. It should be such as:

instance tag

prod/non-prod

type of server (web, files, db, etc)

and then i want to pass these values to a script on my cloud-init folder so that the server generates grains in salt and uses pillars to populate configuration files appropriately.

Since i am mostly using Python and Salt (python based), i was going to use django, flask, angular.js... but i dont know how to use them .. or if it is even possible to do this.

Can you point me in the right direction?

Adam Michalik
  • 9,678
  • 13
  • 71
  • 102
ciandro
  • 9
  • 2

1 Answers1

0

You have three fully supported choices:

  1. Import the Salt Client API directly
  2. Invoke the Salt Reactor event API
  3. Run the Salt API REST interface

In my opinion, the sooner you learn and leverage the Salt Reactor event system, the more doors will open for you.

Dan Garthwaite
  • 3,436
  • 4
  • 22
  • 32