2 echo "Starting Kickstart Post"
3 PATH=/sbin:/usr/sbin:/bin:/usr/bin
6 echo "Running ovirt-install-host stateless"
7 /usr/sbin/ovirt-install-node stateless
9 echo "Creating shadow files"
10 # because we aren't installing authconfig, we aren't setting up shadow
11 # and gshadow properly. Do it by hand here
15 echo "Forcing C locale"
16 # force logins (via ssh, etc) to use C locale, since we remove locales
17 cat >> /etc/profile << \EOF
18 # oVirt: force our locale to C since we don't have locale stuff'
19 export LC_ALL=C LANG=C
22 echo "Configuring IPTables"
23 # here, we need to punch the appropriate holes in the firewall
24 cat > /etc/sysconfig/iptables << \EOF
25 # oVirt automatically generated firewall configuration
30 -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
31 -A INPUT -p icmp -j ACCEPT
32 -A INPUT -i lo -j ACCEPT
34 -A INPUT -p tcp --dport 16509 -j ACCEPT
36 -A INPUT -p tcp --dport 22 -j ACCEPT
38 -A INPUT -p tcp -m multiport --dports 5900:6000 -j ACCEPT
40 -A INPUT -p tcp -m multiport --dports 49152:49216 -j ACCEPT
41 -A INPUT -j REJECT --reject-with icmp-host-prohibited
42 -A FORWARD -m physdev ! --physdev-is-bridged -j REJECT --reject-with icmp-host-prohibited