-
Notifications
You must be signed in to change notification settings - Fork 177
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
Ansible Provisioner results in failure #120
Comments
Hi @AravindhStanley , Could you elaborate more the steps to reproduce your issue and paste here the full stacktrace of the error you get? |
@AravindhStanley Are you still having issues with Rocky9? |
Closing due to lack of activity. If the issue persists or if a community member has an idea about a fix, it can be reopened. |
To be able to provision the image with Ansible some changes are required to both the packer HCL template and the kickstart files:
See example here for centos7: https://github.com/GR360RY/packer-maas/tree/packer_provisioner_refactoring/centos7 |
@jurekh I think this is a real issue and it should be addressed or at least explained in the docs. |
Thanks @GR360RY. Do you think there's a way of incorporating your solution into the template in such a way that it works with and without Ansible? PRs are welcome, if you're up for giving it a shot. |
Sure it can be done, but I think first we need to address this case I've opened today: Issue #197 Below is the example code that works without provisioner by default, but can be easily updated to use Ansible: |
This issue is stale because it has been open for 30 days with no activity. |
This issue was closed because it has been inactive for 30 days since being marked as stale. |
Folks, trying to build Rocky 9 image. I wanted to run our ansible hardening scripts as well before packing the image. When I add provisioner, it fails to execute the KS config.
Could someone please point me towards the right directions? Looks more like a packer knowledge problem, but any assistance is appreciated.
The text was updated successfully, but these errors were encountered: