- Overview
- Module Description - What the module does and why it is useful
- Setup - The basics of getting started with phpmyadmin
- Usage - Configuration options and additional functionality
- Reference - An under-the-hood peek at what the module is doing and how
- Limitations - OS compatibility, etc.
- Development - Guide for contributing to the module
A puppet module to install phpMyAdmin.
phpMyAdmin is a web application used to administrator MySQL and MariaDB. This puppet module will install and configure phpMyAdmin. An example is provided below on how to use this with the puppetlabs/apache module to also set up Apache.
- phpMyAdmin package
- phpMyAdmin configuration
phpMyAdmin can be installed simply by including the module:
class { 'phpmyadmin': }
By itself, installing phpMyAdmin will not be very useful as it needs a webserver to run. To install phpmyadmin with puppetlab's apache module:
class { 'apache': }
class { 'apache::mod::php': }
apache::vhost { 'phpmyadmin':
docroot => '/var/www/html',
port => $port,
aliases => [
{
alias => '/phpmyadmin',
path => '/usr/share/phpMyAdmin'
}, {
alias => '/phpMyAdmin',
path => '/usr/share/phpMyAdmin'
}
],
directories => [
{
'path' => '/usr/share/phpMyAdmin/',
'allow' => 'from all',
}, {
'path' => '/usr/share/phpMyAdmin/setup/',
'deny' => 'from all',
'allow' => 'from none',
}, {
'path' => '/usr/share/phpMyAdmin/libraries/',
'deny' => 'from all',
'allow' => 'from none',
}
],
}
Configuration parameters to apply to phpmyadmin. This should be a hash with the key as the property and the appropriate value.
Servers to be added phpMyAdmin. This is an array of hashes with the hash containing the properties and values for the host.
Location of the phpMyAdmin configuration file.
Name of the phpMyAdmin package
User name the config file should be owend by. This will typically be your web server
Group the config file should be owend by. This will typically be your web server
Version of phpMyAdmin to install
This has only been tested on CentOS 6 and 7.
Improvements and bug fixes are greatly appreciated. See the contributing guide for information on adding and validating tests for PRs.