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

Renderer "middleware" for additional file modifications #78

Open
eikenb opened this issue Nov 4, 2021 · 2 comments
Open

Renderer "middleware" for additional file modifications #78

eikenb opened this issue Nov 4, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@eikenb
Copy link
Contributor

eikenb commented Nov 4, 2021

Add a way to make the renderer, the part that takes the evaluated template text and writes it to a file, extensible with post (and pre?) write effects. Like creating a backup, changing permissions or owners.

It came up in a recent issue hashicorp/consul-template#1497 that Nomad already uses the file permissions code in consul-template and there is a need for them to set the UID/GID of the files as well. In order for hashicat to replace consul-template it will need to support these sorts of features.

The code currently has a placeholder/reminder setup for this with the backup command, replace that with this.

@eikenb eikenb added the enhancement New feature or request label Nov 4, 2021
@eikenb
Copy link
Contributor Author

eikenb commented Nov 4, 2021

Couple more references I wanted to capture.

Nomad ticket about adding UID/GID support to templates.
hashicorp/nomad#5020

PR to add this feature to consul-template.
hashicorp/consul-template#1531

@eikenb
Copy link
Contributor Author

eikenb commented Jan 27, 2022

Merged hashicorp/consul-template#1531... so going to need this before I can migrate those changes.

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

No branches or pull requests

1 participant