-
Notifications
You must be signed in to change notification settings - Fork 248
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
Add sed-like operations #1099
Comments
The thing with The approach we've been trying to push for is In the case of For For |
Ahh! I understood the technical limitation: |
https://blog.verbum.org/2020/08/22/immutable-%E2%86%92-reprovisionable-anti-hysteresis/ also points out problems with |
Feature Request
Desired Feature
MachineConfigOperator + Ignition is a powerful tool. It almost completely supersedes Ansible and other configuration tools.
The only thing I really miss is an ability to invoke sed-like commands on configuration files. Ansible provides great module called lineinfile. This module can change text files in declarative manner:
I often just want to change one line in /etc without overwriting the entire file. For example, set
PasswordAuthentication no
in /etc/ssh/sshd_config
or disable sudo without password in/etc/sudoers
, like in the example above.Currently Ignition doesn't provide to change lines in the middle of a file. I propose to extend
files
section to support lineinfile-like operations. I don't see any contradictions with the core concepts of Ignition.Any thoughts? Please upvote if you also need miss this feature.
The text was updated successfully, but these errors were encountered: