+<?xml version="1.0" encoding="UTF-8"?>\r
+<!--\r
+\r
+ Copyright (C) 2007-2012 Argeo GmbH\r
+\r
+ Licensed under the Apache License, Version 2.0 (the "License");\r
+ you may not use this file except in compliance with the License.\r
+ You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+ Unless required by applicable law or agreed to in writing, software\r
+ distributed under the License is distributed on an "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ See the License for the specific language governing permissions and\r
+ limitations under the License.\r
+\r
+-->\r
+<!-- Copyright (C) 2007-2012 Mathieu Baudier Licensed under the Apache License, \r
+ Version 2.0 (the "License"); you may not use this file except in compliance \r
+ with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 \r
+ Unless required by applicable law or agreed to in writing, software distributed \r
+ under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES \r
+ OR CONDITIONS OF ANY KIND, either express or implied. See the License for \r
+ the specific language governing permissions and limitations under the License. -->\r
+<beans xmlns="http://www.springframework.org/schema/beans"\r
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"\r
+ xmlns:aop="http://www.springframework.org/schema/aop" xmlns:flow="http://www.argeo.org/schema/slc-flow"\r
+ xsi:schemaLocation="\r
+ http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd\r
+ http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd\r
+ http://www.argeo.org/schema/slc-flow http://www.argeo.org/schema/slc-flow-1.2.xsd">\r
+\r
+ <bean id="hostManager" class="org.argeo.slc.lib.linux.RedhatHostManager">\r
+ <property name="sshTarget" ref="sshTarget" />\r
+ <property name="host" ref="host" />\r
+ </bean>\r
+\r
+ <!-- Execution Flows -->\r
+ <bean flow:as-flow="deployConfig" class="org.argeo.slc.core.execution.tasks.MethodCall"\r
+ p:target-ref="hostManager" p:method="deployConfig" />\r
+\r
+ <bean flow:as-flow="system/reboot" p:command="shutdown -r now"\r
+ p:sshTarget-ref="sshTarget" class="org.argeo.slc.jsch.RemoteExec" />\r
+\r
+ <bean flow:as-flow="system/shutdown" p:command="shutdown -h now"\r
+ p:sshTarget-ref="sshTarget" class="org.argeo.slc.jsch.RemoteExec" />\r
+\r
+ <bean flow:as-flow="system/packages/install" class="org.argeo.slc.core.execution.tasks.MethodCall"\r
+ p:target-ref="hostManager" p:method="installPackages" />\r
+\r
+ <bean flow:as-flow="system/packages/update" p:sshTarget-ref="sshTarget"\r
+ class="org.argeo.slc.jsch.RemoteExec">\r
+ <property name="systemCall">\r
+ <bean class="org.argeo.slc.core.execution.tasks.SystemCall">\r
+ <property name="cmd" value="yum -y update" />\r
+ </bean>\r
+ </property>\r
+ </bean>\r
+\r
+ <bean flow:as-flow="system/security/firewall" p:script="osgibundle:/scripts/firewall.sh"\r
+ p:sshTarget-ref="sshTarget" class="org.argeo.slc.jsch.RemoteExec" />\r
+\r
+ <flow:flow name="system/security/authconfig">\r
+ <flow:spec>\r
+ <flow:primitive name="ldapserver" />\r
+ <flow:primitive name="ldapbasedn" />\r
+ </flow:spec>\r
+ <bean p:sshTarget-ref="sshTarget" class="org.argeo.slc.jsch.RemoteExec">\r
+ <flow:variable />\r
+ <property name="systemCall">\r
+ <bean class="org.argeo.slc.core.execution.tasks.SystemCall">\r
+ <property name="command">\r
+ <list>\r
+ <value>authconfig</value>\r
+ <value>--enableldap</value>\r
+ <value>--enableldapauth</value>\r
+ <value>--enablecache</value>\r
+ <value>--enablemkhomedir</value>\r
+ <value>--ldapserver=@{ldapserver}</value>\r
+ <value>--ldapbasedn=@{ldapbasedn}</value>\r
+ <value>--passalgo=sha256</value>\r
+ <value>--updateall</value>\r
+ </list>\r
+ </property>\r
+ </bean>\r
+ </property>\r
+ </bean>\r
+ </flow:flow>\r
+\r
+</beans>
\ No newline at end of file