Skip to content

Instantly share code, notes, and snippets.

@skrobul
Created November 9, 2015 11:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skrobul/97a992491a3efca6f09d to your computer and use it in GitHub Desktop.
Save skrobul/97a992491a3efca6f09d to your computer and use it in GitHub Desktop.
salt uncomment
$ cat /tmp/myfile
# blah
#acl_smtp_predata = daily_limit_acl
#acl_not_smtp = daily_limit_acl
more blah
$ salt-call --local file.uncomment /tmp/myfile 'acl_(smtp_predata|not_smtp) = daily_limit_acl'
local:
---
+++
@@ -1,2 +1,2 @@
-#acl_smtp_predata = daily_limit_acl
-#acl_not_smtp = daily_limit_acl
+acl_smtp_predata = daily_limit_acl
+acl_not_smtp = daily_limit_acl
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment