cookbook 'habitat', '= 0.3.0'
The habitat cookbook has been deprecated
Author provided reason for deprecation:
The habitat cookbook has been deprecated and is no longer being maintained by its authors. Use of the habitat cookbook is no longer recommended.
habitat
(74) Versions
0.3.0
-
-
2.2.4
-
2.2.3
-
2.2.2
-
2.2.1
-
2.1.0
-
2.0.5
-
2.0.4
-
2.0.3
-
2.0.2
-
2.0.1
-
2.0.0
-
1.7.0
-
1.6.2
-
1.6.1
-
1.6.0
-
1.5.10
-
1.5.9
-
1.5.8
-
1.5.7
-
1.5.6
-
1.5.5
-
1.5.4
-
1.5.3
-
1.5.2
-
1.5.1
-
1.5.0
-
0.88.2
-
0.88.1
-
0.88.0
-
0.83.0
-
0.81.0
-
0.79.1
-
0.78.0
-
0.75.0
-
0.74.0
-
0.73.1
-
0.73.0
-
0.67.0
-
0.63.0
-
0.62.1
-
0.59.0
-
0.57.0
-
0.56.1
-
0.56.0
-
0.55.0
-
0.54.0
-
0.53.0
-
0.52.0
-
0.51.0
-
0.50.3
-
0.40.0
-
0.39.2
-
0.39.1
-
0.39.0
-
0.38.0
-
0.37.1
-
0.37.0
-
0.36.0
-
0.34.3
-
0.34.2
-
0.34.1
-
0.34.0
-
0.33.0
-
0.28.0
-
0.26.1
-
0.26.0
-
0.4.0
-
0.3.0
-
0.2.0
-
0.1.1
-
0.1.0
-
0.0.3
-
0.0.2
-
0.0.1
Follow14
- 2.2.4
- 2.2.3
- 2.2.2
- 2.2.1
- 2.1.0
- 2.0.5
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 1.7.0
- 1.6.2
- 1.6.1
- 1.6.0
- 1.5.10
- 1.5.9
- 1.5.8
- 1.5.7
- 1.5.6
- 1.5.5
- 1.5.4
- 1.5.3
- 1.5.2
- 1.5.1
- 1.5.0
- 0.88.2
- 0.88.1
- 0.88.0
- 0.83.0
- 0.81.0
- 0.79.1
- 0.78.0
- 0.75.0
- 0.74.0
- 0.73.1
- 0.73.0
- 0.67.0
- 0.63.0
- 0.62.1
- 0.59.0
- 0.57.0
- 0.56.1
- 0.56.0
- 0.55.0
- 0.54.0
- 0.53.0
- 0.52.0
- 0.51.0
- 0.50.3
- 0.40.0
- 0.39.2
- 0.39.1
- 0.39.0
- 0.38.0
- 0.37.1
- 0.37.0
- 0.36.0
- 0.34.3
- 0.34.2
- 0.34.1
- 0.34.0
- 0.33.0
- 0.28.0
- 0.26.1
- 0.26.0
- 0.4.0
- 0.3.0
- 0.2.0
- 0.1.1
- 0.1.0
- 0.0.3
- 0.0.2
- 0.0.1
Habitat related resources for chef-client
cookbook 'habitat', '= 0.3.0', :supermarket
knife supermarket install habitat
knife supermarket download habitat
Habitat Cookbook
This cookbook provides resources for working with Habitat. It is intended that these resources will be included in core Chef at some point in the future, so it is important to note:
- APIs are subject to change
- Code style adheres to chef-core (chefstyle)
- Habitat is a rapidly changing product, and this cookbook may change rapidly as well
(this is a pre-1.0 version, after all)
Requirements
Platforms
- RHEL 6+
- Ubuntu 12.04+
Chef
Chef 12.11, for the systemd_unit
resource.
Resources are written in the style of Chef 12.5 custom resources where applicable or available.
Cookbooks
This cookbook has no external cookbook dependencies. It does not attempt to maintain backwards compatibility with previous Chef versions.
Resources
hab_install
Installs Habitat on the system using the install script.
This resource is written as a Chef 12.5 custom resource.
Actions
-
install
: Installs Habitat. Does nothing if thehab
binary is found in the default location for the system (/bin/hab
on Linux,/usr/local/bin/hab
on macOS) -
upgrade
: Installs the latest version of Habitat, does not check if the binary exists
Properties
-
install_url
: URL to the install script, default is from the habitat repo -
depot_url
: Optional URL to an alternate Depot (defaults to the public Depot) -
version
: The version of habitat to install (defaults to latest) -
channel
: The release channel to install from (defaults tostable
)
Examples
hab_install 'install habitat'
hab_install 'install habitat' do version "0.12.0" end
hab_install 'install habitat' do depot_url "http://localhost/v1/depot" end
hab_package
Install the specified Habitat package. Requires that Habitat is installed
This resource is written as a library resource because it subclasses Chef's package
resource/provider to get features such as the multi-package API).
Actions
-
install
: Installs the specified package -
upgrade
: aliased to install
Properties
-
package_name
: A Habitat package name, must include the origin and package name separated by/
, for example,core/redis
-
version
: A Habitat version which contains the version and optionally a release separated by/
, for example,3.2.3
or3.2.3/20160920131015
-
depot_url
: The habitat depot url where packages will be downloaded from (defaults to public habitat depot)
While it is valid to pass the version and release with a Habitat package as a "fully qualified package identifier" when using the hab
CLI, they must be specified using the version
property when using this resource. See the examples below.
Examples
hab_package "core/redis" hab_package "core/redis" do version "3.2.3" end hab_package "core/redis" do version "3.2.3/20160920131015" end
hab_service
Manages a Habitat application service using systemd. It will drop off a unit file using the systemd_unit
provider in Chef.
This resource is written as a library resource because it subclasses Chef's service
resource/provider to get built in properties and actions.
This resource requires Chef 12.11 or higher.
A future version of this resource may support other service providers.
Actions
-
start
: (default action) writes asystemd_unit
for the application and starts the service -
enable
: writes thesystemd_unit
for the application -
stop
: stops the application service
Properties
-
unit_content
: Content passed into thesystemd_unit
resource as itscontent
property. By default this is a hash that starts the service with/bin/hab start
. -
environment
: An environment string to pass into the unit file. By default this contains the location of the SSL certificate from the Habitatcore/cacerts
package. -
exec_start_options
: AString
orArray
of command line options to pass toExecStart
in the systemd unit.
Examples
hab_package 'core/redis' hab_service 'core/redis' do action :enable end # unit_content as a hash hab_service 'myorigin/myapp' do unit_content({ Unit: { Description: 'myapp', After: 'network.target audit.service' }, Service: { Environment: 'HAB_MYAPP=workers=3' ExecStart: '/bin/hab start myorigin/myapp' } }) end # unit_content as a string hab_service 'myorigin/myapp' do unit_content <<-EOF [Unit] Description = myapp After = network.target audit.service [Service] Environment = "HAB_MAPP=workers=3" ExecStart = "/bin/hab start myorigin/myapp" Restart = "on-failure" EOF end # ExecStart options as an array hab_service 'core/redis' do exec_start_options ['--listen-gossip 9999', '--listen-http 9998'] action :enable end # ExecStart options as a string hab_service 'core/haproxy' do exec_start_options '--permanent-peer' end
License and Authors
- Author: Lamont Granquist lamont@chef.io
- Author: Joshua Timberman joshua@chef.io
Copyright 2016, Chef Software, Inc 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
This cookbook has no specified dependencies.
Contingent cookbooks
habitat CHANGELOG
This file is used to list changes made in each version of the habitat cookbook.
v0.3.0 (2017-02-21)
- Add property for ExecStart options. See readme for usage
v0.2.0 (2016-11-30)
- Added
version
andchannel
properties to install resource - Added
depot_url
property to hab_package resource
v0.1.1 (2016-11-10)
- Removed Chef 11 compatibility in the metadata
- Resolved Chefstyle warnings
- Resolved foodcritic warnings
- Added a chefignore file
- Updated the gitignore file
- Improve the readme format and add badges
- Update all test deps to current
- Remove the apt testing dependency
- Add integration testing in Travis using kitchen-dokken
v0.1.0 (2016-11-08)
- add
hab_service
resource - make the
hab_package
resource convergent - add chefspec and inspec tests
- better documentation through README updates
v0.0.3 (2016-07-14)
- Initial release, includes
hab_package
andhab_install
resources
Collaborator Number Metric
0.3.0 passed this metric
Contributing File Metric
0.3.0 passed this metric
Foodcritic Metric
0.3.0 passed this metric
License Metric
0.3.0 passed this metric
No Binaries Metric
0.3.0 passed this metric
Testing File Metric
0.3.0 passed this metric
Version Tag Metric
0.3.0 passed this metric
0.3.0 passed this metric
0.3.0 passed this metric
Foodcritic Metric
0.3.0 passed this metric
License Metric
0.3.0 passed this metric
No Binaries Metric
0.3.0 passed this metric
Testing File Metric
0.3.0 passed this metric
Version Tag Metric
0.3.0 passed this metric
0.3.0 passed this metric
0.3.0 passed this metric
No Binaries Metric
0.3.0 passed this metric
Testing File Metric
0.3.0 passed this metric
Version Tag Metric
0.3.0 passed this metric
0.3.0 passed this metric
0.3.0 passed this metric
Version Tag Metric
0.3.0 passed this metric
0.3.0 passed this metric