Skip to content

Commit

Permalink
Merge pull request #1567 from scheste/patch-31
Browse files Browse the repository at this point in the history
Update ossec-agent
  • Loading branch information
twangboy authored Mar 6, 2019
2 parents b6a360c + 7231b0b commit f8d64be
Showing 1 changed file with 25 additions and 7 deletions.
32 changes: 25 additions & 7 deletions ossec-agent.sls
Original file line number Diff line number Diff line change
@@ -1,17 +1,35 @@
# just 32-bit x86 installer available

{% set source_path = 'https://updates.atomicorp.com/channels/atomic/windows/' %}

{% if grains['cpuarch'] == 'AMD64' %}
{% set PROGRAM_FILES = "%ProgramFiles(x86)%" %}
{% set program_files = "%ProgramFiles(x86)%" %}
{% else %}
{% set PROGRAM_FILES = "%ProgramFiles%" %}
{% set program_files = "%ProgramFiles%" %}
{% endif %}

{% set versions = {
'3.2.0':['6132'],
'3.1.0':['5732'],
'3.0.1':['5667'],
'3.0.0':['5609'],
'2.9.4':['5177'],
'2.9.3':['4466'],
'2.9.2':['2760'],
'2.9.0':['2017'],
} %}

ossec-agent:
'2.8':
full_name: 'OSSEC HIDS 2.8'
installer: 'salt://win/repo/ossec/ossec-agent-win32-2.8.exe'
{% for major, subversions in versions.items() %}
{% for minor in subversions %}
'{{ major }}':
full_name: 'OSSEC HIDS {{ major }}'
installer: '{{ source_path }}ossec-agent-win32-{{ major }}-{{ minor }}.exe'
install_flags: '/S'
uninstaller: '{{ PROGRAM_FILES }}\ossec-agent\uninstall.exe'
uninstaller: '{{ program_files }}\ossec-agent\uninstall.exe'
uninstall_flags: '/S'
msiexec: False
locale: en_US
reboot: False
# The official download page for the OSSEC agent is http://www.ossec.net/?page_id=19
{% endfor %}
{% endfor %}

0 comments on commit f8d64be

Please sign in to comment.