Forge Home

piwik

Piwik module

10,378 downloads

10,378 latest version

2.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

  • 0.3.0 (latest)
released Oct 5th 2014
This version is compatible with:
  • Puppet Enterprise >= 3.2.0 < 3.4.0
  • Puppet 3.x
  • ,

Start using this module

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

Add this module to your Puppetfile:

mod 'bflad-piwik', '0.3.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

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

Manually install this module globally with Puppet module tool:

puppet module install bflad-piwik --version 0.3.0

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

bflad/piwik — version 0.3.0 Oct 5th 2014

puppet-piwik

Description

Installs/Configures Piwik

Requirements

Platforms

  • CentOS 6
  • RHEL 6

Modules

Heira Data and Defaults

These facts are in the piwik:: hiera data namespace.

Fact Description Type Default
install_dir Base installation directory for Piwik String /opt
log_dir Log directory for Piwik String /var/log/piwik
php_binary Location of php binary String /usr/bin/php
tmp_dirs Temporary directories for Piwik String or Array of Strings See params.pp
url URL to download Piwik String http://builds.piwik.org
version Version of Piwik to install String 2.6.1
web_user Web user for Piwik String apache

These facts are in the piwik::apache:: hiera data namespace.

Fact Description Type Default
access_log_file Filename for Piwik access log String piwik_access.log
admin_allowed_domains Simple Allow from configuration String `(example.com
admin_allowed_ips Simple Allow from configuration String `^(10.
custom_fragment Custom configuration block for each VirtualHost String See params.pp
manage Manage Apache Boolean true
port HTTP port Fixnum 80
priority Site ordering String 10
serveradmin Server administrator email String noreply@example.com
ssl_port HTTPS port Fixnum 443

These facts are in the piwik::archive:: hiera data namespace.

Fact Description Type Default
cron Enables archive crontab Boolean true
cron_minute Minute setting for archive crontab String */10
logrotate Enables archive log logrotate Boolean true
url Piwik URL to archive String http://localhost

These facts are in the piwik::config:: hiera data namespace.

Fact Description Type Default
manage Manage configuration Boolean false (in development)

These facts are in the piwik::mysql:: hiera data namespace.

Fact Description Type Default
database MySQL database name String piwik
manage Manage MySQL Boolean true
password_hash MySQL user password hash, generated via SELECT PASSWORD('password'); String *56E87D7B48023AB211CCB9A23F75A3CB7A8A64F3
user MySQL user String piwik

These facts are in the piwik::php:: hiera data namespace.

Fact Description Type Default
manage Manage PHP Boolean true
memory_limit PHP memory limit String 256M
modules PHP modules to install String or Array of Strings See params.pp
pecl_modules PECL modules to install String or Array of Strings See params.pp
timezone PHP timezone String America/New_York

Manifests

  • init Installs/Configures Piwik
  • augeas Defined resource to configure Piwik properties (in development)
  • apache Installs/Configures Apache for Piwik
  • archive Configures Piwik auto archive
  • config Configure Piwik properties (in development)
  • install Installs Piwik
  • mysql Installs/Configures MySQL for Piwik
  • permissions Configures permissions for Piwik
  • php Installs/Configures PHP for Piwik

Usage

Default Installation

Add the below to your profile.

class { 'piwik': }

Testing and Development

  • Quickly testing with Vagrant: VAGRANT.md
  • Full development and testing workflow with rspec-puppet, puppet-lint, and friends: TESTING.md

Contributing

Please use standard Github issues/pull requests and if possible, in combination with testing on the Vagrant boxes.

Maintainers