hubot-salt
A hubot script for managing salt minions
Last updated 4 years ago by mostafahussein .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install hubot-salt 
SYNC missed versions from official npm registry.

hubot-salt

Version npm npm Downloads

A hubot script for managing salt minions

See src/salt.coffee for full documentation.

Installation

Make sure that you have Salt REST CHERRYPY up and running first.

In hubot project repo, run:

npm install hubot-salt --save

Then add hubot-salt to your external-scripts.json:

["hubot-salt"]

Sample Interaction

Ping a minion

user1>> hubot salt ping minion_001
hubot>> {
  "return": [
    {
      "minion_001": true
    }
  ]
}

Execute a state on a minion

user1>> hubot, salt apply screen-formula to minion_001
hubot>> {
  "return": [
    {
      "minion_001": {
        "pkg_|-install_screen_|-screen_|-installed": {
          "comment": "Package screen is already installed",
          "name": "screen",
          "start_time": "05:55:03.835201",
          "result": true,
          "duration": 28456.433,
          "__run_num__": 0,
          "changes": {}
        }
      }
    }
  ]
}

Current Tags

  • 0.0.1-alpha.1.1                                ...           latest (4 years ago)

2 Versions

  • 0.0.1-alpha.1.1                                ...           4 years ago
  • 0.0.1-alpha.1                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 1
Dependencies (1)
Dev Dependencies (8)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |