diff --git a/cookbooks/mezuro/recipes/default.rb b/cookbooks/mezuro/recipes/default.rb new file mode 100644 index 0000000..39e8f24 --- /dev/null +++ b/cookbooks/mezuro/recipes/default.rb @@ -0,0 +1,5 @@ +package 'nginx' + +service 'nginx' do + action [:enable, :start] +end diff --git a/cookbooks/mezuro/recipes/kalibro_configurations.rb b/cookbooks/mezuro/recipes/kalibro_configurations.rb index 00ffd9c..8574031 100644 --- a/cookbooks/mezuro/recipes/kalibro_configurations.rb +++ b/cookbooks/mezuro/recipes/kalibro_configurations.rb @@ -6,16 +6,11 @@ execute 'download:mezuro' do end package 'kalibro-configurations' -package 'nginx' service 'kalibro-configurations.target' do action [:enable, :start] end -service 'nginx' do - action [:enable, :start] -end - template '/etc/mezuro/kalibro-configurations/database.yml' do source 'kalibro_configurations/database.yml.erb' owner 'kalibro_configurations' diff --git a/cookbooks/mezuro/recipes/kalibro_processor.rb b/cookbooks/mezuro/recipes/kalibro_processor.rb index b99c406..1a405ed 100644 --- a/cookbooks/mezuro/recipes/kalibro_processor.rb +++ b/cookbooks/mezuro/recipes/kalibro_processor.rb @@ -10,10 +10,6 @@ service 'kalibro-processor.target' do action [:enable, :start] end -service 'nginx' do - action [:enable, :start] -end - template '/etc/mezuro/kalibro-processor/database.yml' do source 'kalibro_processor/database.yml.erb' owner 'kalibro_processor' diff --git a/roles/mezuro_server.rb b/roles/mezuro_server.rb index 6a66ff1..424171e 100644 --- a/roles/mezuro_server.rb +++ b/roles/mezuro_server.rb @@ -1,6 +1,7 @@ name 'mezuro_server' description 'Mezuro server' run_list *[ + 'recipe[mezuro]', 'recipe[mezuro::kalibro_processor]', 'recipe[mezuro::kalibro_configurations]' ] -- libgit2 0.21.2