cookbook 'hhvm', '= 0.5.1'
hhvm (9) Versions 0.5.1 Follow8
Installs/Configures hhvm
cookbook 'hhvm', '= 0.5.1', :supermarket
knife supermarket install hhvm
knife supermarket download hhvm
hhvm
Requirements
- Chef
>= 11.6.0
- Ruby
>= 1.9.3
Platforms
Debian 7 | Ubuntu 12.04 | Ubuntu 13.10 | Ubuntu 14.04 | CentOS 6.4 | Centos 6.5 | Centos 6.6 | Centos 6.7 | |
---|---|---|---|---|---|---|---|---|
Source | X | X | X | X | ||||
Package | X | X | X | X | X | X | X | X |
The cookbook was tested on the previous platforms using the provided [Vagrantfile
](Vagrantfile).
Cookbooks
Requirements
All the requirements are decribed in the cookbook's [metadata.rb
](metadata.rb) file and are locked using Berkshelf's lock file.
Attributes
Attribute | Default | Description/Values |
---|---|---|
node['hhvm']['installation_type'] |
package | Installation method (package or source ) |
Package installation | ||
node['hhvm']['package']['type'] |
default | Which HHVM package to install (one of dbg, nightly, nightly-dbg or default) |
Source installation | ||
node['hhvm']['source']['make_jobs'] |
1 | Number of parallel jobs when running make commands |
node['hhvm']['source']['hhvm_repository'] |
git://github.com/facebook/hhvm.git | HHVM git repository URL |
node['hhvm']['source']['hhvm_revision'] |
master | Revision to checkout when installing from sources |
node['hhvm']['source']['libevent_repository'] |
git://github.com/libevent/libevent.git | libevent git repository URL |
node['hhvm']['source']['libevent_revision'] |
eb8122f26 (release-1.4.14b-stable) | libevent version to checkout to build HHVM |
node['hhvm']['source']['layout']['working_dir'] |
/usr/src | Directory in which repositories will be cloned |
node['hhvm']['source']['layout']['prefix'] |
/usr | Prefix used when building HHVM |
node['hhvm']['source']['dependencies'][...] |
very long list of packages | List of packages to install before being able to build HHVM |
All the default attributes are available in the [attributes/default.rb
](attributes/default.rb) file.
Recipes
hhvm::default
This will install HHVM using packages which is the default installation method.
hhvm::package
This will install HHVM using packages which is the default installation method.
hhvm::source
This will install HHVM from sources.
License
See [LICENSE](LICENSE) file.
Foodcritic Metric
0.5.1 failed this metric
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/78f2243205df6772b5549600/hhvm/recipes/_package_debian.rb:17
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/78f2243205df6772b5549600/hhvm/recipes/_package_debian.rb:30
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/78f2243205df6772b5549600/hhvm/recipes/_package_rhel.rb:16
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/78f2243205df6772b5549600/hhvm/recipes/_package_rhel.rb:37
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/78f2243205df6772b5549600/hhvm/recipes/_source_ubuntu.rb:1
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/78f2243205df6772b5549600/hhvm/recipes/package.rb:1
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/78f2243205df6772b5549600/hhvm/recipes/package.rb:9
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/78f2243205df6772b5549600/hhvm/recipes/source.rb:12
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/78f2243205df6772b5549600/hhvm/recipes/source.rb:15
FC013: Use file_cache_path rather than hard-coding tmp paths: /tmp/cook/78f2243205df6772b5549600/hhvm/recipes/_package_rhel.rb:5
FC019: Access node attributes in a consistent manner: /tmp/cook/78f2243205df6772b5549600/hhvm/recipes/_package_debian.rb:17
FC019: Access node attributes in a consistent manner: /tmp/cook/78f2243205df6772b5549600/hhvm/recipes/_package_debian.rb:30
FC019: Access node attributes in a consistent manner: /tmp/cook/78f2243205df6772b5549600/hhvm/recipes/_package_rhel.rb:16
FC019: Access node attributes in a consistent manner: /tmp/cook/78f2243205df6772b5549600/hhvm/recipes/_package_rhel.rb:37
FC019: Access node attributes in a consistent manner: /tmp/cook/78f2243205df6772b5549600/hhvm/recipes/_source_ubuntu.rb:1
FC019: Access node attributes in a consistent manner: /tmp/cook/78f2243205df6772b5549600/hhvm/recipes/package.rb:1
FC019: Access node attributes in a consistent manner: /tmp/cook/78f2243205df6772b5549600/hhvm/recipes/package.rb:9
FC019: Access node attributes in a consistent manner: /tmp/cook/78f2243205df6772b5549600/hhvm/recipes/source.rb:12
FC019: Access node attributes in a consistent manner: /tmp/cook/78f2243205df6772b5549600/hhvm/recipes/source.rb:15
FC023: Prefer conditional attributes: /tmp/cook/78f2243205df6772b5549600/hhvm/recipes/_package_rhel.rb:35
FC024: Consider adding platform equivalents: /tmp/cook/78f2243205df6772b5549600/hhvm/recipes/package.rb:5
FC031: Cookbook without metadata file: /tmp/cook/78f2243205df6772b5549600/hhvm/metadata.rb:1
FC040: Execute resource used to run git commands: /tmp/cook/78f2243205df6772b5549600/hhvm/recipes/_source_common_libevent.rb:20
FC045: Consider setting cookbook name in metadata: /tmp/cook/78f2243205df6772b5549600/hhvm/metadata.rb:1
0.5.1 failed this metric
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/78f2243205df6772b5549600/hhvm/recipes/_package_debian.rb:30
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/78f2243205df6772b5549600/hhvm/recipes/_package_rhel.rb:16
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/78f2243205df6772b5549600/hhvm/recipes/_package_rhel.rb:37
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/78f2243205df6772b5549600/hhvm/recipes/_source_ubuntu.rb:1
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/78f2243205df6772b5549600/hhvm/recipes/package.rb:1
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/78f2243205df6772b5549600/hhvm/recipes/package.rb:9
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/78f2243205df6772b5549600/hhvm/recipes/source.rb:12
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/78f2243205df6772b5549600/hhvm/recipes/source.rb:15
FC013: Use file_cache_path rather than hard-coding tmp paths: /tmp/cook/78f2243205df6772b5549600/hhvm/recipes/_package_rhel.rb:5
FC019: Access node attributes in a consistent manner: /tmp/cook/78f2243205df6772b5549600/hhvm/recipes/_package_debian.rb:17
FC019: Access node attributes in a consistent manner: /tmp/cook/78f2243205df6772b5549600/hhvm/recipes/_package_debian.rb:30
FC019: Access node attributes in a consistent manner: /tmp/cook/78f2243205df6772b5549600/hhvm/recipes/_package_rhel.rb:16
FC019: Access node attributes in a consistent manner: /tmp/cook/78f2243205df6772b5549600/hhvm/recipes/_package_rhel.rb:37
FC019: Access node attributes in a consistent manner: /tmp/cook/78f2243205df6772b5549600/hhvm/recipes/_source_ubuntu.rb:1
FC019: Access node attributes in a consistent manner: /tmp/cook/78f2243205df6772b5549600/hhvm/recipes/package.rb:1
FC019: Access node attributes in a consistent manner: /tmp/cook/78f2243205df6772b5549600/hhvm/recipes/package.rb:9
FC019: Access node attributes in a consistent manner: /tmp/cook/78f2243205df6772b5549600/hhvm/recipes/source.rb:12
FC019: Access node attributes in a consistent manner: /tmp/cook/78f2243205df6772b5549600/hhvm/recipes/source.rb:15
FC023: Prefer conditional attributes: /tmp/cook/78f2243205df6772b5549600/hhvm/recipes/_package_rhel.rb:35
FC024: Consider adding platform equivalents: /tmp/cook/78f2243205df6772b5549600/hhvm/recipes/package.rb:5
FC031: Cookbook without metadata file: /tmp/cook/78f2243205df6772b5549600/hhvm/metadata.rb:1
FC040: Execute resource used to run git commands: /tmp/cook/78f2243205df6772b5549600/hhvm/recipes/_source_common_libevent.rb:20
FC045: Consider setting cookbook name in metadata: /tmp/cook/78f2243205df6772b5549600/hhvm/metadata.rb:1