Commit 302ba98944a8c8040f4b9f363393e0a1d692ee90

Authored by Antonio Terceiro
1 parent 7bb93a52

fix monitoring management

monitoring/.ssh_config
... ... @@ -1,3 +0,0 @@
1   -Host status.softwarepublico.gov.br
2   - HostName 189.9.151.77
3   - ProxyCommand ssh lappis.unb.br nc %h %p
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
... ... @@ -1 +0,0 @@
1   -../cookbooks
2 0 \ No newline at end of file
monitoring/ips.yaml
... ... @@ -1 +0,0 @@
1   -../config/prod/ips.yaml
2 0 \ No newline at end of file
monitoring/roles
... ... @@ -1 +0,0 @@
1   -../roles
2 0 \ No newline at end of file
monitoring/ssh_config 0 → 100644
... ... @@ -0,0 +1,3 @@
  1 +Host status.softwarepublico.gov.br
  2 + User spb
  3 + HostName 189.9.151.77
... ...