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

(PA-5786) Add ability to execute direct post installation scripts #825

Merged
merged 1 commit into from
Nov 8, 2023

Conversation

tvpartytonight
Copy link
Contributor

The existing #add_postinstall_action adds actions to the %posttrans section of an rpm spec file. This can mean that the action could fail, but the installation/upgrade could still succeed. This commit adds the ability to add actions that must succeed post installation for rpm installations by adding the action to the %post section.

A previous attempt to add this was done in 93ba1b4; that introduced a bug where the install and upgrade files were incorrectly deleted after the %post step. They needed to remain so that the %posttrans rpm section would detect the install/upgrade via vanagon's

Please add all notable changes to the "Unreleased" section of the CHANGELOG.

The existing `#add_postinstall_action` adds actions to the `%posttrans`
section of an rpm spec file. This can mean that the action could fail,
but the installation/upgrade could still succeed. This commit adds the
ability to add actions that must succeed post installation for rpm
installations by adding the action to the `%post` section.

A previous attempt to add this was done in 93ba1b4; that introduced
a bug where the install and upgrade files were incorrectly deleted
after the %post step. They needed to remain so that the %posttrans
rpm section would detect the install/upgrade via vanagon's
@tvpartytonight tvpartytonight requested review from a team as code owners October 27, 2023 19:33
@tvpartytonight
Copy link
Contributor Author

Should wait until releases are live before merging/releasing this.

@tvpartytonight
Copy link
Contributor Author

@e-gris I think this should be good to merge and release now?

@e-gris
Copy link
Contributor

e-gris commented Nov 8, 2023

Today or tomorrow, just sorting through post-release priorities.

@tvpartytonight tvpartytonight merged commit fcf0bdb into puppetlabs:main Nov 8, 2023
5 checks passed
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