Commit ca18e92b0c6b04f0503cbba8e83e3f283bb05dd8
Committed by
Rafael Manzo
1 parent
2590f487
Exists in
mezuro_cookbook
Adding the kalibro configurations for prezento
Signed-off-by: Diego Araújo <diegoamc90@gmail.com>
Showing
2 changed files
with
22 additions
and
6 deletions
Show diff stats
cookbooks/mezuro/recipes/prezento.rb
... | ... | @@ -5,6 +5,12 @@ execute 'download:mezuro' do |
5 | 5 | user 'root' |
6 | 6 | end |
7 | 7 | |
8 | +package 'prezento' | |
9 | + | |
10 | +service 'prezento.target' do | |
11 | + action [:enable, :start] | |
12 | +end | |
13 | + | |
8 | 14 | template '/etc/mezuro/prezento/database.yml' do |
9 | 15 | source 'prezento/database.yml.erb' |
10 | 16 | owner 'prezento' |
... | ... | @@ -13,12 +19,6 @@ template '/etc/mezuro/prezento/database.yml' do |
13 | 19 | notifies :restart, 'service[prezento.target]' |
14 | 20 | end |
15 | 21 | |
16 | -package 'prezento' | |
17 | - | |
18 | -service 'prezento.target' do | |
19 | - action [:enable, :start] | |
20 | -end | |
21 | - | |
22 | 22 | PREZENTO_DIR='/usr/share/mezuro/prezento' |
23 | 23 | |
24 | 24 | execute 'prezento:schema' do |
... | ... | @@ -34,11 +34,23 @@ execute 'prezento:migrate' do |
34 | 34 | notifies :restart, 'service[prezento.target]' |
35 | 35 | end |
36 | 36 | |
37 | +template PREZENTO_DIR + '/config/kalibro.yml' do | |
38 | + source 'prezento/kalibro.yml.erb' | |
39 | + owner 'prezento' | |
40 | + group 'prezento' | |
41 | + mode '0644' | |
42 | + notifies :restart, 'service[prezento.target]' | |
43 | +end | |
44 | + | |
37 | 45 | ############################################################################# |
38 | 46 | # The next lines install the mezuro plugin for colab intergration # |
39 | 47 | # This shold be removed when the plugin were install thought pkg colab-deps # |
40 | 48 | ############################################################################# |
41 | 49 | |
50 | +service 'colab' do | |
51 | + action [:enable, :start] | |
52 | +end | |
53 | + | |
42 | 54 | git '/home/vagrant/colab-mezuro-plugin' do |
43 | 55 | repository 'https://github.com/colab/colab-mezuro-plugin.git' |
44 | 56 | revision 'master' |
... | ... | @@ -48,4 +60,6 @@ execute 'pip:install:plugin' do |
48 | 60 | command '/usr/lib/colab/bin/pip install .' |
49 | 61 | cwd '/home/vagrant/colab-mezuro-plugin' |
50 | 62 | user 'root' |
63 | + notifies :restart, 'service[colab]' | |
51 | 64 | end |
65 | + | ... | ... |