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

Use jexec in order to support base jails #278

Merged
merged 1 commit into from
Feb 14, 2023
Merged

Conversation

mekanix
Copy link
Member

@mekanix mekanix commented Feb 14, 2023

No description provided.

@mekanix mekanix merged commit 5c2ac8c into cbsd:master Feb 14, 2023
@mekanix mekanix deleted the feature/jexec branch February 14, 2023 08:12
Copy link
Member

@olevole olevole left a comment

Choose a reason for hiding this comment

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

Hmm, what is meant by 'support base jails' ?

I mean if there is some problem in 'cbsd jexec' implementation it might be better to fix it there, in upstream.

Because the /usr/sbin/jexec does not take into account:
a) FreeBSD or Linux jail
b) RCTL/NICE settings for jail
c) (it is very important) FIB for jail

all these things are taken into account by 'cbsd jexec'

@mekanix

@olevole
Copy link
Member

olevole commented Feb 14, 2023

@mekanix can you write how to use puppet provider?. Most likely there is quite a lot of dubbing with 'cbsd forms' and puppet-based templates/images, just want to compare

@mekanix
Copy link
Member Author

mekanix commented Feb 14, 2023

I started work on support jail.conf. As it's only the beginning, I can probably do better job with jexec. The idea is to have multiple backends where jail.conf (base jail) and cbsd are currently supported. My guess is that in the future I will need wrapper for jexec that will do the right thing based on the backend.

My plan for puppet and other provisioners is to test them with both backends and see what's the fallout and fix it. I know shell and ansible are working right now, next to test is salt as I use it @ work and then move on to others.

@olevole
Copy link
Member

olevole commented Feb 14, 2023

@mekanix As for Puppet, i will try to make a demo how it works for me.

I tried to describe it in detail here, but I don't think anyone understands ;-) So I need a real demo. I think this is one of the things that is done right and very {use,power}ful ;-)

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.

None yet

2 participants