-
Notifications
You must be signed in to change notification settings - Fork 73
Butane with multiple merge.local does not convert to ignition #576
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
Comments
@ddt3 hello :) So with the 'local' field we added sugar for enabling the embedding of a file into the ignition config at butane time. This is purely sugar and is only really able to be a singleton in terms of the merge section. Usually merge is used for cloud providers, as custom-data usually has limits and a way to get around those length limits we can add a source, which ignition can fetch at ignition time. What is your use-case with mulitple embedded ignition configs ? |
@prestist Thank you for looking into this :-) I think the use case can actually be derived from my example. I use flatcar on my Proxmox server. I have a number of "standard" additions that I use to fire-up a flatcar vm
All of this is scripted and automated: Deploying a new flatcar vm means, that I create a butane file by shopping from the "standard additions" and adding specifics for that vm. As an example: I add a specific docker-compose.yaml which is possible as I have also included the "standard addition" to install docker-compose binaries, etc. ) . All of this is possible at the moment, but only if I place the resulting ignition files on a webserver that is reachable from my Proxmox cluster. On Proxmox a " complete" ignition file including everything could also be stored in a Snippets storage, which means I no longer depend on an additional (web) server to deploy these vms. Note that in addition: Promox will only allow moving a VM to another host in the cluster if the configured ignition file is available to the other Proxmox host. This is true for the Snippets Storage , these are available to all hosts in a cluster. |
Hey! no problem :) Ok, so these files really are constants then. And you want to layer them into each of your configs, kinda like legos. Let me look into how the sugar works, it sounds like a nice use case I will try and bring it up today in FCOS meeting! |
I am using the following Butane file that I cannot get to work:
This is the output:
When I use source: it just works
This file converts without a problem to ignition:
Specification at: https://coreos.github.io/butane/config-fcos-v1_6/ does not explain why the behavior is different.
The text was updated successfully, but these errors were encountered: