Skip to content
Snippets Groups Projects
Commit 8218e057 authored by Julien Allary's avatar Julien Allary
Browse files

dell openmanage installation

parent 5660a6ba
No related branches found
No related tags found
No related merge requests found
...@@ -26,3 +26,27 @@ usermod -aG sudo admin ...@@ -26,3 +26,27 @@ usermod -aG sudo admin
if ( ! test -z ${SHELL_ADMIN_PWD} ); then if ( ! test -z ${SHELL_ADMIN_PWD} ); then
echo -e "${SHELL_ADMIN_PWD}\n${SHELL_ADMIN_PWD}" | passwd -q admin echo -e "${SHELL_ADMIN_PWD}\n${SHELL_ADMIN_PWD}" | passwd -q admin
fi fi
# DELL server - install dell openmanage
if ( ! dpkg -l | grep dmidecode )
then
aptitude install -y dmidecode
fi
dmidecode > /tmp/dmidecode
if ( grep Dell /tmp/dmidecode )
then
echo 'deb http://linux.dell.com/repo/community/ubuntu xenial openmanage' | sudo tee -a /etc/apt/sources.list.d/linux.dell.com.sources.list
gpg --keyserver pool.sks-keyservers.net --recv-key 1285491434D8786F
gpg -a --export 1285491434D8786F | sudo apt-key add -
aptitude update && aptitude install -y srvadmin-all
update-rc.d dsm_om_connsvc defaults
echo "@reboot root /usr/sbin/service dsm_om_connsvc start" > /etc/cron.d/dell_openmanage
sed -i "s@^root@root,admin@" /opt/dell/srvadmin/etc/omarolemap
service dsm_om_connsvc start
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment