Skip to content

matthewandrews/puppet-piwik

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

puppet-piwik module

Piwik - Open source web analytics

Piwik is downloadable, Free/Libre real time web analytics software. It provides you with detailed reports on your website visitors; the search engines and keywords they used, the language they speak, your popular pages, and much more.

License:

GPL v3 or later

Link:

http://piwik.org

How to use

Simple Example:

Exec {
  path => "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
}

class { 'piwik': }
piwik::apache { 'apache.piwik': }

Full example:

Exec {
  path => "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
}

class { 'piwik':
  directory     => '/var/www/piwik',
  repository    => 'svn',
  version       => 'trunk',
  db_user       => 'username',
  db_password   => 'secure',
  log_analytics => true,
  svn_username  => 'myusername',
  svn_password  => 'mypassword',
}

piwik::apache { 'apache.piwik':
  port     => 80,
  docroot  => '/var/www/piwik',
  priority => '10',
  require  => Class['piwik'],
}

piwik::nginx { 'nginx.piwik':
  port    => 8080,
  docroot => '/var/www/piwik',
  require => Class['piwik'],
}

Add further Piwik versions/hosts:

piwik::repo { 'piwik_repo_17':
  directory  => '/var/www/piwik17',
  version    => 'tags/1.7',
  repository => 'svn',
  require    => Class['piwik'],
}

piwik::nginx { 'version17.piwik':
  port     => 8170,
  docroot  => '/var/www/piwik17',
  require  => Piwik::Repo['piwik_repo_17'],
}

Do not forget to update your local hosts file when adding servers

Requirements

git submodule add git://github.com/puppetlabs/puppetlabs-apache modules/apache
git submodule add git://github.com/camptocamp/puppet-apt modules/apt
git submodule add git://github.com/camptocamp/puppet-augeas modules/augeas
git submodule add git://github.com/camptocamp/puppet-common modules/common
git submodule add git://github.com/puppetlabs/puppetlabs-firewall modules/Firewall
git submodule add git://github.com/puppetlabs/puppetlabs-git modules/git
git submodule add git://github.com/puppetlabs/puppetlabs-mysql modules/mysql
git submodule add git://github.com/Mayflower/puppetlabs-nginx modules/nginx
git submodule add git://github.com/treehouseagency/puppet-pear modules/pear
git submodule add git://github.com/Mayflower/puppet-php modules/php
git submodule add git://github.com/rafaelfelix/puppet-phpqatools modules/phpqatools
git submodule add git://github.com/puppetlabs/puppetlabs-stdlib modules/stdlib
git submodule add git://github.com/openstack-infra/puppet-vcsrepo modules/vcsrepo

Releases

No releases published

Packages

No packages published

Languages

  • Puppet 100.0%