Habitat-Based Native RPM Installer #14605
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR is to open up a discussion about building a Habitat-based native installer for the Chef Infra Client.
Note: The script used to build the RPM in this PR downloads and builds the RPM for the specified version/release. The Habitat package for Chef Infra Client is built and uploaded by the
habitat-buildkite-plugin
. We need to modify this script to capture the Habitat artifact for the Chef Infra Client that is built and uploaded, and then prepare the RPM from that artifact.Description
Before you proceed, ensure that the environment is set up using Amazon Linux 2023, and run the commands below to configure it
Install RPM Development Tools
sudo dnf install -y rpmdevtools rpmlint
Install Chef Habitat
curl https://raw.githubusercontent.com/habitat-sh/habitat/main/components/hab/install.sh | sudo bash
Run the command below to prepare the RPM:
./.expeditor/scripts/build-infra-rpm.sh 19.0.15 20240903214207
You can choose a different version/release from the Habitat Builder (https://bldr.habitat.sh/#/pkgs/chef/chef-infra-client/latest).
Install the RPM using the following command:
sudo dnf install chef-19.0.15~20240903214207-1.amzn2023.x86_64.rpm
Check the Chef Infra Client version using the following command
chef-client --version
Related Issue
https://chefio.atlassian.net/browse/CHEF-15073
Types of changes
Checklist:
Gemfile.lock
has changed, I have used--conservative
to do it and included the full output in the Description above.