Puppet Class: isp3node::webstats::setup

Defined in:
manifests/webstats/setup.pp

Summary

Install webstat tools to the server

Overview

Installs common required packages along with packages required for Webstats and AWStats

Examples:

include isp3node::webstats::setup

Parameters:

  • packages (Array[String])

    Common required packages

  • packages_webalizer (Array[String])

    Software required for webalizer

  • packages_awstats (Array[String])

    Software required for awstats

  • awstats_conffile

    System path to awstats cronfile, will be cleared as ISPConfig triggers updates itself

  • webalizer (Boolean) (defaults to: true)

    Install Webalizer or not

  • awstats (Boolean) (defaults to: true)

    Install AWStats or not

  • awstats_cronfile (String)


19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# File 'manifests/webstats/setup.pp', line 19

class isp3node::webstats::setup(
  Array[String] $packages,
  Array[String] $packages_webalizer,
  Array[String] $packages_awstats,
  String $awstats_cronfile,
  Boolean $webalizer = true,
  Boolean $awstats = true,
) {
  package{$packages: ensure => latest}
  if($awstats) {
    package{$packages_awstats: ensure => latest}
    # Drop the awstats cronjobs -> will be triggered by ISPConfig
    -> file{$awstats_cronfile: ensure => absent}
  }
  if($webalizer) {
    package{$packages_webalizer: ensure => latest}
  }
}