cookbook 'phpmyadmin', '~> 1.0.10'
phpmyadmin (8) Versions 1.0.10 Follow23
Installs/Configures PHPMyAdmin
cookbook 'phpmyadmin', '~> 1.0.10', :supermarket
knife supermarket install phpmyadmin
knife supermarket download phpmyadmin
chef-phpmyadmin
A Chef cookbook for the popular MySQL management application PHPMyAdmin
You can clone it and import it to Chef as
cd cookbooks
git clone git://github.com/priestjim/chef-phpmyadmin.git phpmyadmin
knife cookbook upload phpmyadmin
You can also install the latest version of the cookbook using Berkshelf. Add
the following to your Berksfile:
cookbook "phpmyadmin", github: "priestjim/chef-phpmyadmin"
The latest and greatest revision of this cookbook will always be available
at https://github.com/priestjim/chef-phpmyadmin
Requirements
This cookbook requires the following cookbooks to be present and installed:
It also suggests the following:
- nginx
- apache2
- percona
Supported Operating Systems
This cookbook supports the following Linux distributions:
- Ubuntu
- Debian
- Fedora
- CentOS
- RedHat
It also supports Chef 10.14 and higher
Attributes
This cookbook supports the following attributes:
-
version
: The desired PMA version -
checksum
: The sha256 checksum of the PMA desired version -
mirror
: The desired PMA download mirror -
fpm
: Enables the PMA FPM instance for serving via NGINX -
home
: The desired PMA installation home -
user
: The user PMA runs as -
group
: The group PMA runs as -
socket
: The socket that FPM will be exposing for PMA -
upload_dir
: The directory PMA will be using for uploads -
save_dir
: The directory PMA will be using for file saves -
maxrows
: The maximum rows PMA shall display in a table view -
protect_binary
: Define the binary field protection PMA will be using -
default_lang
: The default language PMA will be using -
default_display
: The default display of rows inside PMA -
query_history
: Enable or disable the Javascript query history -
query_history_size
: Set the maximum size of the Javascript query history -
check_config_permissions
: Enable or disable invalid PMA directory permission warnings for development -
force_ssl
: Enable or disable SSL force
LWRP Methods
phpmyadmin_db
This cookbook defines a phpmyadmin_db LWRP for dynamic DB definitions. This LWRP allows the following methods:
-
name
: This is the description of the defined database. It also gets converted to lowercase and spaces substituted to underscores for the database filename. This is the name attribute -
host
: The database host. It can be either a hostname or an IP. -
port
: The database port. -
username
: The database username. -
password
: The database password -
hide_dbs
: An array of databases we do not want to be shown. This will be concatenated in a form of 'db1|db2$' etc. -
pma_database
: If you have configured your database server for PMA, you can define here the PMA database name -
pma_username
: If you have configured your database server for PMA, you can define here the PMA username -
pma_password
: If you have configured your database server for PMA, you can define here the PMA password
phpmyadmin_pmadb
This cookbook defines a phpmyadmin_pmadb LWRP for dynamically defining the control databases of PHPMyAdmin for earch server. This LWRP allows the following methods:
-
name
: The block name. Define it for uniqueness. This is the name attribute -
host
: The database host. It can be either a hostname or an IP. -
port
: The database port. -
root_username
: The root username (root or admin usually) in order to create the database and needed privileges. -
root_password
: The root password -
pma_database
: This is the name of the PMA control database. -
pma_username
: The PMA control database username -
pma_password
: The PMA control database password -
auth_type
: The authentication method PMA will use
Usage
The cookbook installs the selected PMA version to /opt/phpmyadmin (or anywhere else you may have defined in the 'home' attribute) and optionally defines an FPM pool for NGINX or Apache2/mod_fcgid
To define a database config you can use the phpmyadmin_db LWRP such as:
phpmyadmin_db 'Test DB' do
host '127.0.0.1'
port 3306
username 'root'
password 'password'
hide_dbs %w{ information_schema mysql phpmyadmin performance_schema }
end
This will create a file in /opt/phpmyadmin/conf.d/test_db.inc.php and will be automatically included when you display the PMA page.
License
Copyright 2012 Panagiotis Papadomitsos.
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.
Dependent cookbooks
php >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
CHANGELOG for phpmyadmin
This file is used to list changes made in each version of phpmyadmin.
1.0.10
- Version bump
- Update to fix warning message for deprecated node.set
1.0.9
- Version bump
- Update to support Chef 13
1.0.8
- Version bump
- Config update
1.0.7
- Version bump
- Include important PHP dependencies before running the default recipe
1.0.6
- Blowfish secret fix
- PMA version bump
1.0.5
- PMA major version bump in the 4.x series
- Fixed mirror string
1.0.4
- PMA version bump
- Fix for node save in order to run on chef-solo runs (credit: Ivan Tanev)
- Updated the upload directory permissions with more secure ones
- Othe small fixes here and there
1.0.2
- PMA version bump
- Updated some default attributes
1.0.1
- Updated blowfish hash creation method
- Added the pmadb LWRP for creating the PMA's databases to each needed node
- Updated LWRP idempotency
- Added new attributes
1.0.0:
- Initial release of phpmyadmin
Collaborator Number Metric
1.0.10 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
1.0.10 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
1.0.10 failed this metric
FC052: Metadata uses the deprecated "suggests" keyword: phpmyadmin/metadata.rb:14
FC052: Metadata uses the deprecated "suggests" keyword: phpmyadmin/metadata.rb:15
FC053: Metadata uses the deprecated "recommends" keyword: phpmyadmin/metadata.rb:11
FC053: Metadata uses the deprecated "recommends" keyword: phpmyadmin/metadata.rb:12
FC064: Ensure issues_url is set in metadata: phpmyadmin/metadata.rb:1
FC065: Ensure source_url is set in metadata: phpmyadmin/metadata.rb:1
FC066: Ensure chef_version is set in metadata: phpmyadmin/metadata.rb:1
FC069: Ensure standardized license defined in metadata: phpmyadmin/metadata.rb:1
FC072: Metadata should not contain "attribute" keyword: phpmyadmin/metadata.rb:1
FC075: Cookbook uses node.save to save partial node data to the chef-server mid-run: phpmyadmin/recipes/default.rb:111
FC085: Resource using new_resource.updated_by_last_action to converge resource: phpmyadmin/providers/db.rb:23
FC085: Resource using new_resource.updated_by_last_action to converge resource: phpmyadmin/providers/db.rb:45
FC085: Resource using new_resource.updated_by_last_action to converge resource: phpmyadmin/providers/db.rb:51
FC085: Resource using new_resource.updated_by_last_action to converge resource: phpmyadmin/providers/db.rb:57
FC085: Resource using new_resource.updated_by_last_action to converge resource: phpmyadmin/providers/pmadb.rb:22
FC085: Resource using new_resource.updated_by_last_action to converge resource: phpmyadmin/providers/pmadb.rb:47
FC085: Resource using new_resource.updated_by_last_action to converge resource: phpmyadmin/providers/pmadb.rb:53
FC085: Resource using new_resource.updated_by_last_action to converge resource: phpmyadmin/providers/pmadb.rb:68
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
1.0.10 passed this metric
Testing File Metric
1.0.10 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
1.0.10 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
1.0.10 failed this metric
1.0.10 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
1.0.10 failed this metric
FC052: Metadata uses the deprecated "suggests" keyword: phpmyadmin/metadata.rb:14
FC052: Metadata uses the deprecated "suggests" keyword: phpmyadmin/metadata.rb:15
FC053: Metadata uses the deprecated "recommends" keyword: phpmyadmin/metadata.rb:11
FC053: Metadata uses the deprecated "recommends" keyword: phpmyadmin/metadata.rb:12
FC064: Ensure issues_url is set in metadata: phpmyadmin/metadata.rb:1
FC065: Ensure source_url is set in metadata: phpmyadmin/metadata.rb:1
FC066: Ensure chef_version is set in metadata: phpmyadmin/metadata.rb:1
FC069: Ensure standardized license defined in metadata: phpmyadmin/metadata.rb:1
FC072: Metadata should not contain "attribute" keyword: phpmyadmin/metadata.rb:1
FC075: Cookbook uses node.save to save partial node data to the chef-server mid-run: phpmyadmin/recipes/default.rb:111
FC085: Resource using new_resource.updated_by_last_action to converge resource: phpmyadmin/providers/db.rb:23
FC085: Resource using new_resource.updated_by_last_action to converge resource: phpmyadmin/providers/db.rb:45
FC085: Resource using new_resource.updated_by_last_action to converge resource: phpmyadmin/providers/db.rb:51
FC085: Resource using new_resource.updated_by_last_action to converge resource: phpmyadmin/providers/db.rb:57
FC085: Resource using new_resource.updated_by_last_action to converge resource: phpmyadmin/providers/pmadb.rb:22
FC085: Resource using new_resource.updated_by_last_action to converge resource: phpmyadmin/providers/pmadb.rb:47
FC085: Resource using new_resource.updated_by_last_action to converge resource: phpmyadmin/providers/pmadb.rb:53
FC085: Resource using new_resource.updated_by_last_action to converge resource: phpmyadmin/providers/pmadb.rb:68
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
1.0.10 passed this metric
Testing File Metric
1.0.10 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
1.0.10 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
1.0.10 failed this metric
FC052: Metadata uses the deprecated "suggests" keyword: phpmyadmin/metadata.rb:15
FC053: Metadata uses the deprecated "recommends" keyword: phpmyadmin/metadata.rb:11
FC053: Metadata uses the deprecated "recommends" keyword: phpmyadmin/metadata.rb:12
FC064: Ensure issues_url is set in metadata: phpmyadmin/metadata.rb:1
FC065: Ensure source_url is set in metadata: phpmyadmin/metadata.rb:1
FC066: Ensure chef_version is set in metadata: phpmyadmin/metadata.rb:1
FC069: Ensure standardized license defined in metadata: phpmyadmin/metadata.rb:1
FC072: Metadata should not contain "attribute" keyword: phpmyadmin/metadata.rb:1
FC075: Cookbook uses node.save to save partial node data to the chef-server mid-run: phpmyadmin/recipes/default.rb:111
FC085: Resource using new_resource.updated_by_last_action to converge resource: phpmyadmin/providers/db.rb:23
FC085: Resource using new_resource.updated_by_last_action to converge resource: phpmyadmin/providers/db.rb:45
FC085: Resource using new_resource.updated_by_last_action to converge resource: phpmyadmin/providers/db.rb:51
FC085: Resource using new_resource.updated_by_last_action to converge resource: phpmyadmin/providers/db.rb:57
FC085: Resource using new_resource.updated_by_last_action to converge resource: phpmyadmin/providers/pmadb.rb:22
FC085: Resource using new_resource.updated_by_last_action to converge resource: phpmyadmin/providers/pmadb.rb:47
FC085: Resource using new_resource.updated_by_last_action to converge resource: phpmyadmin/providers/pmadb.rb:53
FC085: Resource using new_resource.updated_by_last_action to converge resource: phpmyadmin/providers/pmadb.rb:68
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
1.0.10 passed this metric
Testing File Metric
1.0.10 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
1.0.10 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
1.0.10 failed this metric
1.0.10 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number