flyingcircusio / batou

batou is a universal, fractal deployment utility using Python.
https://batou.readthedocs.org
Other
47 stars 12 forks source link

Add a way to print a message per Component and Host #391

Open frlan opened 10 months ago

frlan commented 10 months ago

There are scenarios, where in libraries like batou_ext the default behaviour will change in future. A common way of doing it is to print a message informing a user about it.

Something like

class MyComponent(Component):
    def configure(self):
        self.log("Warning: Will be changed") 

might do the trick, but having a deployment with a big number of hosts it might get's quiet noisy.

It would be cool to have a build-in way to print one message only for the hosts the component actually is activated on only one time.