restart-rancher
v1.1.4
Published
a simple module made for restart a service on Rancher using his API
Downloads
7
Maintainers
Readme
RESTART-RANCHER
This is a simple tool made for restart a service in Rancher using his api.
Installation
you can add it to your node projects simple by typing:
npm install restart-rancher --save
Usage
Follow this example:
// import the module
const restartRancher = require('restart-rancher');
// configure your options with all the fields below
const options = {
RANCHER_ACCESS_KEY: "your_rancher_access_key",
RANCHER_SECRET_KEY: "your_rancher_secret_key",
PROJECT_ID: "your_project_id",
SERVICE_ID: "your_serviceId",
RANCHER_URL: "the API URL of you rancher server"
}
// and simple run the function, parsing the options above
restartRancher(options);