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
@ -1,4 +1,4 @@
|
|||||||
define logrotate::file($log,
|
define logrotate::file( $log,
|
||||||
$options,
|
$options,
|
||||||
$ensure=present,
|
$ensure=present,
|
||||||
$prerotate='undef',
|
$prerotate='undef',
|
||||||
@ -12,11 +12,11 @@ define logrotate::file($log,
|
|||||||
include logrotate
|
include logrotate
|
||||||
|
|
||||||
file { "/etc/logrotate.d/${name}":
|
file { "/etc/logrotate.d/${name}":
|
||||||
owner => root,
|
|
||||||
group => root,
|
|
||||||
mode => 644,
|
|
||||||
ensure => $ensure,
|
ensure => $ensure,
|
||||||
content => template("logrotate/config.erb"),
|
owner => 'root',
|
||||||
require => File["/etc/logrotate.d"],
|
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
|
# Adapted from http://projects.puppetlabs.com/projects/1/wiki/Logrotate_Patterns
|
||||||
|
|
||||||
class logrotate {
|
class logrotate {
|
||||||
|
package { 'logrotate':
|
||||||
package { "logrotate":
|
|
||||||
ensure => present,
|
ensure => present,
|
||||||
}
|
}
|
||||||
|
|
||||||
file { "/etc/logrotate.d":
|
file { '/etc/logrotate.d':
|
||||||
ensure => directory,
|
ensure => directory,
|
||||||
owner => root,
|
owner => 'root',
|
||||||
group => root,
|
group => 'root',
|
||||||
mode => 755,
|
mode => '0755',
|
||||||
require => Package["logrotate"],
|
require => Package['logrotate'],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user