Update logrotate cookbook

This commit is contained in:
Greg Karékinian
2017-05-02 11:58:32 +02:00
parent 180b3f5df0
commit ccbf11a407
23 changed files with 679 additions and 506 deletions

View File

@@ -17,13 +17,13 @@
# limitations under the License.
#
include_recipe 'logrotate::default'
include_recipe "logrotate::default"
parsed_configuration = CookbookLogrotate::LogrotateConfiguration.from_hash(node['logrotate']['global'].to_hash)
parsed_configuration = CookbookLogrotate::LogrotateConfiguration.from_hash(node["logrotate"]["global"].to_hash)
template '/etc/logrotate.conf' do
source 'logrotate-global.erb'
mode '0644'
template "/etc/logrotate.conf" do
source "logrotate-global.erb"
mode "0644"
variables(
:configuration => parsed_configuration
)