-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathconfig-template.yaml
71 lines (63 loc) · 2.38 KB
/
config-template.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
execution:
# command_executor_factory: com.outbrain.gomjabbar.execution.RundeckCommandExecutor
command_executor_factory: com.outbrain.gomjabbar.execution.AnsibleCommandExecutor
filters:
clusters:
include:
# a list of clusters to be included in the targets
# if empty, all non excluded clusters are included
# example:
# - included_dc1
exclude:
# a list of clusters to be excluded from the targets (can be empty)
# example:
# - excluded_dc1
# modules are mapped to consul service names
modules:
include:
# a list of modules to be included in the targets
# if empty, all non excluded modules are included
exclude:
# a list of modules to be excluded from the targets (can be empty)
# example:
# - unsafe_module1
# - unsafe_module2
# tags are the mapped to the tags provided when the module instances are being registered in the discovery system
tags:
include:
# a list of tags targets must have to be included in the targets
# if empty, only excluded tags are considered.
# example:
#- production
#- safe-for-chaos
exclude:
# a list of tags used for excluding targets containing these tags (can be empty)
# example:
# - test
# - unsafe
commands:
harmless_remote_command:
description: "Runs a harmless shell command on remote targets - should take about 5 sec to complete"
fail: "echo 'homeDir=${user.dir} module=${module} host=${host}'; for i in `seq 1 5`; do echo $i; sleep 1; done\n"
revert: "echo 'reverted'"
graceful_shutdown:
description: "Gracefully shuts down services using init.d"
fail: "sudo service ${module} stop"
revert: "sudo service ${module} start"
graceless_shutdown:
description: "Brutally kills service instances"
fail: "sudo pkill -9 -f ${module}"
revert: "sudo service ${module} start"
traffic_controller:
description: "Introduces high latency, and packet loss"
fail: "DEV=`sudo route | grep default | awk \"'{print $NF}'\"`; sudo tc qdisc add dev $DEV root netem delay 300ms loss 5%; sudo tc -s qdisc"
revert: "sudo tc qdisc del dev `route | grep default | awk \"'{print $NF}'`\" root; sudo tc -s qdisc"
#scripts:
# My_Fault_Script:
# description: "Fails stuff"
# fail:
# URL: "http://my.script.com/script.sh"
# args: "-f foo -b bar"
# revert:
# URL: "http://my.script.com/script.sh"
# args: "-revert"