cookbook 'codenamephp_php', '= 1.1.0', :supermarket
codenamephp_php (10) Versions 1.1.0 Follow0
Cookbook to install php
cookbook 'codenamephp_php', '= 1.1.0'
knife supermarket install codenamephp_php
knife supermarket download codenamephp_php
Chef Cookbook PHP
Cookbook to install php and apache2
Requirements
Supported Platforms
- Debian Stretch
Supported PHP versions
- 5.6
- 7.1
Chef
- Chef 13.0+
Cookbook Depdendencies
Usage
Add the cookbook to your Berksfile:
cookbook 'codename_php'
Add the cookbook to your runlist. By default, the recipe specified in default['codename_php']['php_recipe']
will be included. You can add additional
php version by adding the recipe to your runlist.
This example will install the default version and php5.6
{
"name": "default",
"chef_type": "role",
"json_class": "Chef::Role",
"run_list": [
"recipe[codename_php::5.6]"
"recipe[codename_php]"
]
}
Attributes
Overwrites
Common
-
default['codename_php']['install_apache'] = true
Set to false if you only want php as cli -
default['codename_php']['install_composer'] = true
Set to false if you don't want composer installed -
default['codename_php']['php_recipe'] = '::7.1'
Which php recipe will be used. This recipe will be included by the default recipe. Can either be one from this cookbook or a completely different one
Sury Repository
By default, the repository from Ondřej Surý is used as it provides the most recent and some older versions.
-
default['codename_php']['add_sury_repository'] = true
Set to false if you want to use the OS default channels. Be aware that not all PHP versions might be available.
Change Log
1.1.0 (2018-02-11)
Implemented enhancements:
- Change apache dependency #4
v1.0.0 (2018-02-10)
Implemented enhancements:
- Add PHP5.6 support #1
Merged pull requests:
- Release 1.0.0 #3 (bastianschwarz)
- Release 0.3.0 #2 (bastianschwarz)
* This Change Log was automatically generated by github_changelog_generator
Collaborator Number Metric
1.1.0 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
1.1.0 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.1.0 passed this metric
No Binaries Metric
1.1.0 passed this metric
Publish Metric
1.1.0 passed this metric
Supported Platforms Metric
1.1.0 passed this metric
Testing File Metric
1.1.0 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.1.0 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.1.0 failed this metric
1.1.0 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.1.0 passed this metric
No Binaries Metric
1.1.0 passed this metric
Publish Metric
1.1.0 passed this metric
Supported Platforms Metric
1.1.0 passed this metric
Testing File Metric
1.1.0 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.1.0 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.1.0 passed this metric
1.1.0 passed this metric
Publish Metric
1.1.0 passed this metric
Supported Platforms Metric
1.1.0 passed this metric
Testing File Metric
1.1.0 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.1.0 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.1.0 passed this metric
1.1.0 passed this metric
Testing File Metric
1.1.0 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.1.0 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.1.0 failed this metric
1.1.0 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