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

[Feature request] Fetch remco.toml and src template files from URL and be watchable #17

Open
rockandska opened this issue Nov 21, 2017 · 4 comments
Assignees

Comments

@rockandska
Copy link

Hi,

Thanks for your tool that seems interesting and promising.

Not sure if it is relevant, but i think it will be a great feature to have the possibility to fetch the template file from an public/private URL and be watchable with interval the same manner as values from backend.
I thinking it will be a perfect feature for remco.toml too (with autoreload and delete config files that are not here anymore)

I ask this because i'm looking for a solution to be able to distribute containers with defaults templates in image but to be able to fetch remco.toml/resources templates from URL/GIT.

What do you think ?

Regards,

@HeavyHorst
Copy link
Owner

I think you could try to put your remco.toml and template data into one of the supported backends (could be a yaml file on github or any other url) and then let remco rebuild its own config files and reload itself.

remco can write its pid to a file.
You could then reload with a command like: kill -HUP `cat /path/to/pidfile`

@HeavyHorst HeavyHorst self-assigned this Nov 30, 2017
@HeavyHorst
Copy link
Owner

@rockandska does this work for you ?

@rockandska
Copy link
Author

Sorry for the late answer.
Didn't try it yet but for now, my brain can't figure how to simply achieve this just by read the docs :)

Will it require at least 2 files by ressource template ?

  • a remote yaml with a key containing the real toml
  • a local resource template who just print the value of the toml placed inside a key on the remote yaml file

If you have an functional exemple, i'm open to read it :)

Thanks

@HeavyHorst
Copy link
Owner

Yeah, that's basically what I had in mind.

At the moment I don't have an functional example, but maybe I'll come up with one at the weekend.
If you're faster, feel free to post yours here.

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

No branches or pull requests

2 participants