Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Habitat-Based Native RPM Installer #14605

Closed
wants to merge 1 commit into from
Closed

Conversation

sajjaphani
Copy link
Collaborator

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

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Chore (non-breaking change that does not add functionality or fix an issue)

Checklist:

  • I have read the CONTRIBUTING document.
  • I have run the pre-merge tests locally and they pass.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • If Gemfile.lock has changed, I have used --conservative to do it and included the full output in the Description above.
  • All new and existing tests passed.
  • All commits have been signed-off for the Developer Certificate of Origin.

Signed-off-by: Phani Sajja <psajja@progress.com>
Copy link

@sajjaphani sajjaphani changed the title script to prepare rpm Habitat-Based Native RPM Installer Sep 12, 2024
#

# Create wrapper binaries into /hab/chef directory
mkdir -p /hab/chef/bin
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we want to put these in /opt/chef or wherever they exist today.

@sean-simmons-progress
Copy link
Contributor

Are we wanting to sign the RPM file using the the chefs keys?

ie: how we do this here:

package :rpm do
signing_passphrase ENV["OMNIBUS_RPM_SIGNING_PASSPHRASE"]
compression_level 1
compression_type :xz
end

@rahulgoel1 rahulgoel1 closed this Jan 27, 2025
@rahulgoel1
Copy link
Collaborator

No longer needed.

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.

4 participants