mirror of
https://github.com/cliffe/SecGen.git
synced 2026-02-23 04:08:02 +00:00
WiP Snort install from source
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -1,9 +1,40 @@
|
||||
class snort::install{
|
||||
exec { 'install-snort':
|
||||
command => 'apt-get install snort || :',
|
||||
path => ['/bin', '/usr/bin', '/usr/local/bin', '/sbin', '/usr/sbin'],
|
||||
class snort::install {
|
||||
|
||||
Exec { path => ['/bin', '/usr/bin', '/usr/local/bin', '/sbin', '/usr/sbin'] }
|
||||
|
||||
file { '/usr/local/src/snort-2.9.12.tar.gz':
|
||||
source => "puppet:///modules/snort/snort-2.9.12.tar.gz",
|
||||
ensure => present,
|
||||
}
|
||||
|
||||
file { '/usr/local/src/daq-2.0.6.tar.gz':
|
||||
source => "puppet:///modules/snort/daq-2.0.6.tar.gz",
|
||||
ensure => present,
|
||||
}
|
||||
|
||||
exec { 'unpack-daq':
|
||||
cwd => '/usr/local/src/',
|
||||
command => 'tar -xzvf daq-2.0.6.tar.gz',
|
||||
creates => '/usr/local/src/daq-2.0.6/',
|
||||
path => [ '/bin/', '/sbin/' , '/usr/bin/', '/usr/sbin/' ],
|
||||
requires => File['/usr/local/src/daq-2.0.6.tar.gz'],
|
||||
}
|
||||
|
||||
exec { 'unpack-snort':
|
||||
cwd => '/usr/local/src/',
|
||||
command => 'tar -xzvf snort-2.9.12.tar.gz',
|
||||
creates => '/usr/local/src/snort-2.9.12/',
|
||||
path => [ '/bin/', '/sbin/' , '/usr/bin/', '/usr/sbin/' ],
|
||||
requires => File['/usr/local/src/snort-2.9.12.tar.gz'],
|
||||
}
|
||||
|
||||
|
||||
|
||||
# exec { 'install-snort':
|
||||
# command => 'apt-get -y install snort || :',
|
||||
# path => ['/bin', '/usr/bin', '/usr/local/bin', '/sbin', '/usr/sbin'],
|
||||
# }
|
||||
|
||||
# package { ['snort']:
|
||||
# ensure => 'installed',
|
||||
# }
|
||||
|
||||
@@ -177,8 +177,8 @@
|
||||
</utility>
|
||||
<utility module_path=".*handy_cli_tools"/>
|
||||
<utility module_path=".*snort"/>
|
||||
<utility module_path=".*wireshark"/>
|
||||
<utility module_path=".*nmap"/>
|
||||
<!--<utility module_path=".*wireshark"/>-->
|
||||
<!--<utility module_path=".*nmap"/>-->
|
||||
|
||||
<vulnerability module_path=".*ssh_root_login">
|
||||
<input into="root_password">
|
||||
|
||||
Reference in New Issue
Block a user