Skip to content
This repository has been archived by the owner on Oct 11, 2020. It is now read-only.

Healthbot files management (rules, playbooks) with CLI

Khelil Sator edited this page Feb 10, 2019 · 1 revision

The directory rules has rules examples
The directory playbooks has playbooks examples

We will see how to load files (rules, playbooks) to healthbot using healthbot CLI

ssh to healthbot and start a shell session in the MGD container

$ docker ps | grep mgd
$ docker exec -it <container_id> bash

Example with container b0841c08522a

$ docker exec -it b0841c08522a bash

start cli

root@b0841c08522a:/# cli

load the configuration to MGD

root@b0841c08522a> request iceberg load

edit candidate configuration

root@b0841c08522a> edit

to load these rules and playbooks:

root@b0841c08522a# load merge terminal relative

compare the candidate configuration and the running configuration

root@b0841c08522a# show | compare

commit the changeset

root@b0841c08522a# commit and-quit

deploy the change from mgd to heathbot

root@b0841c08522a> request iceberg deploy 
Clone this wiki locally