Commit 424db4385315bbce0d07ed9682cbf47d564e8cae

Authored by Paulo Tada
Committed by Rafael Reggiani Manzo
1 parent 10ba1d25

Passing kalibro-configuration to mezuro machine

Signed-off-by: Diego Araújo <diegoamc90@gmail.com>
cookbooks/firewall/templates/host-mezuro/iptables-filter.erb
1 1 # Allow mezuro connect to HTTP
2   --A INPUT -s <%= node['peers']['integration'] %> -p tcp -m state --state NEW -m multiport --dports 8082 -j ACCEPT
  2 +-A INPUT -s <%= node['peers']['integration'] %> -p tcp -m state --state NEW --dport 83 -j ACCEPT
  3 +-A INPUT -s <%= node['peers']['integration'] %> -p tcp -m state --state NEW --dport 82 -j ACCEPT
... ...
cookbooks/postgresql/templates/centos/pg_hba.conf.erb
... ... @@ -13,6 +13,6 @@ host noosfero noosfero &lt;%= node[&#39;peers&#39;][&#39;social&#39;] %&gt;/32 trust
13 13 host noosfero colab <%= node['peers']['integration'] %>/32 trust
14 14  
15 15 host kalibro_processor kalibro_processor <%= node['peers']['mezuro'] %>/32 trust
16   -host kalibro_configurations kalibro_configurations <%= node['peers']['integration'] %>/32 trust
  16 +host kalibro_configurations kalibro_configurations <%= node['peers']['mezuro'] %>/32 trust
17 17 host prezento prezento <%= node['peers']['integration'] %>/32 trust
18 18  
... ...
roles/integration_server.rb
... ... @@ -13,6 +13,5 @@ run_list *[
13 13 'recipe[colab]',
14 14 'recipe[colab::nginx]',
15 15 'recipe[backup]',
16   - 'recipe[mezuro::kalibro_configurations]',
17 16 'recipe[mezuro::prezento]'
18 17 ]
... ...
roles/mezuro_server.rb
1 1 name 'mezuro_server'
2 2 description 'Mezuro server'
3   -run_list 'recipe[mezuro::kalibro_processor]'
  3 +run_list *[
  4 + 'recipe[mezuro::kalibro_processor]',
  5 + 'recipe[mezuro::kalibro_configurations]'
  6 +]
... ...