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