Commit e6270a69f2814227b69fdda07981100cba21a906

Authored by Paulo Tada
Committed by Rafael Manzo
1 parent 3f97de70
Exists in mezuro_cookbook

Change position of install nginx pkg

Putting nginx install step on mezuro::default
cookbooks/mezuro/recipes/default.rb 0 → 100644
@@ -0,0 +1,5 @@ @@ -0,0 +1,5 @@
  1 +package 'nginx'
  2 +
  3 +service 'nginx' do
  4 + action [:enable, :start]
  5 +end
cookbooks/mezuro/recipes/kalibro_configurations.rb
@@ -6,16 +6,11 @@ execute 'download:mezuro' do @@ -6,16 +6,11 @@ execute 'download:mezuro' do
6 end 6 end
7 7
8 package 'kalibro-configurations' 8 package 'kalibro-configurations'
9 -package 'nginx'  
10 9
11 service 'kalibro-configurations.target' do 10 service 'kalibro-configurations.target' do
12 action [:enable, :start] 11 action [:enable, :start]
13 end 12 end
14 13
15 -service 'nginx' do  
16 - action [:enable, :start]  
17 -end  
18 -  
19 template '/etc/mezuro/kalibro-configurations/database.yml' do 14 template '/etc/mezuro/kalibro-configurations/database.yml' do
20 source 'kalibro_configurations/database.yml.erb' 15 source 'kalibro_configurations/database.yml.erb'
21 owner 'kalibro_configurations' 16 owner 'kalibro_configurations'
cookbooks/mezuro/recipes/kalibro_processor.rb
@@ -10,10 +10,6 @@ service 'kalibro-processor.target' do @@ -10,10 +10,6 @@ service 'kalibro-processor.target' do
10 action [:enable, :start] 10 action [:enable, :start]
11 end 11 end
12 12
13 -service 'nginx' do  
14 - action [:enable, :start]  
15 -end  
16 -  
17 template '/etc/mezuro/kalibro-processor/database.yml' do 13 template '/etc/mezuro/kalibro-processor/database.yml' do
18 source 'kalibro_processor/database.yml.erb' 14 source 'kalibro_processor/database.yml.erb'
19 owner 'kalibro_processor' 15 owner 'kalibro_processor'
roles/mezuro_server.rb
1 name 'mezuro_server' 1 name 'mezuro_server'
2 description 'Mezuro server' 2 description 'Mezuro server'
3 run_list *[ 3 run_list *[
  4 + 'recipe[mezuro]',
4 'recipe[mezuro::kalibro_processor]', 5 'recipe[mezuro::kalibro_processor]',
5 'recipe[mezuro::kalibro_configurations]' 6 'recipe[mezuro::kalibro_configurations]'
6 ] 7 ]