diff --git a/cookbooks/mezuro/recipes/prezento.rb b/cookbooks/mezuro/recipes/prezento.rb index 231636f..ac89e0f 100644 --- a/cookbooks/mezuro/recipes/prezento.rb +++ b/cookbooks/mezuro/recipes/prezento.rb @@ -5,6 +5,12 @@ execute 'download:mezuro' do user 'root' end +package 'prezento' + +service 'prezento.target' do + action [:enable, :start] +end + template '/etc/mezuro/prezento/database.yml' do source 'prezento/database.yml.erb' owner 'prezento' @@ -13,12 +19,6 @@ template '/etc/mezuro/prezento/database.yml' do notifies :restart, 'service[prezento.target]' end -package 'prezento' - -service 'prezento.target' do - action [:enable, :start] -end - PREZENTO_DIR='/usr/share/mezuro/prezento' execute 'prezento:schema' do @@ -34,11 +34,23 @@ execute 'prezento:migrate' do notifies :restart, 'service[prezento.target]' end +template PREZENTO_DIR + '/config/kalibro.yml' do + source 'prezento/kalibro.yml.erb' + owner 'prezento' + group 'prezento' + mode '0644' + notifies :restart, 'service[prezento.target]' +end + ############################################################################# # The next lines install the mezuro plugin for colab intergration # # This shold be removed when the plugin were install thought pkg colab-deps # ############################################################################# +service 'colab' do + action [:enable, :start] +end + git '/home/vagrant/colab-mezuro-plugin' do repository 'https://github.com/colab/colab-mezuro-plugin.git' revision 'master' @@ -48,4 +60,6 @@ execute 'pip:install:plugin' do command '/usr/lib/colab/bin/pip install .' cwd '/home/vagrant/colab-mezuro-plugin' user 'root' + notifies :restart, 'service[colab]' end + diff --git a/cookbooks/mezuro/templates/prezento/kalibro.yml.erb b/cookbooks/mezuro/templates/prezento/kalibro.yml.erb new file mode 100644 index 0000000..969dcef --- /dev/null +++ b/cookbooks/mezuro/templates/prezento/kalibro.yml.erb @@ -0,0 +1,2 @@ +processor_address: http://<%= node['peers']['mezuro'] %>:82/ +configurations_address: http://<%= node['peers']['mezuro'] %>:83/ -- libgit2 0.21.2