Skip to content

backport #14868 for Chef 18#15091

Merged
tpowell-progress merged 2 commits intochef:chef-18from
fretb:chef-18-package-environment-properties
Jul 15, 2025
Merged

backport #14868 for Chef 18#15091
tpowell-progress merged 2 commits intochef:chef-18from
fretb:chef-18-package-environment-properties

Conversation

@fretb
Copy link
Copy Markdown
Contributor

@fretb fretb commented Jul 9, 2025

Description

#14868 backport

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.

@fretb fretb requested review from a team as code owners July 9, 2025 07:37
@github-actions github-actions bot added the documentation How do we use this project? label Jul 9, 2025
@fretb fretb force-pushed the chef-18-package-environment-properties branch from 8f68f13 to 70543d8 Compare July 9, 2025 07:54
kristofvandam and others added 2 commits July 15, 2025 16:55
…ge (chef#14868)

Some packages don't use preseeds but they alter the installation by
providing environment variables, percona for example expects a
`PERCONA_TELEMETRY_DISABLE=1` to disable the at-install time telemetry.

This commit adds the functionality to add an environment hash that is
passed to `shell_out!()`.

A resource with this property could look like something like this:

```ruby
apt_package "percona-xtradb-cluster-server" do
  environemnt({"PERCONA_TELEMETRY_DISABLE" => "1"})
end
```

[percona installation-time telemetry](https://docs.percona.com/percona-server/8.0/telemetry.html#installation-time-telemetry)

Signed-off-by: Kristof Vandam <kristof.vandam@gmail.com>
Signed-off-by: Frederik Thuysbaert <frederik.thuysbaert@combell.group>
@fretb fretb force-pushed the chef-18-package-environment-properties branch from 70543d8 to a54dabf Compare July 15, 2025 14:55
@sonarqubecloud
Copy link
Copy Markdown

@tpowell-progress tpowell-progress merged commit a562a66 into chef:chef-18 Jul 15, 2025
55 checks passed
@jaymzh jaymzh mentioned this pull request Oct 14, 2025
@jaymzh jaymzh mentioned this pull request Mar 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants