
-A RH-Firewall-1-INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 443 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT
-A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited
COMMIT
EOF
#create host file with cluster members
cat <<'EOF'> /etc/hosts
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
10.16.136.10 mgmt1.cloud.lab.eng.bos.redhat.com mgmt1
10.16.136.15 mgmt2.cloud.lab.eng.bos.redhat.com mgmt2
192.168.136.10 mgmt1-ic.cloud.lab.eng.bos.redhat.com mgmt1-ic
192.168.136.15 mgmt2-ic.cloud.lab.eng.bos.redhat.com mgmt2-ic
EOF
# updated LVM's preferred names and types
sed -i -e 's/ preferred_names = \[ \]/preferred_names = \[ "^\/dev\/mapper\/" \]/' -e 's/# types = \[ "fd",
16 \]/types = \[ "device-mapper", 16 \]/' /etc/lvm/lvm.conf
#get required files
cd /root
wget http://sat-vm.cloud.lab.eng.bos.redhat.com/pub/resources/ilolib-current.noarch.rpm
wget http://sat-vm.cloud.lab.eng.bos.redhat.com/pub/resources/oalib-current.noarch.rpm
wget http://sat-vm.cloud.lab.eng.bos.redhat.com/pub/resources/salib-current.noarch.rpm
wget http://sat-vm.cloud.lab.eng.bos.redhat.com/pub/resources/vcmlib-current.noarch.rpm
wget http://sat-vm.cloud.lab.eng.bos.redhat.com/pub/resources/instpyCmds.sh
wget http://sat-vm.cloud.lab.eng.bos.redhat.com/pub/resources/prep_stor_mgmt.sh
wget http://sat-vm.cloud.lab.eng.bos.redhat.com/pub/resources/map_fc_aliases.sh
wget http://sat-vm.cloud.lab.eng.bos.redhat.com/pub/resources/multipath.conf.template
wget http://sat-vm.cloud.lab.eng.bos.redhat.com/pub/resources/buildMpathAliases.sh
wget http://sat-vm.cloud.lab.eng.bos.redhat.com/pub/resources/mgmt.rc.local.add
wget http://sat-vm.cloud.lab.eng.bos.redhat.com/pub/resources/cvt_br.sh
wget http://sat-vm.cloud.lab.eng.bos.redhat.com/pub/resources/cluster.conf
wget http://sat-vm.cloud.lab.eng.bos.redhat.com/pub/resources/createMgmtVMs.sh
wget http://sat-vm.cloud.lab.eng.bos.redhat.com/pub/resources/named.conf.slave -O /etc/named.conf
wget http://sat-vm.cloud.lab.eng.bos.redhat.com/pub/resources/varDefs.sh
chmod +x *.sh
#convert eth0 to a bridge named cloud0
./cvt_br.sh eth0 cloud0
#register system with satellite
rpm -ivh http://sat-vm.cloud.lab.eng.bos.redhat.com/pub/rhn-org-trusted-ssl-cert-1.0-1.noarch.rpm
rhnreg_ks --profilename=$NAME --activationkey=2-infraDefault --serverUrl=https://sat-
vm.cloud.lab.eng.bos.redhat.com/XMLRPC --sslCACert=/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT
#start named (as a slave)
www.redhat.com 82
Komentarze do niniejszej Instrukcji