Guest User

Untitled

a guest
Feb 24th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. ... other stuff that works ...
  2.  
  3. if node['notifications']['disabled']
  4. Chef::Log.debug('Notifications are disabled on this node.')
  5. return
  6. else
  7. file '/var/lock/subsys/notification' do
  8. owner 'root'
  9. group 'root'
  10. mode '0755'
  11. action :create
  12. end
  13. end
  14.  
  15. # stuff after this doesn't work
  16.  
  17. logrotate_files = %w[
  18. app1
  19. app2
  20. ]
  21.  
  22. logrotate_files.each do |file|
  23. cookbook_file "/etc/logrotate.d/#{file}" do
  24. source "logrotate.d/#{file}"
  25. owner 'root'
  26. group 'root'
  27. mode '0644'
  28. end
  29. end
Add Comment
Please, Sign In to add comment