Re: yum in kickstart %post and HP Insight Mgr

Tom Brown <[email protected]>
Newsgroups gmane.linux.redhat.kickstart.general,gmane.linux.rpm.yum
Message-ID <[email protected]>
>
>
> 1. did anyone tell hp about this and get them to fix their packages?
>
> 2. if you know which packages it is you're worried about and you know 
> there's nothing else running in their %scriptlets then you could 
> install those pkgs w/yum using a yum.conf with tsflags=noscripts under 
> [main].


i have not come across this issue before and apart from my case being 
rubbish this is how i automate hardware monitoring rpm installation at 
kickstart time and it works fine for me, although yes, not using yum....

# Install the distro specific monitoring
VENDOR=`dmidecode | grep Vendor | awk '{print$2}'`
DISTRO=`cat /etc/redhat-release | awk {'print$7'}`
ARCH=`uname -i`
OSTYPE=`echo $VENDOR$DISTRO$ARCH`

case "$OSTYPE" in
    Dell4i386)
        wget 
http://@@server@@/cobbler/ks_mirror/posts/openmanage-5.2.tar.gz -O 
/tmp/openmanage.tar.gz && tar zxfv /t
mp/openmanage.tar.gz -C /tmp && 
/tmp/5.2/linux/supportscripts/srvadmin-install.sh -x ; rm -rf /tmp/5.2 
/tmp/openmanage.tar.gz
;
    ;;
    Dell5.2i386)   
        wget 
http://@@server@@/cobbler/ks_mirror/posts/openmanage-5.2.tar.gz -O 
/tmp/openmanage.tar.gz && tar zxfv /t
mp/openmanage.tar.gz -C /tmp && 
/tmp/5.2/linux/supportscripts/srvadmin-install.sh -x ; rm -rf /tmp/5.2 
/tmp/openmanage.tar.gz
;
    ;;
    Dell4x86_64)
                wget 
http://@@server@@/cobbler/ks_mirror/posts/openmanage-5.2.tar.gz -O 
/tmp/openmanage.tar.gz && tar zxfv /t
mp/openmanage.tar.gz -C /tmp && 
/tmp/5.2/linux/supportscripts/srvadmin-install.sh -x ; rm -rf /tmp/5.2 
/tmp/openmanage.tar.gz
;
        ;;
        Dell5.2x86_64)
                wget 
http://@@server@@/cobbler/ks_mirror/posts/openmanage-5.2.tar.gz -O 
/tmp/openmanage.tar.gz && tar zxfv /t
mp/openmanage.tar.gz -C /tmp && 
/tmp/5.2/linux/supportscripts/srvadmin-install.sh -x ; rm -rf /tmp/5.2 
/tmp/openmanage.tar.gz
;
        ;;
    HP4i386)
        rpm -i 
http://@@server@@/cobbler/ks_mirror/posts/hpacucli-8.10-2.noarch.rpm 
http://@@server@@/cobbler/ks_mirr
or/posts/hpasm-8.0.0-173.rhel4.i386.rpm && chkconfig hpasm on;
    ;;
    HP5.2i386)   
        rpm -i 
http://@@server@@/cobbler/ks_mirror/posts/hpacucli-8.10-2.noarch.rpm 
http://@@server@@/cobbler/ks_mirr
or/posts/hpasm-8.0.0-173.rhel5.i386.rpm && chkconfig hpasm on;
    ;;
    HP4x86_64)
        rpm -i 
http://@@server@@/cobbler/ks_mirror/posts/hpacucli-8.10-2.noarch.rpm 
http://@@server@@/cobbler/ks_mirr
or/posts/hpasm-8.0.0-173.rhel4.x86_64.rpm && chkconfig hpasm on;
    ;;
    HP5x86_64)
            rpm -i 
http://@@server@@/cobbler/ks_mirror/posts/hpacucli-8.10-2.noarch.rpm 
http://@@server@@/cobbler/ks_mirr
or/posts/hpasm-8.0.0-173.rhel5.x86_64.rpm && chkconfig hpasm on;
        ;;
esac
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.