cookbook 'wkhtmltopdf-update', '~> 0.5.1'
wkhtmltopdf-update (9) Versions 0.5.1 Follow0
Installs wkhtmltoimage and wkhtmltopdf
cookbook 'wkhtmltopdf-update', '~> 0.5.1', :supermarket
knife supermarket install wkhtmltopdf-update
knife supermarket download wkhtmltopdf-update
chef-wkhtmltopdf
Description
Installs wkhtmltopdf static binaries. This cookbook is inspired by https://github.com/bflad/chef-wkhtmltopdf.
Cookbook Compatibility:
- chef-wkhtmltopdf 0.3.0: wkhtmltopdf 0.12.2
- chef-wkhtmltopdf 0.3.1: wkhtmltopdf 0.12.2.1
- chef-wkhtmltopdf 0.4.x: wkhtmltopdf 0.12.2.1
- chef-wkhtmltopdf 0.5.x: wkhtmltopdf 0.12.4
Requirements
Platforms
- CentOS 6
- RedHat 6
- Ubuntu 12.04
- Ubuntu 13.04
- Ubuntu 14.04
- Ubuntu 14.10
- Ubuntu 16.04
Cookbooks
Attributes
These attributes are under the node['wkhtmltopdf-update']
namespace.
Attribute | Description | Type | Default |
---|---|---|---|
dependency_packages | Packages that contain wkhtmltopdf dependencies | String | (auto-detected, see attributes/default.rb) |
install_dir | directory to install static binaries | String | /usr/local/bin |
lib_dir | directory to install libraries | String | '' |
mirror_url | URL for wkhtmltopdf | String | (auto-detected, see attributes/default.rb) |
platform | wkhtmltopdf platform and architecture | String | (auto-detected, see attributes/default.rb) |
version | wkhtmltopdf version to install | String | 0.12.4 |
Recipes
-
recipe[wkhtmltopdf-update]
Installs wkhtmltoimage and wkhtmltopdf -
recipe[wkhtmltopdf-update::binary]
Installs wkhtmltoimage and wkhtmltopdf static binaries
Usage
- Add recipe(s) to node's run list
Testing and Development
Here's how you can quickly get testing or developing against the cookbook thanks to Vagrant and Berkshelf.
vagrant plugin install vagrant-berkshelf
vagrant plugin install vagrant-cachier
vagrant plugin install vagrant-omnibus
git clone git://github.com/ballisticpain/chef-wkhtmltopdf.git
cd chef-wkhtmltopdf
vagrant up BOX # BOX being centos5, centos6, debian7, fedora18, fedora19, fedora20, freebsd9, ubuntu1204, ubuntu1210, ubuntu1304, ubuntu1310, ubuntu1404, ubuntu1410, or ubuntu1604
You can then SSH into the running VM using the vagrant ssh BOX
command.
The VM can easily be stopped and deleted with the vagrant destroy
command. Please see the official Vagrant documentation for a more in depth explanation of available commands.
All vagrant up BOX commands will use VirtualBox with the exception of ubuntu14* boxes being able to use either VirtualBox or Parallels depending on what your local provider is set to.
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) [Deprecated ... He's no longer maintaining or merging pull requests. Decided to fork and start fresh.]
- Jarvis Stubblefield (jarvis@vortexrevolutions.com) Twitter: @BallisticPain
License
Please see licensing information in: [LICENSE](LICENSE)
Dependent cookbooks
apt >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
0.5.1
- Removed the unused and deprecated
replaces
keyword from the metadata.rb - Updated the README to use 0.a.x instead of each version.
- Fixed another foodcritic issue. This may break actual installation?
0.5.0
- Updated the mirror URL to use github.com/wmkhtmltopdf/wkhtmltopdf/releases/downlaod
- Updated the install packages to include x11-dev, zlib1g-dev, libfreetype6-dev (for debian based, need fedora, rhel, centos testing)
- Added Ubuntu 16.04
- Updated Gems
- Updated Berksfile to source to reflect preferred method by Chef
- Updated Travis RVM to 2.4.2
- Updated Rubocop to exclude Vagrantfile and added FrozenStringLiterals
0.4.3
- Update the mirror URL to use downloads.wkhtmltopdf.org instead of gna.org
0.4.1
- Update the mirror URL to use gna.org instead of sourceforge
0.4.0
- Enhancement: #2: Changes to use chef package resource to install wkhtmltopdf
- Enhancement: Adds chef_wkhtmltopdf_cleanup recipe to remove wkhtmltopdf installed by previous chef-wkhtmltopdf cookbook
0.2.0
- Bugfix: Removed extraneous wkhtmltoimage/wkhtmltopdf attributes
- Enhancement: #2: Updated to wkhtmltopdf 0.12.0
- Enhancement: Consolidated _binary recipes into single binary recipe
- Enhancement: Set lib_dir to install wkhtmltox.so
- Enhancement: Move dependency package installation to dependency_packages attribute and default recipe
- Enhancement: Renamed arch attribute to platform (to better handle download URLs)
0.1.0
- Initial release
Collaborator Number Metric
0.5.1 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.5.1 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
0.5.1 passed this metric
No Binaries Metric
0.5.1 passed this metric
Testing File Metric
0.5.1 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
0.5.1 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
0.5.1 failed this metric
0.5.1 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
0.5.1 passed this metric
No Binaries Metric
0.5.1 passed this metric
Testing File Metric
0.5.1 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
0.5.1 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
0.5.1 passed this metric
0.5.1 passed this metric
Testing File Metric
0.5.1 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
0.5.1 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
0.5.1 failed this metric
0.5.1 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