From e84c96175efa0319fb16d3b3848cd972157543fb Mon Sep 17 00:00:00 2001 From: Paulo Tada Date: Tue, 7 Jun 2016 16:44:54 -0300 Subject: [PATCH] Fixing template command order of kalibro.yml --- cookbooks/mezuro/recipes/prezento.rb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/cookbooks/mezuro/recipes/prezento.rb b/cookbooks/mezuro/recipes/prezento.rb index 7f16b1a..9c5d9a7 100644 --- a/cookbooks/mezuro/recipes/prezento.rb +++ b/cookbooks/mezuro/recipes/prezento.rb @@ -15,6 +15,14 @@ end PREZENTO_DIR='/usr/share/mezuro/prezento' +template PREZENTO_DIR + '/config/kalibro.yml' do + source 'prezento/kalibro.yml.erb' + owner 'prezento' + group 'prezento' + mode '0644' + notifies :restart, 'service[prezento.target]' +end + execute 'prezento:schema' do command 'RAILS_ENV=production bundle exec rake db:schema:load' cwd PREZENTO_DIR @@ -28,14 +36,6 @@ 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 - execute 'prezento:open_port' do command 'semanage port -a -t http_port_t -p tcp 84' user 'root' -- libgit2 0.21.2