Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
salt-state
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FFFFM
salt-state
Commits
1e034c46
There was a problem fetching the pipeline summary.
Commit
1e034c46
authored
7 years ago
by
MyIgel
Browse files
Options
Downloads
Patches
Plain Diff
Logrotate: initial commit
parent
b32e395c
Branches
Branches containing commit
No related tags found
1 merge request
!110
Added logrotate
Pipeline
#
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
logrotate/files/logrotate.conf
+35
-0
35 additions, 0 deletions
logrotate/files/logrotate.conf
logrotate/init.sls
+17
-0
17 additions, 0 deletions
logrotate/init.sls
top.sls
+1
-0
1 addition, 0 deletions
top.sls
with
53 additions
and
0 deletions
logrotate/files/logrotate.conf
0 → 100644
+
35
−
0
View file @
1e034c46
# see "man logrotate" for details
# rotate log files weekly
weekly
# keep 4 weeks worth of backlogs
rotate
4
# create new (empty) log files after rotating old ones
create
# uncomment this if you want your log files compressed
compress
# if active, an archived log is compressed the next time that the log is rotated
delaycompress
# packages drop log rotation information into this directory
include
/
etc
/
logrotate
.
d
# no packages own wtmp, or btmp -- we'll rotate them here
/
var
/
log
/
wtmp
{
missingok
monthly
create
0664
root
utmp
rotate
1
}
/
var
/
log
/
btmp
{
missingok
monthly
create
0660
root
utmp
rotate
1
}
# system-specific logs may be configured here
This diff is collapsed.
Click to expand it.
logrotate/init.sls
0 → 100644
+
17
−
0
View file @
1e034c46
logrotate:
pkg.installed:
- pkgs:
- logrotate
service.running:
- enable: True
- require:
- pkg: logrotate
/etc/logrotate.conf:
file.managed:
- source: salt://logrotate/files/logrotate.conf
- user: root
- group: root
- mode: 644
- require:
- pkg: logrotate
This diff is collapsed.
Click to expand it.
top.sls
+
1
−
0
View file @
1e034c46
...
...
@@ -14,6 +14,7 @@ base:
- common.sudo
- ntp
- prometheus
- logrotate
'bgp*.ffm.freifunk.net':
- bird
- bird.bgp
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment