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

Convert ERB templates to EPP #315

Open
jay7x opened this issue Oct 21, 2024 · 3 comments · May be fixed by #316
Open

Convert ERB templates to EPP #315

jay7x opened this issue Oct 21, 2024 · 3 comments · May be fixed by #316
Assignees

Comments

@jay7x
Copy link

jay7x commented Oct 21, 2024

No description provided.

@jay7x
Copy link
Author

jay7x commented Oct 21, 2024

Pls assign me to this :)

@jay7x
Copy link
Author

jay7x commented Oct 21, 2024

Well.. it's harder than expected (as usual).. Main problem is epp() 2nd argument (parameters Hash).

We have 2 sets of templates here:

  1. /etc/sudoers templates with slightly different parameter sets ($wheel_config is not present in Debian templates). This is more-or-less easy.
  2. sudo::conf $template templates.. it's user-controlled, so I'm not sure how to deal with it. I'd personally not even introduce this parameter from the beginning, because it's Pandora box :) But as we have it open already, I guess, we need another $template_epp (or $epp_template) parameter.. and immediate next question is how user can pass the parameters there?

@jay7x
Copy link
Author

jay7x commented Oct 21, 2024

Also sudo::defaults() function behaves differently when called from ERB vs EPP. When called from EPP it receives the Hash as it is instead of Array of Tuples. So, I guess, I'll rewrite it in Puppet DSL instead.

@jay7x jay7x linked a pull request Oct 21, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant