Puppet Class: matomo::install

Defined in:
manifests/install.pp

Summary

Download and installation of matomo happens here

Overview

Download and installation of matomo happens here

include matomo::install



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'manifests/install.pp', line 7

class matomo::install {

  if $matomo::package_manage == true {

  exec{'www_folder':
    command => "mkdir -p ${matomo::docroot}",
    unless  => "test -d ${matomo::docroot}",
    path    => ['/bin', '/usr/bin',],
  }

  archive { "/opt/matomo-${matomo::package_version}.tar.gz":
        ensure       => present,
        extract      => true,
        extract_path => $matomo::docroot,
        source       => "https://builds.matomo.org/matomo-${matomo::package_version}.tar.gz",
        creates      => "/opt/matomo-${matomo::package_version}.tar.gz",
        cleanup      => false,
        require      => Exec['www_folder'],
    }
  }

}