Version information
released Oct 5th 2014
This version is compatible with:
- Puppet Enterprise >= 3.2.0 < 3.4.0
- Puppet 3.x
- ,
Start using this module
Add this module to your Puppetfile:
mod 'bflad-piwik', '0.3.0'
Learn more about managing modules with a PuppetfileDocumentation
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 Piwikaugeas
Defined resource to configure Piwik properties (in development)apache
Installs/Configures Apache for Piwikarchive
Configures Piwik auto archiveconfig
Configure Piwik properties (in development)install
Installs Piwikmysql
Installs/Configures MySQL for Piwikpermissions
Configures permissions for Piwikphp
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
- Brian Flad (bflad417@gmail.com)
Types in this module release
Dependencies
- puppetlabs/apache (>= 1.1.1)
- stahnma/epel (>= 0.0.6)
- rodjek/logrotate (>= 1.1.1)
- puppetlabs/mysql (>= 2.3.1)
- example42/php (>= 2.0.18)
- maestrodev/wget (>= 1.3.2)
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.