style edits to puppet config files
Change-Id: I4f7314bcb1cb58f94ff7a78aebe27ec4591fc11c Reviewed-on: https://review.openstack.org/14187 Reviewed-by: Jeremy Stanley <fungi@yuggoth.org> Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Approved: Monty Taylor <mordred@inaugust.com> Reviewed-by: Monty Taylor <mordred@inaugust.com> Tested-by: Jenkins
This commit is contained in:
parent
b97f7ed409
commit
2786720423
@ -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"],
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => '0644',
|
||||
content => template('logrotate/config.erb'),
|
||||
require => File['/etc/logrotate.d'],
|
||||
}
|
||||
}
|
||||
|
@ -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":
|
||||
file { '/etc/logrotate.d':
|
||||
ensure => directory,
|
||||
owner => root,
|
||||
group => root,
|
||||
mode => 755,
|
||||
require => Package["logrotate"],
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => '0755',
|
||||
require => Package['logrotate'],
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user