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

Add transport for FreeBSD jails #3170

Merged
merged 2 commits into from
Mar 9, 2023
Merged

Conversation

smortex
Copy link
Contributor

@smortex smortex commented Dec 10, 2022

FreeBSD has support for jails since FreeBSD 4.0 (released in 2000).

Add a new 'jail' transport to Bolt to allow management of jails on FreeBSD.

Also add integration tests for jail transport. This require a jail named bolt where python3.9 is installed.

While here, use /bin/sh when only a basic shell is required and avoid depending on bash or "bashisms" (code that is not portable and only works in bash) for the code used for FreeBSD jails.

@smortex smortex requested a review from a team as a code owner December 10, 2022 02:20
smortex added a commit to smortex/bolt that referenced this pull request Dec 10, 2022
!feature

* **Add transport for FreeBSD jails** ([puppetlabs#3160](puppetlabs#3170))

FreeBSD has support for jails since FreeBSD 4.0 (released in 2000).

Add a new 'jail' transport to Bolt to allow management of jails on
FreeBSD.
@smortex smortex force-pushed the jail-transport branch 3 times, most recently from ec11acb to 50619e7 Compare December 10, 2022 03:18
smortex added a commit to smortex/bolt that referenced this pull request Dec 16, 2022
!feature

* **Add transport for FreeBSD jails** ([puppetlabs#3160](puppetlabs#3170))

FreeBSD has support for jails since FreeBSD 4.0 (released in 2000).

Add a new 'jail' transport to Bolt to allow management of jails on
FreeBSD.
@smortex smortex mentioned this pull request Jan 23, 2023
smortex added a commit to smortex/bolt that referenced this pull request Jan 23, 2023
!feature

* **Add transport for FreeBSD jails** ([puppetlabs#3160](puppetlabs#3170))

FreeBSD has support for jails since FreeBSD 4.0 (released in 2000).

Add a new 'jail' transport to Bolt to allow management of jails on
FreeBSD.
smortex added a commit to smortex/bolt that referenced this pull request Jan 30, 2023
!feature

* **Add transport for FreeBSD jails** ([puppetlabs#3160](puppetlabs#3170))

FreeBSD has support for jails since FreeBSD 4.0 (released in 2000).

Add a new 'jail' transport to Bolt to allow management of jails on
FreeBSD.
@smortex smortex force-pushed the jail-transport branch 3 times, most recently from 8de7efe to 06b7c3c Compare January 30, 2023 23:15
@smortex
Copy link
Contributor Author

smortex commented Jan 31, 2023

Now that the CI is fixed, I rebased on top of the main branch and added a commit to fix the relevant CI failures (you can't run acceptance tests on a non-FreeBSD node). This is now ready for review, thanks!

Copy link
Member

@donoghuc donoghuc left a comment

Choose a reason for hiding this comment

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

I think the code looks good. Can we start this transport off as an experimental feature (like the podman transport? https://github.com/puppetlabs/bolt/blob/main/documentation/experimental_features.md#podman-support ) I think that would just include a quick description of the transport in experimental_features.md and a note in the commit message that is used to generate the release note c1c7c4e about the feature being experimental.

smortex added a commit to smortex/bolt that referenced this pull request Mar 1, 2023
!feature

* **Add transport for FreeBSD jails** ([puppetlabs#3160](puppetlabs#3170))

FreeBSD has support for jails since FreeBSD 4.0 (released in 2000).

Add a new 'jail' transport to Bolt to allow management of jails on
FreeBSD.  This feature is currently considered experimental.
@smortex
Copy link
Contributor Author

smortex commented Mar 1, 2023

Nice! I added a section to the doc, this allowed me to spot that I should remove service-url from the config 😉

Because I had to amend my old commit, I rebased on top of master and squashed the fixes to their respective commit.

@donoghuc
Copy link
Member

donoghuc commented Mar 2, 2023

Thanks, trying to fix up that modules test in #3194 . it is unrelated to your PR.

@smortex
Copy link
Contributor Author

smortex commented Mar 2, 2023

💯 I am keeping on this PR and will rebase on top of it when it is ready! Thanks!

!feature

* **Add transport for FreeBSD jails** ([puppetlabs#3160](puppetlabs#3170))

FreeBSD has support for jails since FreeBSD 4.0 (released in 2000).

Add a new 'jail' transport to Bolt to allow management of jails on
FreeBSD.  This feature is currently considered experimental.
This require a jail named `bolt` where python3.9 is installed.
@smortex smortex marked this pull request as draft March 2, 2023 01:18
@smortex
Copy link
Contributor Author

smortex commented Mar 2, 2023

Looks good! For the sake of safety, I switched the PR to draft because I did some changes that should not change anything, but I have no access to my FreeBSD work station ATM to be 100% sure I did not messed something while doing it.

@smortex smortex marked this pull request as ready for review March 2, 2023 05:57
@smortex
Copy link
Contributor Author

smortex commented Mar 2, 2023

I just checked that the inventory sample using a structure I am not used to and I copied from another example is working as expected (it is 😉)! Ready for final reviews!

@donoghuc
Copy link
Member

donoghuc commented Mar 2, 2023

Thanks! We are having some infra issues currently that is preventing me from getting this merged and released. We are working through that and I will merge this ASAP.

@donoghuc donoghuc merged commit 7849862 into puppetlabs:main Mar 9, 2023
@smortex smortex deleted the jail-transport branch March 9, 2023 19:24
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