piwik

Puppet Piwik Module

Markus

martialblog

5,741 downloads

5,534 latest version

4.6 quality score

Version information

  • 1.1.1 (latest)
  • 1.1.0
released Oct 1st 2016
This version is compatible with:
  • Debian
    ,
    RedHat

Start using this module

Documentation

martialblog/piwik — version 1.1.1 Oct 1st 2016

Build Status

piwik

Table of Contents

  1. Description
  2. Setup - The basics of getting started with piwik
    1. Usage - Configuration options and additional functionality
    2. Reference - An under-the-hood peek at what the module is doing and how
    3. Limitations - OS compatibility, etc.
    4. Development - Guide for contributing to the module

Description

A Puppet module to easily deploy Piwik. This module only downloads the latest Piwik archive and extracts it to a given path.

You have to install php5 and configure your own SQL/web server.

Usage

A basic example using both webserver and database

  class { 'piwik':
    path => "/srv/piwik",
    user => "www-data",
  }

Please note: After the first installation you have to initialize Piwik by bootstrapping the database. For this use the setup gui in your browser according to the Piwik installation manual.

Additional Informations

  1. First I install the nodes/php module.
puppet module install nodes/php
  1. Using this module I install the necessary php packages. For serving php I use php-fpm with nginx.
class { 'php::extension::mysql': }
class { 'php::extension::mcrypt': }
class { 'php::extension::gd': }
class { 'php::fpm::daemon':
  ensure => running
}
  1. Then install Piwik. See [[Usage]].

  2. At last you may set up your vhost. This is depending on the server module you are using.

Reference

Classes

Public classes

  • [piwik::init]: Downloads the Piwik code from piwik.org
  • [piwik::plugins::loginldap]: Downloads the LoginLdap Plugin from piwik.org

For details on parameters see manifests

Limitations

This module has been tested on:

  • Debian 7, 8
  • CentOS 7

Plugins

LoginLdap

LoginLdap is a plugin to enable LDAP authentication.

Just make sure you have php-ldap installed. Either via a Puppet module like nodes/php or via the package resource.

  class { 'piwik::plugins::loginldap': }

Development

For further details see CONTRIBUTING.md

Authors

This is a fork of Arthur Leonard Andersen's Module: https://github.com/velaluqa/puppet-piwik

Since there was no further development on the original repository.