Repository navigation
Extend boot-aws to allow passing repo files and VPC - #2721
Conversation
Indeed, as is so often the case, now that I proposed this patch I am realizing that I would need another one that allows injecting an additional certificate file, because the repository I'm trying to use this with uses a self-signed one (Red Hat internal). |
|
@larskarlitski Can you expand very slightly on the use case? I think I have an idea based on what files you want to include, but I think it'd be useful to spell it out (re-using this executable in other contexts, I assume). |
I can! Red Hat has an extensive test suite for cloud images, which is distributed over multiple test frameworks, orchestrators, and repositories. For AWS, most tests are in os-tests. I am working on consolidating those and would love to use Image Builder's tooling (thanks @achilleas-k to pointing me to it), in part to share some code, but also thinking about the possibility that we could run some of that test suite upstream on Image Builder at some point. One of the things we require is to run these tests on pre-released RHEL content. The AWS account we're running them in has a VPC connected to Red Hat's internal network, where these repositories are hosted. Thus the change for Again, I'm really uncertain about |
After reading through the patch I think I agree. Exposing a couple of options and building a cloud-init file from them was fine when all we needed was a couple of options. If we're going to start expanding what we want to support for cloud-init, let's write the file separately and pass it as an option, instead of starting down the path of accidentally implementing a fully-featured cloud-init user-data file generator CLI as a sideproject. |
18de038 to
f9e88a9
Compare
|
Yeah, convinced that this is the right way. I've updated this branch to remove the The rhel-10 builds fail, because they cannot remove anything under |
Widespread issue with Go and FIPS in RHEL. Haven't followed the details closely, but I see people discussing it. |
|
One issue here is that this change wont be tested by our image build, upload, and boot tests because no images changed. We could update the rng seed in the Schutzfile which will rebuild everything. |
Better than not testing it at all. Did the bump myself. |
Thanks! |
It doesn't need user name and ssh keys. Store region in the resources file.
Allow choosing the subnet and vpc to place the instance in.
Remove the convenience option --ssh-pubkey. Let users pass --user-data instead, which gives them full flexibility to customize. Remove --username for `setup` as well, but keep it for `run`.
Change the test RNG seed to rebuild all images and test the changes to the upload command and scripts.
1d31f0e to
fa5433f
Compare
|
@larskarlitski the pipelines might get fixed by adding something like this |
|
The aarch64 unit test job failed with:
|
Add
--repo-file,--vpc-id, and--subnet-id. Remove unnecessary argument fromboot-aws teardown.I honestly wonder if
--repo-fileis too specific and something like--user-datawould be preferable?