Namak

Salt Net API client

View project on GitHub

Namak

Salt Net API client

Sample Dashboards:

Dashboard

You can add up to 99 dashboards, each with up to 99 commands. Dashboards are JSON arrays of JSON objects with following attributes:

  • title (optional): It defaults to "[ Asynchronous | Synchronous ] execution of %fun$s on %tgt$s with [no arguments | following arguments: %arg$s]"
  • client: local or local_async
  • tgt: shell-style globbing minion target
  • fun: function to run
  • arg (optional): arguments to pass to the function The only attribute that is not a direct map of Salt API is the title, which is optional.

TODO

  • Dashboards
    • can have their own Timeout
    • can be absolute or relative
      • Re-Implement relative dashboard URL: need to be reloaded by switching to another Salt Master
  • Add more verbose error messages
  • Make sure Volley does not cache execution URLs
  • Execution Activity
    • re-run option
  • onDestroy: log out
  • onTrimMemory: clean up dashboards and stuff ....
  • onPause: memorize current SaltMaster and authToken
  • Testing:
    • permissions
  • Grab and cache a list of Minions
  • Should we just increase SaltMaster pref no., instead of finding holes in the sequence?

Error Code categories

  • 100 NamakApplication
  • 200 MainActivity
  • 300 DashboardAdapter
  • 400 SaltMaster
  • 500 GeneralSettingsActivity / DashboardSettingsActivity / SaltMasterSettingsActivity
  • 600 CommandExecutionActivity
  • 700 CommandModificationActivity

There is also a complete list of error codes.