Skip to content

Commit

Permalink
Merge pull request #11 from keesbos/suse
Browse files Browse the repository at this point in the history
Add SLES (Suse) support
  • Loading branch information
nmadhok committed Nov 1, 2015
2 parents b2c03c1 + 83f5790 commit b94b7e1
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 4 deletions.
2 changes: 2 additions & 0 deletions sysstat/defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ sysstat:
enabled: "true"
sa1_options: "-S DISK"
sa2_options: ""
history: 60
compressafter: 10
9 changes: 9 additions & 0 deletions sysstat/files/sysstat.suse
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# sysstat-8.1.5 configuration file.

# How long to keep log files (in days).
# If value is greater than 28, then log files are kept in
# multiple directories, one for each month.
HISTORY={{ history|default('', 60) }}

# Compress (using gzip or bzip2) sa and sar files older than (in days):
COMPRESSAFTER={{ compressafter|default('', 10) }}
19 changes: 15 additions & 4 deletions sysstat/map.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,24 @@
{## setup variable using grains['os_family'] based logic ##}
{% set sysstat_settings = salt['grains.filter_by']({
'Debian': default_settings.sysstat,
'RedHat': default_settings.sysstat,
'Suse': default_settings.sysstat,
}, merge=salt['grains.filter_by']({
'RedHat': {
"service": {
"name": "sysstat",
"enabled": False
}
}
"enabled": False,
},
},
'Suse': {
"service": {
"name": "boot.sysstat",
},
"config": {
"path": "/etc/sysstat/sysstat"
},
},
}, grain="os_family", default='Debian',
merge=salt['pillar.get']('sysstat:lookup')
)
))
%}

0 comments on commit b94b7e1

Please sign in to comment.