From 27867204230dafabb24ecb4602eef7df7c2c8432 Mon Sep 17 00:00:00 2001 From: Matthew Wagoner Date: Mon, 8 Oct 2012 19:52:17 -0400 Subject: [PATCH] style edits to puppet config files Change-Id: I4f7314bcb1cb58f94ff7a78aebe27ec4591fc11c Reviewed-on: https://review.openstack.org/14187 Reviewed-by: Jeremy Stanley Reviewed-by: Clark Boylan Approved: Monty Taylor Reviewed-by: Monty Taylor Tested-by: Jenkins --- manifests/file.pp | 26 +++++++++++++------------- manifests/init.pp | 15 +++++++-------- 2 files changed, 20 insertions(+), 21 deletions(-) diff --git a/manifests/file.pp b/manifests/file.pp index 8c11c96..6286fd8 100644 --- a/manifests/file.pp +++ b/manifests/file.pp @@ -1,10 +1,10 @@ -define logrotate::file($log, - $options, - $ensure=present, - $prerotate='undef', - $postrotate='undef', - $firstaction='undef', - $lastaction='undef') { +define logrotate::file( $log, + $options, + $ensure=present, + $prerotate='undef', + $postrotate='undef', + $firstaction='undef', + $lastaction='undef') { # $options should be an array containing 1 or more logrotate # directives (e.g. missingok, compress). @@ -12,11 +12,11 @@ define logrotate::file($log, include logrotate file { "/etc/logrotate.d/${name}": - owner => root, - group => root, - mode => 644, - ensure => $ensure, - content => template("logrotate/config.erb"), - require => File["/etc/logrotate.d"], + ensure => $ensure, + owner => 'root', + group => 'root', + mode => '0644', + content => template('logrotate/config.erb'), + require => File['/etc/logrotate.d'], } } diff --git a/manifests/init.pp b/manifests/init.pp index 662074c..9410a27 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -1,16 +1,15 @@ # Adapted from http://projects.puppetlabs.com/projects/1/wiki/Logrotate_Patterns class logrotate { - - package { "logrotate": + package { 'logrotate': ensure => present, } - file { "/etc/logrotate.d": - ensure => directory, - owner => root, - group => root, - mode => 755, - require => Package["logrotate"], + file { '/etc/logrotate.d': + ensure => directory, + owner => 'root', + group => 'root', + mode => '0755', + require => Package['logrotate'], } }