News for hackers. Stuff that matters.
Re:Pyinfra: Automate Infrastructure Using Python by verdverm on Tuesday April 30, 2024 @10:36PM (#40218929)
The shell task breaks the declarative nature a bit, along with registering task results and then writing conditional whens based on them. Interpolating values based on the registered results does too imho
Re:Pyinfra: Automate Infrastructure Using Python by aflukasz on Wednesday May 01, 2024 @02:02AM (#40220031)
Plus, what your are declaring is often times not the state you desire but... action you want to take. Say you use `apt.name: [pkg1, pkg2]`, run it, then remove `pkg2` from the list. Running this again won't remove `pkg2` from your system. So it's declarative, but not necessarily on the optimal level all the times.