Forge Home

piwik

Puppet Piwik Module

6,683 downloads

6,412 latest version

4.6 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

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

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'martialblog-piwik', '1.1.1'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add martialblog-piwik
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install martialblog-piwik --version 1.1.1

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

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.