[Fai-commit] r4409 - in people/lazyboy/rhel-install-fixes_3.1.8/examples/rhel-install-demo: files/opt/apache-tomcat-6.0.13/conf/tomcat-users.xml scripts/RHEL-DEMO-TOMCAT
lazyboy-guest at alioth.debian.org
lazyboy-guest at alioth.debian.org
Fri Jul 6 22:42:19 UTC 2007
Author: lazyboy-guest
Date: 2007-07-06 22:42:19 +0000 (Fri, 06 Jul 2007)
New Revision: 4409
Added:
people/lazyboy/rhel-install-fixes_3.1.8/examples/rhel-install-demo/scripts/RHEL-DEMO-TOMCAT/45-configure-tomcat
Removed:
people/lazyboy/rhel-install-fixes_3.1.8/examples/rhel-install-demo/files/opt/apache-tomcat-6.0.13/conf/tomcat-users.xml/RHEL-DEMO-WEBSERVER
Log:
configure tomcat with cfengine
Deleted: people/lazyboy/rhel-install-fixes_3.1.8/examples/rhel-install-demo/files/opt/apache-tomcat-6.0.13/conf/tomcat-users.xml/RHEL-DEMO-WEBSERVER
===================================================================
--- people/lazyboy/rhel-install-fixes_3.1.8/examples/rhel-install-demo/files/opt/apache-tomcat-6.0.13/conf/tomcat-users.xml/RHEL-DEMO-WEBSERVER 2007-07-06 22:38:06 UTC (rev 4408)
+++ people/lazyboy/rhel-install-fixes_3.1.8/examples/rhel-install-demo/files/opt/apache-tomcat-6.0.13/conf/tomcat-users.xml/RHEL-DEMO-WEBSERVER 2007-07-06 22:42:19 UTC (rev 4409)
@@ -1,6 +0,0 @@
-<?xml version='1.0' encoding='utf-8'?>
-<tomcat-users>
-<role rolename="manager"/>
-<user username="tomcat" password="s3cret" roles="manager"/>
-</tomcat-users>
-
Added: people/lazyboy/rhel-install-fixes_3.1.8/examples/rhel-install-demo/scripts/RHEL-DEMO-TOMCAT/45-configure-tomcat
===================================================================
--- people/lazyboy/rhel-install-fixes_3.1.8/examples/rhel-install-demo/scripts/RHEL-DEMO-TOMCAT/45-configure-tomcat (rev 0)
+++ people/lazyboy/rhel-install-fixes_3.1.8/examples/rhel-install-demo/scripts/RHEL-DEMO-TOMCAT/45-configure-tomcat 2007-07-06 22:42:19 UTC (rev 4409)
@@ -0,0 +1,20 @@
+#! /usr/sbin/cfagent -f
+
+control:
+ any::
+ actionsequence = ( files editfiles )
+ EditFileSize = ( 30000 )
+
+editfiles:
+ any::
+ { ${target}/opt/tomcat/conf/tomcat-users.xml
+ LocateLineMatching "<tomcat-users>"
+ BeginGroupIfNoLineMatching '^ *<role rolename="manager"/>'
+ InsertLine '<role rolename="manager"/>'
+ EndGroup
+
+ BeginGroupIfNoLineMatching '^ *<user username="tomcat" password="tomcat" roles="manager"/>$'
+ InsertLine '<user username="tomcat" password="tomcat" roles="manager"/>'
+ EndGroup
+
+ }
Property changes on: people/lazyboy/rhel-install-fixes_3.1.8/examples/rhel-install-demo/scripts/RHEL-DEMO-TOMCAT/45-configure-tomcat
___________________________________________________________________
Name: svn:executable
+ *
More information about the Fai-commit
mailing list