Puppet Class: diffscan

Defined in:
modules/diffscan/manifests/init.pp

Overview

SPDX-License-Identifier: Apache-2.0

Class: diffscan

This class installs & manages diffscan, an nmap wrapper for differential port scans. See github.com/ameihm0912/diffscan2

Parameters

base_dir

The working directory to use Defaults to “/srv/diffscan”.

Parameters:

  • base_dir (Stdlib::Unixpath) (defaults to: '/srv/diffscan')


14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'modules/diffscan/manifests/init.pp', line 14

class diffscan(
    Stdlib::Unixpath $base_dir  = '/srv/diffscan',
) {
    ensure_packages(['nmap'])

    file { $base_dir:
        ensure => 'directory',
        owner  => 'root',
        group  => 'root',
        mode   => '0775',
    }

    file { '/usr/local/sbin/diffscan':
        ensure => present,
        owner  => 'root',
        group  => 'root',
        mode   => '0550',
        source => 'puppet:///modules/diffscan/diffscan.py',
    }
}