Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Patch to add new
-onetime
command line parameter to run the templateing process only once and exit afterwards.This command line param overwrite the "Onetime" flag from all backend resources configured.
Issue related: #74
I have not found a place where to add this to the current documentation below the
docs/
directory. Only mentioned flag inside the readme file instead.Current patch is working as long as templates can be rendered - every is created and "remco" exits.
And another problem i found - current implementation does not respect the "onetime" config flag in case of an error (e.g. Network/Host unreachable, password wrong or templates not found etc.). Running into such a problem "remco" goes into an endless loop and retries again and again making the "Onetime" config param kinda useless.
I think remco should not go into a loop retrying when "ontime" flag is set for a specific config. What do you think?