]> git.argeo.org Git - gpl/argeo-slc.git/blob - runtime/org.argeo.slc.support.simple/src/main/resources/org/argeo/slc/lib/linux/redhat.xml
5f0c46dde1e7faa865b279474bc979b0ece7ae9f
[gpl/argeo-slc.git] / runtime / org.argeo.slc.support.simple / src / main / resources / org / argeo / slc / lib / linux / redhat.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <beans xmlns="http://www.springframework.org/schema/beans"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
4 xmlns:aop="http://www.springframework.org/schema/aop" xmlns:flow="http://www.argeo.org/schema/slc-flow"
5 xsi:schemaLocation="
6 http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
7 http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
8 http://www.argeo.org/schema/slc-flow http://www.argeo.org/schema/slc-flow-0.12.xsd">
9
10 <bean id="hostManager" class="org.argeo.slc.lib.linux.RedhatHostManager">
11 <property name="sshTarget" ref="sshTarget" />
12 <property name="host" ref="host" />
13 </bean>
14
15 <bean flow:as-flow="deployConfig" class="org.argeo.slc.core.execution.tasks.MethodCall"
16 p:target-ref="hostManager" p:method="deployConfig" />
17
18 <bean flow:as-flow="system/reboot" p:command="shutdown -r now"
19 p:sshTarget-ref="sshTarget" class="org.argeo.slc.jsch.RemoteExec" />
20
21 <bean flow:as-flow="system/shutdown" p:command="shutdown -h now"
22 p:sshTarget-ref="sshTarget" class="org.argeo.slc.jsch.RemoteExec" />
23
24 <bean flow:as-flow="system/packages/install" class="org.argeo.slc.core.execution.tasks.MethodCall"
25 p:target-ref="hostManager" p:method="installPackages" />
26
27 <bean flow:as-flow="system/packages/update" p:sshTarget-ref="sshTarget"
28 class="org.argeo.slc.jsch.RemoteExec">
29 <property name="systemCall">
30 <bean class="org.argeo.slc.core.execution.tasks.SystemCall">
31 <property name="cmd" value="yum -y update" />
32 </bean>
33 </property>
34 </bean>
35
36 <bean flow:as-flow="system/security/firewall" p:script="osgibundle:/scripts/firewall.sh"
37 p:sshTarget-ref="sshTarget" class="org.argeo.slc.jsch.RemoteExec" />
38
39 </beans>