cookbook 'habitat', '= 2.2.1'
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
2.2.1
-
-
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', '= 2.2.1', :supermarket
knife supermarket install habitat
knife supermarket download habitat
Habitat Cookbook
Description
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
TODOS
- [ ] Remove reliance on
toml-rb
gem.
License Note
Habitat requires acceptance of a license before any habitat commands can be run. To accept the Habitat license using this cookbook, the license
parameter can be set to accept
for either the hab_install
or hab_sup
resources as shown in the below examples:
hab_install 'install habitat' do license 'accept' end
hab_sup 'default' do license 'accept' end
PLEASE NOTE: Without performing one of the above license acceptance steps, all other resources in the habitat cookbook will fail with an error prompting that the license must be accepted.
Requirements
Platforms
- RHEL 6+
- Ubuntu 16.04+
- Debian 9+
- Windows 2016+
Habitat
- Habitat version: 1.5.86
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.20.3+
Cookbooks
- None
Resources
hab_install
Installs Habitat on the system using the install script.
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,C:/habitat/hab.exe
on Windows) -
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) -
create_user
: Creates thehab
system user (defaults totrue
) -
tmp_dir
: Sets TMPDIR environment variable for location to place temp files. (required if/tmp
and/var/tmp
are mountednoexec
) -
license
: Specifies acceptance of habitat license when set toaccept
(defaults to empty string). -
hab_version
: Specify the version ofHabitat
you would like to install (defaults to latest)
Examples
# Nameless Installation hab_install # Instalaltion specifying a bldr URL hab_install 'install habitat' do bldr_url 'http://localhost' end # Installtation specifying version and bldr URL hab_install 'install habitat' do bldr_url 'http://localhost' hab_version '1.5.50' end
hab_package
Install the specified Habitat package from builder. Requires that Habitat is installed
actions
-
install
: installs the specified package -
upgrade
: installs the specified package. If a newer version is available in the configured channel, upgrades to that version -
remove
: Will remove packages no longer wanted.
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
-
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
) -
auth_token
: Auth token for installing a package from a private organization on builder -
binlink
: If habitat should attempt to binlink the package. Acceptable values:true
,false
,:force
. Will faill on binlinking if set totrue
and binary or binlink exists. -
options
: Pass any additional parameters to the habitat install command. -
keep_latest
: Ability to uninstall while retaining a specified version (Default is not set.This feature only works in Habitat 1.5.86+
) -
no_deps
: Remove package but retain dependencies (Default isfalse
)
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_package 'core/nginx' do binlink :force end hab_package 'core/nginx' do options '--binlink' end # Remove all hab_package 'core/nginx' action :remove end # Remove specified hab_package 'core/nginx/3.2.3' action :remove end # Remove but retain some versions (only available as of Habitat 1.5.86) hab_package 'core/nginx' keep_latest '2' action :remove end # Renove but keep dependencies hab_package 'core/nginx' no_deps false action :remove 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.
Note: Applications may run as a specific user. Often with Habitat, the default is hab
, or root
. If the application requires another user, then it should be created with Chef's user
resource.
Actions
-
:load
: (default action) runshab service load
to load and start the specified application service -
:unload
: runshab service unload
to unload and stop the specified application service -
:reload
: runs the:unload
and then:load
actions -
:start
: runshab service start
to start the specified application service -
:stop
: runshab service stop
to stop the specified application service -
:restart
: runs the:stop
and then:start
actions
Properties
The remote_sup property is valid for all actions.
-
remote_sup
: Address to a remote Supervisor's Control Gateway [default: 127.0.0.1:9632] -
remote_sup_http
: Address for remote supervisor http port. Used to pull existing configuration data. If this is invalid, config will be applied on every Chef run. -
gateway_auth_token
: Auth token for accessing the remote supervisor's http port.
The follow properties are valid for the load
action.
-
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 -
strategy
: Passes--strategy
with the specified update strategy to the hab command. Defaults to:none
. Other options are:'at-once'
and:rolling
-
update_condition
: Passes--update-condition
dictating when this service should updated. Defaults tolatest
. Options arelatest
ortrack-channel
Note: This requires a minimum habitat version of 1.5.71-
latest
: Runs the latest package that can be found in the configured channel and local packages. -
track-channel
: Always run what is at the head of a given channel. This enables service rollback where demoting a package from a channel will cause the package to rollback to an older version of the package. A ramification of enabling this condition is packages newer than the package at the head of the channel will be automatically uninstalled during a service rollback.
-
-
topology
: Passes--topology
with the specified service topology to the hab command -
bldr_url
: Passes--url
with the specified Builder URL to the hab command. Depending on the type of Builder you are connecting to, this URL will look different, here are the 3 current types:- Public Builder (default) -
https://bldr.habitat.sh
- On-Prem Builder installed using the Source Install Method -
https://your.bldr.url
- On-Prem Builder installed using the Automate Installer -
https://your.bldr.url/bldr/v1
- Public Builder (default) -
-
channel
: Passes--channel
with the specified channel to the hab command -
bind
: Passes--bind
with the specified services to bind to the hab command. If an array of multiple service binds are specified then a--bind
flag is added for each. -
binding_mode
: Passes--binding-mode
with the specified binding mode. Defaults to:strict
. Options are:strict
or:relaxed
-
service_group
: Passes--group
with the specified service group 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 # Using update_condition hab_service 'core/redis' do strategy 'rolling' update_condition 'track-channel' topology 'standalone' end
If the service has it's own user specified that is not the hab
user, don't create the hab
user on install, and instead create the application user with Chef's user
resource
hab_install 'install habitat' do create_user false end user 'acme-apps' do system true end hab_service 'acme/apps'
hab_sup
Runs a Habitat Supervisor for one or more Habitat Services. 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 appropriate versions of the core/hab-sup
and core/hab-launcher
packages are installed using hab_package
, and then drops off the appropriate init system definitions and manages the service.
All event_stream_*
properties are optional, and allow the Habitat Supervisor to display details about it's status and running services via the Chef Automate Applications Dashboard.
Note: Automate has TLS on by default. You will need to follow these instructions to make sure habitat has the proper certificates for `event_stram_` Share the TLS Certificate with Chef Habitat*
Actions
-
run
: starts thehab-sup
service
Properties
-
bldr_url
: The Builder URL for thehab_package
resource, if needed -
permanent_peer
: Only valid for:run
action, passes--permanent-peer
to the hab command -
listen_ctl
: Only valid for:run
action, passes--listen-ctl
with the specified address and port, e.g.,0.0.0.0:9632
, to the hab command -
listen_gossip
: Only valid for:run
action, passes--listen-gossip
with the specified address and port, e.g.,0.0.0.0:9638
, to the hab command -
listen_http
: Only valid for:run
action, passes--listen-http
with the specified address and port, e.g.,0.0.0.0:9631
, to the hab command -
org
: Only valid for:run
action, passes--org
with the specified org name to the hab command -
peer
: Only valid for:run
action, passes--peer
with the specified initial peer to the hab command -
ring
: Only valid for:run
action, passes--ring
with the specified ring key name to the hab command -
auto_update
: Passes--auto-update
. This will set the Habitat supervisor to automatically update itself any time a stable version has been released -
update_condition
: Passes--update-condition
dictating when this service should updated. Defaults tolatest
. Options arelatest
ortrack-channel
Note: This requires a minimum habitat version of 1.5.71-
latest
: Runs the latest package that can be found in the configured channel and local packages. -
track-channel
: Always run what is at the head of a given channel. This enables service rollback where demoting a package from a channel will cause the package to rollback to an older version of the package. A ramification of enabling this condition is packages newer than the package at the head of the channel will be automatically uninstalled during a service rollback.
-
-
hab_channel
: The channel to install Habitat from. Defaults to stable -
auth_token
: Auth token for accessing a private organization on bldr. This value is templated into the appropriate service file. -
gateway_auth_token
: Auth token for accessing the supervisor's HTTP gateway. This value is templated into the appropriate service file. -
license
: Specifies acceptance of habitat license when set toaccept
(defaults to empty string). -
health_check_interval
: The interval (seconds) on which to run health checks (defaults to 30). -
event_stream_application
: The name of your application that will be displayed in the Chef Automate Applications Dashboard -
event_stream_environment
: The application environment for the supervisor, this is for grouping in the Applications Dashboard -
event_stream_site
: Application Dashboard label for the "site" of the application - can be filtered in the dashboard -
event_stream_url
:AUTOMATE_HOSTNAME:4222
- the Chef Automate URL with port 4222 specified (can be changed if needed) -
event_stream_token
: Chef Automate token for sending application event stream data -
event_stream_certificate
: WithIntermediary Certificates
or, Automate 2 being set to use TLS with a valid cert, you will need to provideHabitat
with your certificate for communication with Automate to work. Follow these steps! -
sup_verstion
: Allows you to choose which version of supervisor you would like to install. Defaults tolatest
. (If a version is provided, it will also install that version of habitat if not previously installed) -
launcher_version
: Allows you to choose which version of launcher to install. Defaults tolatest
-
service_version
: Allows you to choose which version of the Windows Service to install. Defaults tolatest
-
keep_latest
: Automatically cleans up old packages. If this flag is enabled, service startup will initiate an uninstall of all previous versions of the associated package. This also applies when a service is restarted due to an update. If a number is passed to this argument, that number of latest versions will be kept. The same logic applies to the Supervisor packagenv:HAB_KEEP_LATEST_PACKAGES=1
(This requires Habitat version1.5.86+
)
Examples
# set up with just the defaults hab_sup 'default' hab_sup 'test-options' do listen_http '0.0.0.0:9999' listen_gossip '0.0.0.0:9998' end # Use with an on-prem Builder # Access to public builder may not be available hab_sup 'default' do bldr_url 'https://bldr.private.net' end # Using update_condition hab_sup 'default' do bldr_url 'https://bldr.private.net' hab_channel 'dev' update_condition 'track-channel' end # Provide event_stream_* information hab_sup 'default' do license 'accept' event_stream_application 'myapp' event_stream_environment 'production' event_stream_site 'MySite' event_stream_url 'automate.private.net:4222' event_stream_token 'myawesomea2clitoken=' event_stream_certificate '/hab/cache/ssl/mycert.crt' end # Provide specific versions hab_sup 'default' do bldr_url 'https://bldr.private.net' sup_version '1.5.50' launcher_version '13458' service_version '0.6.0' # WINDOWS ONLY end # Set latest version of packages to retain hab_sup 'default' do bldr_url 'https://bldr.private.net' sup_version '1.5.86' launcher_version '13458' service_version '0.6.0' # WINDOWS ONLY keep_latest '2' end
hab_config
Applies a given configuration to a habitat service using hab config apply
.
Actions
-
apply
: (default action) apply the given configuration
Properties
-
service_group
: The service group to apply the configuration to, for example,nginx.default
-
config
: The configuration to apply as a ruby hash, for example,{ worker_count: 2, http: { keepalive_timeout: 120 } }
-
remote_sup
: Address to a remote Supervisor's Control Gateway [default: 127.0.0.1:9632] -
remote_sup_http
: Address for remote supervisor http port. Used to pull existing configuration data. If this is invalid, config will be applied on every Chef run. -
gateway_auth_token
: Auth token for accessing the remote supervisor's http port. -
user
: Name of user key to use for encryption. Passes--user
tohab config apply
Notes
The version number of the configuration is automatically generated and will be the current timestamp in seconds since 1970-01-01 00:00:00 UTC.
Examples
hab_config 'nginx.default' do config({ worker_count: 2, http: { keepalive_timeout: 120 } }) end
hab_user_toml
Templates a user.toml for the specified service. This is written to /hab/user/<service_name>/config/user.toml
. User.toml can be used to set configuration overriding the default.toml for a given package as an alternative to applying service group level configuration.
Actions
-
create
: (default action) Create the user.toml from the specified config. -
delete
: Delete the user.toml
Properties
-
service_name
: The service group to apply the configuration to, for example,nginx.default
-
config
: Only valid for:create
action. The configuration to apply as a ruby hash, for example,{ worker_count: 2, http: { keepalive_timeout: 120 } }
Examples
hab_user_toml 'nginx' do config({ worker_count: 2, http: { keepalive_timeout: 120 } }) end
Maintainers
This cookbook is maintained by the following maintainers:
- Jon Cowie jcowie@chef.io
- Jeff Brimager jbrimager@chef.io
- Collin Mcneese cmcneese@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-2018, 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 Cookbook CHANGELOG
This file is used to list changes made in each version of the habitat cookbook.
Unreleased
2.2.1 (2020-05-28)
- With the new availabilty of an embedded Builder server with A2 we wanted to add the option of using it with this cookbook. As this changes the URL to the api, we needed to alter the resources that use it.
- Had idempotance issues with the install resource. Those are now corrected
Merged Pull Requests
- Automated PR: Standardising Files #242 (xorimabot)
- updating how we handle the bldr_url to accommodate on-prem installed with Automate #241 (danielcbright)
- fixes hab_install guard for resource_hab_sup #239 (collinmcneese)
- correcting all syntax issue #238 (sam1el)
- Automated PR: Cookstyle Changes #237 (xorimabot)
2.1.0 (2020-05-07)
- Integrated Toml functions as a helper library to remove external gem dependencies. This will also make airgap usage easier
Merged Pull Requests
2.0.5 (2020-04-30)
- There was an issue where the windows service was not correctly setting the launcher version in the service condig. This cause a broken install and/or update when unpinning your version. We have corrected this issue and all version changes are now populating as expected.
Merged Pull Requests
- Fix for windows-launcher config (#234)
2.0.4 (2020-04-29)
- Correcting merge conflict issues which broke the cookbook at compile time
2.0.3 (2020-04-28)
- correcting windows launcher path issue which caused the windows service to no longer start.
Merged Pull Requests
- correcting launcher path issue (#13) - @sam1el
2.0.2 (2020-04-08)
- Able to unintall packages using the
hab_package
resource. This includes the--no-deps
and the--keep-latest
. Keep latest is only available on habitat 1.5.86+ - Able to select the version of habitat installed as wells as, supervisor, launcher and, windows-servcie
- All current
--event-stream
functions are now available to habitat versions 1.5.86 and up for thehab_sup
resource -
windows-service
Can now be configured properly with--event-stream
as well has yourHAB_AUTH_TOKEN
HAB_BLDR_URL
and,HAB_AUTH_GATEWAY_TOKEN
**See README.MD for usage of all new functions*
Merged Pull Requests
- Automated PR: Standardising Files #229 (xorimabot)
- Overhaul to testing and cookbook resources #228
- Automated PR: Standardising Files #226 (xorimabot)
- Automated PR: Cookstyle Changes #225 (xorimabot)
- resolved cookstyle error: libraries/provider_hab_package.rb:174:13 convention:
Style/RedundantReturn
- resolved cookstyle error: libraries/provider_hab_package.rb:176:13 convention:
Style/RedundantReturn
1.7.0 (2020-04-08)
- adds windows Github Actions testing for issue #193 #224 (collinmcneese)
- changing the windows service cofig to better reflect newer functional… #223 (sam1el)
- removing update-confition defaults and tests #221 (sam1el)
- Added optional settings for Windows service to recongize local or provided envoringment variables including
- HAB_AUTH_TOKEN
- HAB_GATEWAY_AUTH_TOKEN
- HAB_BLDR_URL
1.6.2 (2020-04-07)
Merged Pull Requests
- changing the windows service cofig to better reflect newer functional… #223 (sam1el)
- removing update-confition defaults and tests #221 (sam1el)
1.6.0 (2020-04-02)
Merged Pull Requests - complete overhaul of the windows-service config to refplect current best practice
- adding --update-condition funtionality that was added in habitat 1.5.71 #217 (sam1el)
- added --update-condition funtionality that was added in habitat 1.5.71. See README.MD for info on usage
- complete overhaul of the windows-service config to refplect current best practice
1.5.10 (2020-04-01)
Merged Pull Requests
1.5.9 (2020-03-30)
Merged Pull Requests
- updates to be backwards compatible with 12.20.3+ #214 (collinmcneese)
1.5.8 (2020-03-09)
Merged Pull Requests
1.5.7 (2020-03-06)
- Hab version bumped to 1.5.50
Merged Pull Requests
1.5.6 (2020-03-02)
- Cookstyle fixes - @Xorima
- opensuse requires gzip to be installer for hab install script - @Xorima
- fix readme - @Xorima
- updated hab sup resource to include new Application Dashboard options (#206) - @danielcbright
Merged Pull Requests
- Delete Merged Branches #209 (Xorima)
- Use Github actions badge in the readme #208 (Xorima)
- Migrate testing to Github Actions and add support for installing on SUSE #207 (Xorima)
1.5.5 (2020-02-26)
Merged Pull Requests
1.5.4 (2020-02-25)
Merged Pull Requests
1.5.3 (2020-02-24)
- Fix linux installer issues
Merged Pull Requests
1.5.2 (2020-02-20)
- Fix windows habitat install
Merged Pull Requests
- [BUG FIX] Windows install to correct issue #199 #202 (sam1el)
- Additional cookstyle fixes #189 (tas50)
1.5.1 (2020-01-31)
- Fix windows package download URL to use packages.chef.io
Merged Pull Requests
1.5.0 (2020-01-29)
- Update cookbook to Habitat 1.5.0
- Fix habitat installs on Windows when using installation archives
Merged Pull Requests
- WIP: Update to hab 1.5 and update launchers and windows-service pins #195 (jonlives)
- Fix Habitat install on windows #194 (emachnic)
0.88.2 (2020-01-24)
- Add support for supervisor HTTP gateway auth token
- Service Properties, Reload/Restart Fixes, Idempotence Improvements
Merged Pull Requests
- Service Properties, Reload/Restart Fixes, Idempotence Improvements #187 (sirajrauff)
- Add option for Supervisor HTTP gateway authentication token #186 (rarenerd)
0.88.1 (2019-11-25)
- Cookstyle 5.10 fixes
- Fixes to properly support loading of services using full ident
Merged Pull Requests
- Feature/service full ident fix #185 (sirajrauff)
- Cookstyle 5.10 fixes #183 (tas50)
0.88.0 (2019-10-24)
- Update to hab 0.88.0
- Enable setting of open file limits for hab sup systemd unit file
- Update windows hab-launcher version
Merged Pull Requests
- Update to habitat 0.88.0 #182 (chef-expeditor[bot])
- allow setting open file limit on the hab sup systemd unit file #181 (devoptimist)
- updating the hab-launcher version to match the dependencies of window… #179 (devoptimist)
0.83.0 (2019-07-30)
- Update to hab 0.83.0
- Support hab_config resource under Chef 13
- Fix license acceptance behaviour under Windows
- Support added for health check interval parameter
Merged Pull Requests
- Update to habitat 0.83.0 #177 (chef-ci)
- Add health check interval option to hab_sup resource #176 (gscho)
- Support config apply for chef 13 #175 (gscho)
- Fix license accept for windows #174 (gscho)
- Add missing end quotes in the README example #172 (teknofire)
0.81.0 (2019-05-29)
- Update to hab 0.81.0
- Implement new habitat license agreement requirements for
hab_install
andhab_sup
resources
Merged Pull Requests
- WIP: Update to hab 0.81.0 (#171)
0.81.0 (2019-05-29)
Merged Pull Requests
0.79.1 (2019-04-26)
- Update to habitat 0.79.1
Merged Pull Requests
0.78.0 (2019-04-02)
- Update to habitat 0.78.0
- Improve service name matching to include version
Merged Pull Requests
0.75.0 (2019-02-22)
-Update to habitat 0.75.0
Merged Pull Requests
0.74.0 (2019-02-14)
- Update to habitat 0.74.0
0.73.1 (2019-01-30)
- remove duplicate windows query param
Merged Pull Requests
0.73.0 (2019-01-25)
- Update Hab to 0.73.0 and launcher to 9167
- Add binlinking support to hab_package resource
- Support target architectures correctly in API queries
- Improved Windows support
Merged Pull Requests
- Update hab to 0.73.0 and launcher to 9167 #154 (jonlives)
- Install hab-sup from stable release #153 (jonlives)
- Full Windows Support For Cookbook #143 (wduncanfraser)
- Add binlink property to hab_package resource. Closes #138 #139 (qubitrenegade)
- fix incorrect documentation for hab_package action #142 (st-h)
- Support targets for API query #152 (skylerto)
0.67.0 (2018-11-01)
- Update README with accurate maintainer info
- bug fixes for windows on newer chef versions and path seperators
- Update to habitat 0.67.0 (#146)
0.63.0 (2018-09-18)
- Update to habitat 0.63.0
0.62.1 (2018-09-07)
- Update hab version to 0.62.1 and pin supervisor version to 8380
- Refactor cookbook resources for 0.62.1 compatibility
- Add user_toml resource
- Add remote supervisor support
- Add multiple peer support
- Add auth token support to package resource
- Add basic support for Windows
Merged Pull Requests
- Refactor hab_service resource #124 (wduncanfraser)
- Update to 0.62.1 and launcher 8380 #129 (jonlives)
- Added auth token support to package resource #125 (wduncanfraser)
- Updated Supervisor Resource for 0.56 and to Support Auth Token #123 (wduncanfraser)
- Added user-toml resource #121 (wduncanfraser)
- Change expeditor notification channel #128 (mivok)
- adding supervisor and service multiple peering support #101 (jkerry)
- Basic support for windows platform #89 (skylerto)
- Allow any channel in a service #120 (jsirex)
- fix hashbang in expeditor update script #118 (joshbrand)
0.59.0 (2018-07-17)
- Update README to reflect new version of Hab
- address chef 14.3.x shell_out deprecations
- fix shell_out_compact deprecation
- move to after tempfile creation
- Update CHANGELOG.md with details from pull request #111
- Use the new kitchen config file names
- Cookstyle fixes
Merged Pull Requests
- address chef 14.3.x shell_out deprecations #111 (lamont-granquist)
0.57.0 (2018-06-19)
- Fix #103
- Add @jonlives as a maintainer
- Source helper functions script
Merged Pull Requests
- Source helper functions script #105 (jtimberman)
- Fix #103 and remove options from svc start #104 (jonlives)
0.56.1 (2018-06-06)
- Support passing TMPDIR attribute to Habitat install.sh script. Addresses Issue #90
- Add: bldr_url property for hab_sup
- Fix hab_svc when using custom ip:port for supervisor
- Include toml in the bundle
- Update CHANGELOG.md with details from pull request #96
Merged Pull Requests
- Fix hab_svc when using custom ip:port for supervisor #96 (JonathanTron)
- Add: bldr_url property for hab_sup #93 (Atalanta)
- Support passing TMPDIR attribute to Habitat install.sh script. #90 #91 (qubitrenegade)
- Include toml in the bundle #100 (jtimberman)
0.56.0 (2018-06-05)
- Update for 0.56.0
- Cookstyle fix
- Disable FC113 for now
- Update the platforms we test
- Update CHANGELOG.md with details from pull request #97
0.55.0 (2018-03-22)
- Adding ability to use local repos
- Add expeditor configuration
- update for 0.55.0
0.54.0 (2018-02-22)
- Add auto_update property to hab_sup resource.
- update for 0.54.0 release
0.53.0 (2018-02-07)
- Set supervisor service to enable
- Remove the legacy version property
- Update copyrights and format
- Test on the latest Fedora
- Remove the suite from dokken.
- Move installation into config and package
- Use a non-deprecated Fauxhai mock
- Remove author info from the test recipe
- Remove the install test recipe
- Remove the ChefSpec matchers
- Make sure package and curl are installed in the install resource
- Add Debian 7+ to the readme as supported
- Allow nameless hab_install resource
- Turns out we don't even need to install before installing the sup
- Update the hab_install readme examples
- update to habitat 0.53.0
0.52.0 (2018-01-23)
- Remove Debian 7 testing
- Remove stove gem that's in ChefDK now
- Align Chef in readme with Chef in metadata
- Format readme markdown
- Remove implementation detail
- Actions are symbols so document them that way
- Remove reference to old Hab since we require the latest now
- update to habitat 0.52.0
0.51.0 (2018-01-08)
- Update for Habitat version 0.51.0
0.50.3 (2017-12-04)
- Update for Habitat version 0.50.3
0.40.0 (2017-11-30)
- Update for Habitat version 0.40.0
0.39.2 (2017-11-28)
- Add Supervisor service support for non-Systemd platforms
Development environment/CI changes:
- need to install toml gem for travis
- Ignore failure when installing from acceptance
0.39.1 (2017-11-27)
- update for 0.39.1
- fix rubocop findings too
0.39.0 (2017-11-17)
- Install version 0.39.0
- Defer running check to a predicate method in service resource
0.38.0 (2017-10-30)
- update version to install for habitat 0.38.0
0.37.1 (2017-10-26)
- create user in
hab_install
0.37.0 (2017-10-19)
- update for habitat 0.37.0 release
0.36.0 (2017-10-09)
- Simplify
Chef::Provider::Package::Hart#current_versions
. - honor options from package provider
- update for habitat 0.36.0
0.34.3 (2017-10-06)
- Clarify in the README about action-specific properties
0.34.2 (2017-10-06)
- Add
hab_config
resource - Add
toml
gem to metadata for older versions of Chef that don't have it - Require Chef 12.20.3 or higher to make use of helper methods and classes in newer versions of Chef
0.34.1 (2017-10-04)
- Add
version_compare
method to work with latest Chef
0.34.0 (2017-10-03)
- Update
hab_install
to Habitat version 0.34.1
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/depot
to 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_package
now 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_sup
resource for managing Habitat supervisor. See readme for usage. - Rewrite
hab_service
resource 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
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
2.2.1 passed this metric
Contributing File Metric
2.2.1 passed this metric
Foodcritic Metric
2.2.1 failed this metric
FC009: Resource attribute not recognised: habitat/resources/service.rb:341
FC108: Resource should not define a property named 'name': habitat/resources/install.rb:24
Run with Foodcritic Version 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
2.2.1 passed this metric
Testing File Metric
2.2.1 passed this metric
Version Tag Metric
2.2.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
2.2.1 passed this metric
2.2.1 passed this metric
Foodcritic Metric
2.2.1 failed this metric
FC009: Resource attribute not recognised: habitat/resources/service.rb:341
FC108: Resource should not define a property named 'name': habitat/resources/install.rb:24
Run with Foodcritic Version 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
2.2.1 passed this metric
Testing File Metric
2.2.1 passed this metric
Version Tag Metric
2.2.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
2.2.1 failed this metric
FC108: Resource should not define a property named 'name': habitat/resources/install.rb:24
Run with Foodcritic Version 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
2.2.1 passed this metric
Testing File Metric
2.2.1 passed this metric
Version Tag Metric
2.2.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
2.2.1 passed this metric
2.2.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