Installs gflags. Please see COMPATIBILITY.md for more information about gflags versions that are tested and supported by cookbook versions.
- CentOS 6
- Fedora 18, 19, 20
- RHEL 6
- Ubuntu 12.04, 12.10, 13.04, 13.10
These attributes are under the node['gflags'] namespace.
| Attribute | Description | Type | Default |
|---|---|---|---|
| install_type | Override platform and version auto-detection for installation ("archive" or "package") | String | nil (auto-detect) |
These attributes are under the node['gflags']['archive'] namespace.
| Attribute | Description | Type | Default |
|---|---|---|---|
| checksum | SHA256 checksum for archive | String | auto-detected (see attributes/default.rb) |
| install_dir | Installation prefix | String | /usr/local |
| url | Archive URL | String | https://gflags.googlecode.com/files/gflags-#{node['gflags']['archive']['version']}.tar.bz2 |
| version | Archive version to install | String | 2.0 |
These attributes are under the node['gflags']['package'] namespace.
| Attribute | Description | Type | Default |
|---|---|---|---|
| cpp_packages | C++ packages for installation | Array of Strings | auto-detected (see attributes/default.rb) |
| python_packages | Python packages for installation | Array of Strings | auto-detected (see attributes/default.rb) |
recipe[gflags]Installs gflagsrecipe[gflags::archive]Installs gflags via archiverecipe[gflags::cpp]Installs gflags C++recipe[gflags::package_cpp]Installs gflags C++ packagesrecipe[gflags::package_python]Installs gflags Python packagesrecipe[gflags::python]Installs gflags Python
Installs gflags C++ and Python. Recommended to use cpp and python directly instead.
- Add
recipe[gflags]to your node's run list
Installs gflags C++ via archive or package depending on platform and version auto-detection or node['gflags']['install_type'] if set.
- Add
recipe['gflags::cpp']to your node's run list
Installs gflags Python via archive or package depending on platform and version auto-detection or node['gflags']['install_type'] if set.
- Add
recipe['gflags::python']to your node's run list
- If necessary, set
node['gflags']['archive']['version']andnode['gflags']['archive']['checksum'] - Set
node['gflags']['install_type']to "archive" or addrecipe['gflags::archive']to your node's run list
- Add
recipe['gflags::package_cpp']to your node's run list
- Add
recipe['gflags::package_python']to your node's run list
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/bflad/chef-gflags.git
cd chef-gflags
vagrant up BOX # BOX being centos5, centos6, debian7, fedora18, fedora19, fedora20, freebsd9, ubuntu1204, ubuntu1210, ubuntu1304, or ubuntu1310
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.
Please see documentation in: TESTING.md
Please use standard Github issues/pull requests and if possible, in combination with testing on the Vagrant boxes or Test Kitchen suite.
- Brian Flad ([email protected])
