Skip to content

Commit b94b7e1

Browse files
committed
Merge pull request #11 from keesbos/suse
Add SLES (Suse) support
2 parents b2c03c1 + 83f5790 commit b94b7e1

File tree

3 files changed

+26
-4
lines changed

3 files changed

+26
-4
lines changed

sysstat/defaults.yml

+2
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ sysstat:
1010
enabled: "true"
1111
sa1_options: "-S DISK"
1212
sa2_options: ""
13+
history: 60
14+
compressafter: 10

sysstat/files/sysstat.suse

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# sysstat-8.1.5 configuration file.
2+
3+
# How long to keep log files (in days).
4+
# If value is greater than 28, then log files are kept in
5+
# multiple directories, one for each month.
6+
HISTORY={{ history|default('', 60) }}
7+
8+
# Compress (using gzip or bzip2) sa and sar files older than (in days):
9+
COMPRESSAFTER={{ compressafter|default('', 10) }}

sysstat/map.jinja

+15-4
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,24 @@
77
{## setup variable using grains['os_family'] based logic ##}
88
{% set sysstat_settings = salt['grains.filter_by']({
99
'Debian': default_settings.sysstat,
10+
'RedHat': default_settings.sysstat,
11+
'Suse': default_settings.sysstat,
12+
}, merge=salt['grains.filter_by']({
1013
'RedHat': {
1114
"service": {
1215
"name": "sysstat",
13-
"enabled": False
14-
}
15-
}
16+
"enabled": False,
17+
},
18+
},
19+
'Suse': {
20+
"service": {
21+
"name": "boot.sysstat",
22+
},
23+
"config": {
24+
"path": "/etc/sysstat/sysstat"
25+
},
26+
},
1627
}, grain="os_family", default='Debian',
1728
merge=salt['pillar.get']('sysstat:lookup')
18-
)
29+
))
1930
%}

0 commit comments

Comments
 (0)