Closed robruma closed 6 years ago
@robruma just to clarify the issue at hand do you also see this issue when using the docs example of using set:
- changes:
- set bind 0.0.0.0
@Ch3LL I do not see the issue using the redis example, only when there are spaces in the set command as a path expression. The redis example seems to work ok.
----------
ID: redis-conf
Function: augeas.change
Result: True
Comment: Changes have been saved
Started: 20:02:33.795757
Duration: 2088.159 ms
Changes:
----------
diff:
---
+++
@@ -64 +64 @@
-bind 127.0.0.1
+bind 0.0.0.0
----------
btw, removing the spaces from the problematic path expression also seems to work.
update_sslciphersuite_directive:
augeas.change:
#- lens: httpd.lns
- context: /files/etc/httpd/conf.d/ssl.conf/VirtualHost
- changes:
- rm directive[.='SSLCipherSuite']/arg
- set directive[.='SSLCipherSuite']/arg[1] AES256+EECDH:AES256+EDH
- unless: grep -Eq '^SSLCipherSuite AES256\+EECDH\:AES256\+EDH$' /etc/httpd/conf.d/ssl.conf
- require:
- pkg: python-augeas
- watch_in:
- service: apache
I'm running into this problem as well, and the workaround of quoting the set command argument works for me as well. Would be good to see the issue fixed though -- or if this is intentionally new parsing behavior, it would be good to see it documented.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.
Running a state using augeas.change similar to the documentation example:
Results in the following error on the master:
The minion log contains the following suggesting the set command is being interpreted as multiple arguments due to the spaces in the path expression:
I've found quoting the set command argument corrected the problem:
Versions Report
master
minion
Please let me know if additional information is needed.