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

some helper functions for working with templates, a-la-helm (think of indent, quote, etc) #437

Open
odino opened this issue Jun 2, 2021 · 1 comment
Milestone

Comments

@odino
Copy link
Collaborator

odino commented Jun 2, 2021

from @omissis

can you elaborate on what you think would be helpful?

@odino odino added this to the cauldron milestone Jun 2, 2021
@omissis
Copy link

omissis commented Jun 7, 2021

Sure! This idea follows up on #436 and introduces some functions to deal with values and placeholders, so that the example template at issue #436 could become something like the following one:

Unattended-Upgrade::Allowed-Origins {
    {{range .origins}}
    {{.origin | nindent 8}}
    {{end}}
};
Unattended-Upgrade::Package-Blacklist {
};
Unattended-Upgrade::DevRelease "auto";
Unattended-Upgrade::Mail {{ .email | quote }};
Unattended-Upgrade::MailReport "on-change";
Unattended-Upgrade::Automatic-Reboot "false";
Unattended-Upgrade::Remove-Unused-Kernel-Packages "true";
Unattended-Upgrade::Remove-Unused-Dependencies "true";

See Helm's function list to get a better idea of the supported functionalities.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants