- Install system requirements
yum install git gcc python-devel - Clone eventool
git clone https://github.com/yfried-redhat/eventool.git cd eventool
git checkout stable-product - Install eventool
[sudo] python setup.py install [--record files.txt] use--recordif you wish to be able to uninstall Eventool later - Create your conf file from sample file (See: "Configuration File").
cp etc/hosts_conf.yaml.sample /etc/eventool/hosts_conf.yaml
editetc/host_conf.yaml - Remove/Uninstall eventool (only if
--recordflag was used in setup)
cat files.txt | [sudo] xargs rm -rf
By default, Eventool looks for configuration file in eventool/etc/hosts_conf.yaml. To change that, set environment variable export HOSTS_CONF=</path/to/file.suffix>
- Default values for all servers. Each value can be overridden for specific node
passworduserprivate_key(path)
hosts:
Each host is defined by addresses (ip/fqdn) and attributes:alias: a list of aliases for the machine- override default values (
password,user, etc...)
roles:
Each role can contain a list of aliases/addresses that will associate this role with the matching hostfully_active_services:
List of services that are Active/Active but don't use VIP. Unable to locate them since they are active on all HA nodes.
-
system
TARGET system ACTION SERVICE
Actions:statusstopstart
-
raw
TARGET raw ACTION
Actions:script- Execute script via SSH
TARGET script INTERPRETER FILE INTERPRETER - program to execute script with (/bin/bash,/bin/python...)
FILE - path to scriptcommand- Execute command via SSH
TARGET command [command [arg1 [arg2[...]]]]
-
hosts
TARGET hosts ACTION Actions:aliasdisplay list of aliases for host based on conf file.
-
pcs status- return output ofpcs statuscommand from host. (for debug only) -
ha_manage
HA-ROLE ha_manage ACTION SERVICEHA-ROLE - role of HA machines
Actions:find_service- finds the fixed ip of the HA node currently running the service