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

[agent] Allow delaying the apply of the configuration until specific datetime #104

Open
nemesifier opened this issue Apr 8, 2020 · 0 comments

Comments

@nemesifier
Copy link
Member

nemesifier commented Apr 8, 2020

Add a configuration option which allows to specify a datetime, eg: apply_at.

When OpenWISP applies a configuration, if apply_at is specified and represents a valid future date, enter an infinite loop that is broken only until the current time is equal or higher than apply_at.

I think the best place to implement this functionality is in https://github.com/openwisp/openwisp-config/blob/master/openwisp-config/files/sbin/openwisp-update-config.lua, the option shall be passed by the agent which takes it from the configuration.

If apply_at is not a valid date or is a past date, the apply of the configuration happens normally, with the difference that if the date is invalid we shall log this with the system logger.

Related to openwisp/openwisp-controller#182.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: To do general
Development

No branches or pull requests

1 participant