Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ... other stuff that works ...
- if node['notifications']['disabled']
- Chef::Log.debug('Notifications are disabled on this node.')
- return
- else
- file '/var/lock/subsys/notification' do
- owner 'root'
- group 'root'
- mode '0755'
- action :create
- end
- end
- # stuff after this doesn't work
- logrotate_files = %w[
- app1
- app2
- ]
- logrotate_files.each do |file|
- cookbook_file "/etc/logrotate.d/#{file}" do
- source "logrotate.d/#{file}"
- owner 'root'
- group 'root'
- mode '0644'
- end
- end
Add Comment
Please, Sign In to add comment