Skip to content
This repository has been archived by the owner on Jan 4, 2021. It is now read-only.

civichacker/lita-salt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lita-salt Gem Version (Archived)

No-longer under development

lita-salt is the old adapter for Lita that allows your bot to interact with your saltstack installation via salt-api.

Installation

Add lita-salt to your Lita instance's Gemfile:

gem "lita-salt"

Configuration

Required

  • url (String) – The location of the running salt-api service.
  • username (String) – The username used to authenticate with salt-api.
  • password (String) – The password used to authenticate with salt-api.

Optional

Example

Lita.configure do |config|
    config.handlers.salt.url = "https://api.example.com"
    config.handlers.salt.username = ENV["SALT_USERNAME"]
    config.handlers.salt.password = ENV["SALT_PASSWORD"]
end

Usage

Commands are called in the with the salt prefix what can be optionally with the s abbreviation.

salt minion service.restart nginx
s minion schedule.run_job apt

Example

salt up executes the manage.up runner and returns a list of up minions.

License

MIT

About

A Lita adapter that gives your bot the power to interact with Saltstack

Resources

License

Stars

Watchers

Forks

Packages

No packages published