Skip to content

Commit

Permalink
Merge pull request #27 from syseleven/add_gentoo_support
Browse files Browse the repository at this point in the history
Add gentoo support
  • Loading branch information
robinbowes committed Jun 6, 2016
2 parents f4cab91 + 32b7f2c commit fade33d
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
35 changes: 35 additions & 0 deletions manifests/defaults.pp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,41 @@
}
}
}
'Gentoo': {
if !defined( Logrotate::Conf['/etc/logrotate.conf'] ) {
logrotate::conf {'/etc/logrotate.conf':
dateext => true,
compress => true,
ifempty => false,
mail => false,
olddir => false,
}
}

Logrotate::Rule {
missingok => true,
rotate_every => 'month',
create => true,
create_owner => 'root',
create_group => 'utmp',
rotate => '1',
}

if !defined( Logrotate::Rule['wtmp'] ) {
logrotate::rule { 'wtmp':
path => '/var/log/wtmp',
missingok => false,
create_mode => '0664',
minsize => '1M',
}
}
if !defined( Logrotate::Rule['btmp'] ) {
logrotate::rule { 'btmp':
path => '/var/log/btmp',
create_mode => '0600',
}
}
}
'RedHat': {
if !defined( Logrotate::Conf['/etc/logrotate.conf'] ) {
logrotate::conf {'/etc/logrotate.conf': }
Expand Down
6 changes: 6 additions & 0 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@
"12.04",
"14.04"
]
},
{
"operatingsystem": "Gentoo",
"operatingsystemrelease": [
"1.0"
]
}
]
}

0 comments on commit fade33d

Please sign in to comment.