Commit 302ba98944a8c8040f4b9f363393e0a1d692ee90
1 parent
7bb93a52
Exists in
master
and in
85 other branches
fix monitoring management
Showing
6 changed files
with
14 additions
and
7 deletions
Show diff stats
monitoring/.ssh_config
monitoring/Rakefile
| 1 | +basedir = File.expand_path(File.dirname(__FILE__)) | |
| 2 | + | |
| 3 | +Dir.chdir File.join(basedir, '..') | |
| 4 | + | |
| 5 | +ENV['CHAKE_NODES'] = File.join(basedir, 'nodes.yaml') | |
| 6 | +ENV['CHAKE_RSYNC_OPTIONS'] = '--exclude .vagrant/ --exclude docs/_build' | |
| 7 | +ENV['CHAKE_TMPDIR'] = 'tmp/chake.monitoring' | |
| 8 | +ENV['CHAKE_SSH_CONFIG'] = File.join(basedir, 'ssh_config') | |
| 9 | + | |
| 1 | 10 | require 'chake' |
| 2 | 11 | |
| 12 | +ips = YAML.load_file('config/prod/ips.yaml') | |
| 3 | 13 | $nodes.each do |node| |
| 4 | - node.data['peers'] = YAML.load_file('ips.yaml') | |
| 14 | + node.data['peers'] = ips | |
| 5 | 15 | end | ... | ... |
monitoring/cookbooks
monitoring/ips.yaml
monitoring/roles