Commit e84c96175efa0319fb16d3b3848cd972157543fb

Authored by Paulo Tada
1 parent 45e692fc
Exists in mezuro_spb

Fixing template command order of kalibro.yml

Showing 1 changed file with 8 additions and 8 deletions   Show diff stats
cookbooks/mezuro/recipes/prezento.rb
... ... @@ -15,6 +15,14 @@ end
15 15  
16 16 PREZENTO_DIR='/usr/share/mezuro/prezento'
17 17  
  18 +template PREZENTO_DIR + '/config/kalibro.yml' do
  19 + source 'prezento/kalibro.yml.erb'
  20 + owner 'prezento'
  21 + group 'prezento'
  22 + mode '0644'
  23 + notifies :restart, 'service[prezento.target]'
  24 +end
  25 +
18 26 execute 'prezento:schema' do
19 27 command 'RAILS_ENV=production bundle exec rake db:schema:load'
20 28 cwd PREZENTO_DIR
... ... @@ -28,14 +36,6 @@ execute 'prezento:migrate' do
28 36 notifies :restart, 'service[prezento.target]'
29 37 end
30 38  
31   -template PREZENTO_DIR + '/config/kalibro.yml' do
32   - source 'prezento/kalibro.yml.erb'
33   - owner 'prezento'
34   - group 'prezento'
35   - mode '0644'
36   - notifies :restart, 'service[prezento.target]'
37   -end
38   -
39 39 execute 'prezento:open_port' do
40 40 command 'semanage port -a -t http_port_t -p tcp 84'
41 41 user 'root'
... ...