-
Notifications
You must be signed in to change notification settings - Fork 33
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
agent: support ZINCATI_AGENT_IDENTITY_GROUP env value #275
Comments
Thanks for the report. Environment flags (and CLI flags as well) do not support the full semantics allowed by TOML fragments, so in general I'm not planning a 1:1 match. Regarding verbosity, the main reason for having it as a CLI flags is in order have logging set up before the rest of the logic (including configuration parsing). That's the only exception I can think of. Everything else really goes into structured config files. |
my current use-case is to use an ignition file as template, having some placeholders in unit files works but for example inlining files in the filesystem section does encode a lot of characters, so replacing them there is not possible. for sure there is other ways to do that, a quick an dirty way is to have a pre start command creating the toml fragment - a cleaner approach would be to get already the toml file from an external service which does the replacement hope this explains it a bit... |
So, circling back to this:
Specifically, this ticket seems to be stemming from a deeper problem (which should probably be covered in a forum post):
Templating Ignition JSON is fine, but should be done with a capable tool. |
thank you for the feedback, i use fcct for pre-transpiling the files because i need to package them and would like to prevent running the tool in the fly. i like the matchbox approach but it does not solve my problem either so i tried now exposing fcct as a service that enables me to roll the configs with it's placeholders replaced before transpiling them on the fly. similar to your fcct-online approach but embedding the tool directly, see fcct-service |
@zyclonite that sounds interesting, though I think I'm missing some higher-level details on the overall scenario. As we are going a bit off-track here, would you mind posting a short summary of your provisioning flow in the discussion forum (linked above)? |
cc'ing @zonggen too for visibility |
@lucab was not easy to sum it up in a way to get you a glimpse how the setup looks like. see https://discussion.fedoraproject.org/t/fcct-and-configuring-or-templating-other-fcos-components-and-services/19778 |
Revisiting this with all the information at hand, my final stance is that the underlying problem is due to an improper third-party Ignition config transpiling/templating pipeline. We are not going to introduce environment variables in the mix to workaround that. |
Feature Request
Desired Feature
would be nice to support environment variables to override things like group
this would make it much easier to simply extending the unit file than writing an additional toml
Example Usage
ZINCATI_GROUP
as override foridentity.group
ZINCATI_VERBOSITY
to set the verbosity levelOther Information
this would as well solve the "handover" for log verbosity in the current zincati.service example
The text was updated successfully, but these errors were encountered: