- 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--record
if 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
--record
flag 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
password
user
private_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:status
stop
start
-
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:alias
display list of aliases for host based on conf file.
-
pcs status
- return output ofpcs status
command 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