cookbook 'habitat', '= 0.34.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.34.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.34.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
- 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 7+
- Ubuntu 16.04+
Habitat
- 0.34.1
This cookbook is developed lockstep with the latest release of Habitat to ensure compatibility, going forward from 0.33.0 of the cookbook and 0.33.2 of Habitat itself. When new versions of Habitat are released, the version should be updated in these files:
-
README.md: note required version in this file -
resources/install.rb: set the default to the new version -
test/integration/install/default_spec.rb: to match the version from the resource
Additionally, new versions must be tested that all behavior in the cookbook still works, otherwise the cookbook must be updated to match the behavior in the new version of Habitat.
Users who wish to install a specific version of Habitat should use an older (0.28 or earlier) release of this cookbook, but note that is unsupported and they are advised to upgrade ASAP.
Chef
- Chef 12.11+
Cookbooks
- None
Resources
hab_install
Installs Habitat on the system using the install script.
Actions
-
install: Installs Habitat. Does nothing if thehabbinary is found in the default location for the system (/bin/habon Linux,/usr/local/bin/habon 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 -
bldr_url: Optional URL to an alternate Builder (defaults to the public Builder) -
channel: The release channel to install from (defaults tostable)
Examples
hab_install 'install habitat'
hab_install 'install habitat' do bldr_url "http://localhost" 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.3or3.2.3/20160920131015 -
bldr_url: The habitat builder url where packages will be downloaded from (defaults to public habitat builder) -
channel: The release channel to install from (defaults tostable)
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" channel "unstable" end hab_package "core/redis" do version "3.2.3/20160920131015" end
hab_service
Manages a Habitat application service using hab sup/hab service. This requires that core/hab-sup be running as a service. See the hab_sup resource documentation below for more information about how to set that up with this cookbook.
Actions
-
load: (default action) runshab service loadto load and start the specified application service -
unload: runshab service unloadto unload and stop the specified application service -
start: runshab service startto start the specified application service -
stop: runshab service stopto stop the specified application service
Properties
-
service_name: name property, the name of the service, must be in the form oforigin/name -
loaded: state property indicating whether the service is loaded in the supervisor -
running: state property indicating whether the service is running in the supervisor -
permanent_peer: Only valid for:startaction, passes--permanent-peerto the hab command -
listen_gossip: Only valid for:startaction, passes--listen-gossipwith the specified address and port, e.g.,0.0.0.0:9638, to the hab command -
listen_http: Only valid for:startaction, passes--listen-httpwith the specified address and port, e.g.,0.0.0.0:9631, to the hab command -
org: Only valid for:startaction, passes--orgwith the specified org name to the hab command -
peer: Only valid for:startaction, passes--peerwith the specified initial peer to the hab command -
ring: Only valid for:startaction, passes--ringwith the specified ring key name to the hab command -
strategy: Only valid for:startor:loadactions, passes--strategywith the specified update strategy to the hab command -
topology: Only valid for:startor:loadactions, passes--topologywith the specified service topology to the hab command -
bldr_url: Only valid for:startor:loadactions, passes--urlwith the specified Builder URL to the hab command -
bind: Only valid for:startor:loadactions, passes--bindwith the specified services to bind to the hab command -
service_group: Only valid for:startor:loadactions, passes--groupwith the specified service group to the hab command -
config_from: Only valid for:startaction, passes--config-fromwith the specified directory to the hab command -
override_name: Advanced Use Valid for all actions, passes--override-namewith the specified name to the hab command; used for running services in multiple supervisors -
channel: Only valid for:startor:loadactions, passes--channelwith the specified channel to the hab command
Examples
# install and load nginx hab_package "core/nginx" hab_service "core/nginx" hab_service "core/nginx unload" do service_name "core/nginx" action :unload end # pass the strategy and topology options to hab service commands (load by default) hab_service "core/redis" do strategy 'rolling' topology 'standalone' end
hab_sup
Runs a Habitat Supervisor for one or more Habitat Services. This requires Habitat version 0.20 or higher. It is used in conjunction with hab_service which will manage the services loaded and started within the supervisor.
The run action handles installing Habitat using the hab_install resource, ensures that the core/hab-sup package is installed using hab_package, and then drops off the appropriate init system definitions and manages the service. At this time, only systemd is supported.
Actions
-
run: starts thehab-supservice
Properties
-
permanent_peer: Only valid for:startaction, passes--permanent-peerto the hab command -
listen_gossip: Only valid for:startaction, passes--listen-gossipwith the specified address and port, e.g.,0.0.0.0:9638, to the hab command -
listen_http: Only valid for:startaction, passes--listen-httpwith the specified address and port, e.g.,0.0.0.0:9631, to the hab command -
org: Only valid for:startaction, passes--orgwith the specified org name to the hab command -
peer: Only valid for:startaction, passes--peerwith the specified initial peer to the hab command -
ring: Only valid for:startaction, passes--ringwith the specified ring key name to the hab command -
hab_channel: The channel to install Habitat from. Defaults to stable -
override_name: Advanced Use Valid for all actions, passes--override-namewith the specified name to the hab command; used for running services in multiple supervisors
Examples
# set up with just the defaults hab_sup "default" # run with an override name, requires changing listen_http and # listen_gossip if a default supervisor is running hab_sup 'test-options' do override_name 'myapps' listen_http '0.0.0.0:9999' listen_gossip '0.0.0.0:9998' end
Maintainers
This cookbook is maintained by Chef's Community Cookbook Engineering team along with the following maintainers:
- Joshua Timberman joshua@chef.io
The goal of the Community Cookbook Engineering team is to improve cookbook quality and to aid the community in contributing to cookbooks. To learn more about our team, process, and design goals see our team documentation. To learn more about contributing to cookbooks like this see our contributing documentation, or if you have general questions about this cookbook come chat with us in #cookbok-engineering on the Chef Community Slack
License
Copyright: 2016-2017, 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.
0.33.0 (2017-09-25)
Breaking change
This version is a compatibility change. All users of this cookbook must upgrade the cookbook to use current versions of Habitat.
- Fix to account for habitat-sh/habitat#3239 - do not provide
/v1/depotto Depot URL. - Pin the version of this cookbook along with the version of Habitat we install. This should match minor, but not necessarily patch versions.
0.28.0 (2017-09-19)
- Add channel support to sup load/start
0.27.0 (2017-09-11)
- Add hab_version and hab_channel to the sup service
- Support multiple binds with hab_service
0.26.1 (2017-07-21)
-
hab_packagenow properly selects latest version from the specified channel.
0.26.0 (2017-07-17)
Breaking Changes
This cookbook was updated to be compatible with the changes made in Habitat 0.26. With these updates the cookbook now requires Habitat 0.26 or later. The version has been updated to match that of habitat. In the event of future breaking habitat changes the version of this cookbook will be updated to reflect the new minimum habitat release.
- The cookbook now correctly parses the process status returned by the hab sup services endpoint
- Packages now pull from the 'stable' channel by default. If you need to pull from another channel there is a new 'channel' property in the package resource that accepts a string.
Other Changes
- Resolves deprecation warnings introduced in Chef 13.2
- Removed references in the readme to Chefstyle and simplified some of the requirements information
- Added maintainer information to the readme and removed the maintainers file
v0.4.0 (2017-04-26)
- Backwards incompatible version, requires habitat 0.20 or higher
- Add
hab_supresource for managing Habitat supervisor. See readme for usage. - Rewrite
hab_serviceresource to manage services in Habitat supervisor
v0.3.0 (2017-02-21)
- Add property for ExecStart options. See readme for usage
- Add property for depot_url. See readme for usage
- Added restart action to the resource
v0.2.0 (2016-11-30)
- Added
versionandchannelproperties to install resource - Added
depot_urlproperty 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_serviceresource - make the
hab_packageresource convergent - add chefspec and inspec tests
- better documentation through README updates
v0.0.3 (2016-07-14)
- Initial release, includes
hab_packageandhab_installresources
Collaborator Number Metric
0.34.0 passed this metric
Contributing File Metric
0.34.0 passed this metric
Foodcritic Metric
0.34.0 passed this metric
License Metric
0.34.0 passed this metric
No Binaries Metric
0.34.0 passed this metric
Testing File Metric
0.34.0 passed this metric
Version Tag Metric
0.34.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
0.34.0 passed this metric
0.34.0 passed this metric
Foodcritic Metric
0.34.0 passed this metric
License Metric
0.34.0 passed this metric
No Binaries Metric
0.34.0 passed this metric
Testing File Metric
0.34.0 passed this metric
Version Tag Metric
0.34.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
0.34.0 passed this metric
0.34.0 passed this metric
No Binaries Metric
0.34.0 passed this metric
Testing File Metric
0.34.0 passed this metric
Version Tag Metric
0.34.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
0.34.0 passed this metric
0.34.0 passed this metric
Version Tag Metric
0.34.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
0.34.0 failed this metric