Forge Home

piwik

Puppet Piwik Module

6,769 downloads

6,485 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.

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

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.