Skip to content

feat: distinguish between omnibus and habitat based products - #430

Draft
Stromweld wants to merge 10 commits into
add-chef-workstation-enterprisefrom
habitat-product-support
Draft

feat: distinguish between omnibus and habitat based products#430
Stromweld wants to merge 10 commits into
add-chef-workstation-enterprisefrom
habitat-product-support

Conversation

@Stromweld

Copy link
Copy Markdown
Collaborator

Summary

Adds first-class support for habitat-based products alongside omnibus products. Introduces a distribution_type DSL property and metadata-driven path selection in ScriptGenerator.

Changes

lib/mixlib/install/product.rb

  • New DSL properties: distribution_type, hab_origin, hab_builder_url, hab_package_name
  • Defaults: distribution_type"omnibus", hab_origin"chef", hab_builder_url"https://bldr.habitat.sh", hab_package_namepackage_name
  • New methods: habitat?, omnibus?, hab_package_url
  • install_path branches on distribution_type

lib/mixlib/install/product_matrix.rb

  • chef-ice, chef-workstation-enterprise, inspec-enterprise: distribution_type 'habitat' + hab_package_name

lib/mixlib/install/script_generator.rb

  • Replaced hardcoded chef-ice habitat path block with metadata-driven PRODUCT_MATRIX.lookup(@project)&.habitat? guard

Specs

  • New tests for all new DSL properties, habitat?/omnibus? predicates, install_path branching, hab_package_url
  • Matrix spec asserts habitat metadata on all 3 enterprise products
  • Script generator spec tests metadata-driven paths

Testing

bundle exec rspec spec/unit/ — 596 examples, 4 pre-existing failures (unrelated to this change)


Created with AI assistance: Hermes Agent using claude-sonnet-4.6

@Stromweld
Stromweld requested review from a team and jaymzh as code owners July 14, 2026 00:57
@Stromweld
Stromweld force-pushed the add-chef-workstation-enterprise branch from 32fda44 to 8a7ffcd Compare July 14, 2026 01:09
Signed-off-by: Corey Hemminger <hemminger@hotmail.com>
@Stromweld
Stromweld force-pushed the habitat-product-support branch from efe3c5b to d73bee4 Compare July 14, 2026 01:10
@Stromweld Stromweld self-assigned this Jul 14, 2026
Signed-off-by: Corey Hemminger <hemminger@hotmail.com>
Signed-off-by: Corey Hemminger <hemminger@hotmail.com>
@tpowell-progress
tpowell-progress force-pushed the add-chef-workstation-enterprise branch from e16ea42 to 5430a80 Compare July 14, 2026 20:15
@tpowell-progress
tpowell-progress force-pushed the add-chef-workstation-enterprise branch from 5430a80 to fd57bf3 Compare July 14, 2026 20:17
Signed-off-by: Corey Hemminger <hemminger@hotmail.com>
…tadata lookup

Signed-off-by: Corey Hemminger <hemminger@hotmail.com>
@Stromweld
Stromweld force-pushed the habitat-product-support branch from 591ee89 to 9b5a7c7 Compare July 14, 2026 23:08
Signed-off-by: Corey Hemminger <hemminger@hotmail.com>
@Stromweld
Stromweld marked this pull request as draft July 24, 2026 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants