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

Builder role does not appear to implement AAP registration #127

Closed
zjpeterson opened this issue Mar 17, 2023 · 2 comments · Fixed by #132
Closed

Builder role does not appear to implement AAP registration #127

zjpeterson opened this issue Mar 17, 2023 · 2 comments · Fixed by #132
Assignees
Labels
approved pm aprroved to work bug Something isn't working

Comments

@zjpeterson
Copy link

Setting the builder_aap_* variables described in the documentation doesn't produce anything new in the resulting kickstart for me. I see the template to do it at roles/builder/templates/auto_register_aap.j2, and if I grab that myself and add it to my kickstart in a %post block after the role runs, it does work as expected, should just run within the role.

@resoluteCoder resoluteCoder self-assigned this Mar 17, 2023
@chadmf chadmf added bug Something isn't working approved pm aprroved to work labels Mar 17, 2023
@resoluteCoder
Copy link
Collaborator

@zjpeterson When adding the builder_aap_* variables did you also add - "{{ lookup('ansible.builtin.template', '../templates/auto_register_aap.j2') }}" as a list item for the builder_kickstart_post variable described here: https://github.com/redhat-cop/infra.osbuild/tree/main/roles/builder#builder_kickstart_post

I ask because I did the same thing while trying to reproduce this bug.

There seems to be another requirement to use those variables that are provided. This in my opinion isn't optimal for the user. The user should be able to define variables and not worry about anything else.

I can add the necessary changes to make sure only aap vars are needed for the aap portion to be injected into the kickstart file.

@zjpeterson
Copy link
Author

This suggestion worked for me when I tried it. I missed that part in the docs. But I agree that the act of setting the variables alone should be enough for the role to know they should be used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved pm aprroved to work bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants