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

Porting the files.sed operation? #27

Open
rpkilby opened this issue Jul 17, 2018 · 2 comments
Open

Porting the files.sed operation? #27

rpkilby opened this issue Jul 17, 2018 · 2 comments

Comments

@rpkilby
Copy link

rpkilby commented Jul 17, 2018

Is there any plan on porting the sed operation from Fabric v1?

@bitprophet
Copy link
Member

Not sure I made the call one way or the other yet. In general, at this point in time it's generally considered a lot safer and more reproducible to upload (potentially rendered) files wholesale instead of trying to manipulate them on the fly, which is certainly one reason why I personally haven't needed it.

OTOH there are always funky sysadmin reasons to occasionally perform manipulations instead of overwrites.

OTOOH I remember sed having an enormous number of irritating bugs for such a comparatively small amount of code, so I'm not in a huge rush to re-invite that into the fold.

OTOOOH many of those bugs were tied to how we performed text escaping because run et al used a shell wrapper, which is currently not the case in Fab 2.

It's complicated 😂 but I'll leave this open as a "maybe" for now, esp if somebody drops a PR and has pre-emptively written a ton of tests drawing from the old sed's bug list...

@rpkilby
Copy link
Author

rpkilby commented Jul 19, 2018

That all makes sense. The case where this seems relevant to me is modifying a few pre-existing system configuration files. e.g., ensure that sshd disallows root login and password authentication while leaving the rest of the conf at its default values. That said, maybe it would be better for us to track the entire sshd_config. Then again, mucking with the ssh conf isn't my responsibility anyway so ¯\_(ツ)_/¯

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