1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 
       | 
      
        # File 'manifests/package/dpkg.pp', line 1
class packetbeat::package::dpkg inherits packetbeat::package{
  wget::fetch { 'packetbeat':
    source      => "https://download.elasticsearch.org/beats/packetbeat/packetbeat_${version}_${::architecture}.deb",
    destination => "/tmp/packetbeat-${version}_${::architecture}.deb",
    timeout     => 0,
    verbose     => false,
  }
  package { 'libpcap0.8':
    ensure => installed,
    before => Package['packetbeat']
  }
  package { 'packetbeat':
    ensure   => installed,
    provider => dpkg,
    source   => "/tmp/packetbeat-${version}_${::architecture}.deb",
    require  => Wget::Fetch['packetbeat']
  }
}
       |