Pradeep Reddy
2014-May-07 20:40 UTC
[Puppet Users] augeas for setting URIEncoding variable in tomcat, server.xml file.
Hi Team,
I am using below info in my manifest. URIEncoding="UTF-8" is not
present
in server.xml. Trying to inject URIEncoding using below augeas syntax.
augeas { 'update_server.xml':
lens => 'Xml.lns',
incl =>
"/opt/apphome/apache-tomcat-7.0.53/conf/server.xml",
context =>
'/opt/apphome/apache-tomcat-7.0.53/conf/server.xml'/Connector
port="8080"',
changes => flatten([
"set
Server/Service/Connector[1][#attribute/redirectport='8443']/#attribute/URIEncoding
UTF-8",]),
}
After executing getting below information. URIEncoding="UTF-8" is not
getting appended in server.xml.
Could someone please check and let me know, wehther i am using a wrong
syntax.
Debug: Augeas[update_server.xml](provider=augeas): Opening augeas with root
/, lens path , flags 64
Debug: Augeas[update_server.xml](provider=augeas): Augeas version 1.0.0 is
installed
Debug: Augeas[update_server.xml](provider=augeas): Will attempt to save and
only run if files changed
Debug: Augeas[update_server.xml](provider=augeas): sending command 'set'
with params
["\"${brand::tomcat_installdir}/${brand::tomcat_version}/conf/server.xml\"/Connector
port=\"8080\"/Server/Service/Connector[1][#attribute/redirectport='8443']/#attribute/URIEncoding",
"UTF-8"]
Debug: Augeas[update_server.xml](provider=augeas): Skipping because no
files were changed
Debug: Augeas[update_server.xml](provider=augeas): Closed the augeas
connection
Regards,
Pradeeo.
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to puppet-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/6a327ad9-347a-493a-b32a-89b46645e22b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.