
cd /root/rhq-agent/bin
\mv rhq-agent-env.sh rhq-agent-env.sh.orig
wget http://sat-vm.cloud.lab.eng.bos.redhat.com/pub/resources/rhq-agent-env.sh
# deploy the test app
cd /root/jboss-eap*/jboss-as/server/default/deploy
wget http://sat-vm.cloud.lab.eng.bos.redhat.com/pub/resources/jboss-seam-booking-ds.xml
wget http://sat-vm.cloud.lab.eng.bos.redhat.com/pub/resources/jboss-seam-booking.ear
# configure JBoss and JON agent to auto start
cd /etc/init.d
wget http://sat-vm.cloud.lab.eng.bos.redhat.com/pub/resources/jboss-eap
sed -i -e "s/readlink/readlink -e/g" /root/rhq-agent/bin/rhq-agent-wrapper.sh
ln -s /root/rhq-agent/bin/rhq-agent-wrapper.sh .
chmod +x jboss-eap rhq-agent-wrapper.sh
/sbin/chkconfig --add jboss-eap
/sbin/chkconfig jboss-eap on
/sbin/chkconfig --add rhq-agent-wrapper.sh
/sbin/chkconfig rhq-agent-wrapper.sh on
#update software
/usr/bin/yum -y update
) >> /root/ks-post.log 2>&1
1. Obtained by the kickstart, the rhq-agent-env.sh environment configuration file is
customized to define the following variables according to the working environment:
• RHQ_AGENT_HOME
• RHQ_AGENT_JAVA_HOME
• RHQ_AGENT_CMDLINE_OPTS
• RHQ_AGENT_PIDFILE_DIR
The configuration file used is located in Appendix A.5.3
8.4 RHEL MRG Grid Execute Nodes
VMs for use as MRG Grid execute nodes are created using the following kickstart to:
• install RHEL 5.5 with OpenJDK
• set required firewall ports
• execute any queued actions on RHN to sync with the activation key
• download the MRG configuration files
• install the latest OS updates
• configure MRG, NTP, the sesame database manager, and the AMQP broker daemon
to auto start at VM boot
rhel55_mrg_exec.ks
install
www.redhat.com 140
Komentarze do niniejszej Instrukcji