-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
Ignition provider #6189
Ignition provider #6189
Conversation
Hi @mcuadros! This looks like a great start from a quick scan over the code - we can definitely review more thoroughly once you designate it no longer WIP. In order to help us understand the trajectory, it might be helpful to know what else you plan on adding? Thanks for opening a pull request! |
@jen20 I am planing to give full support. About the method I am using to link the resources... is this ok? |
This provider is completed and documented. /cc @jen20 |
@jen20 some news? |
ping @jen20 |
It's been a few months now. Any movement on this? |
@jen20 is complete with tests, since months. |
What's the status of this? |
Hi @mcuadros! Sorry for not responding to this sooner, I no longer work full-time on Terraform. An initial scan of this looks good to me. Since it is using the Go library for generating ignition config I think the testing strategy is fine. There are a few predictable conflicts from this having been left for so long, but these are easily resolved from our side. Perhaps @stack72 can pick this up, it looks like a reasonably quick win to merge. |
I just did the rebase, will be good having this merged, since ignition is suggested way to provision CoreOS and cloud-config has being discontinued. |
Hi @mcuadros thanks for the rebase here - just tried to run the tests and they failed - thoughts?
Paul |
Hi @mcuadros
This then creates a new error:
|
Hi, @stack72 You found you problem the first want was when you updated the ignition library to the latest version, a inner type has change from a And the original error was a small problem, retrieving the module output, I was using All test passing now. |
Fantastic :) This works now as expected
|
Thanks for all of the work and the patience here! |
Awesome! 🎉 |
The xmas vacation ended this morning for us at HashiCorp so it will be in the next week I'd take a guess at |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
This is a WIP version of the ignition provider, the reason behind opening of a WIP feature is just because I am looking for validate the usage of the provider.
Ignition counts with a lot of "resources": disk, partitions, users, groups, networks, unit from systemd, etc. The chance to need to build different ignition configs, reusing "resources", is very high, this is why I am implementing this "resources" as real terraform resources.
A small example of the suggested usage:
The resources are cached by id internally and the
ignition_config
resource builds the Config object and generates the JSON in therendered
containing the ignition generated file.New resources: