ReferencePlatforms/OPSI Server: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
No edit summary
Line 46: Line 46:
OPSI is setup to run a DHCP server by default, but we don't want it. Disable it by doing the following:
OPSI is setup to run a DHCP server by default, but we don't want it. Disable it by doing the following:
  update-rc.d -f dhcp3-server remove
  update-rc.d -f dhcp3-server remove
And open up /etc/opsi/backendManager.d/30_vars.conf and remove the reference to BACKEND_DHCPD
/etc/init.d/dhcp3-server stop
And open up /etc/opsi/backendManager.d/30_vars.conf and remove the reference to BACKEND_DHCPD. Then restart the OPSI daemon:
/etc/init.d/opsiconfd restart

Revision as of 15:23, 28 August 2009

This procedure will recreate the OPSI server based on the OPSI Virtual Appliance version 3.3. This document assumes you already have a virtual appliance based VM running.

Create the cltbld user

useradd -m cltbld
passwd cltbld
# and get the cltbld keys
su - cltbld
mkdir .ssh && cd .ssh
scp cltbld@some-machine-with-the-keys:.ssh/id_dsa* .

Install some software

apt-get install cvs python-dev rsync gcc lib6-dev
wget http://www.selenic.com/mercurial/release/mercurial-1.1.2.tar.gz
tar -zxvf mercurial-1.1.2.tar.gz
cd mercurial-1.1.2
python setup.py build
python setup.py install

Install the default packages

First checkout the packages from the mofo repo:

cvs -d:ext:cltbld@cvs.mozilla.org:/mofo co -d opsi-packages ref-platforms/opsi/default-packages

Then, as root, use opsi-package-manager to install them:

su -
cd ~cltbld/opsi-packages
opsi-package-manager -i *.opsi
cd ~cltbld

Set the pcpatch password

As root,

opsi-admin -d task setPcpatchPassword

Install the opsi client prep script

As root,

cd /opt/pcbin/install/preloginloader
wget --no-check-certificate -Oopsi-prep.vbs https://bugzilla.mozilla.org/attachment.cgi?id=370849

Checkout opsi-binaries, opsi-package-sources

As cltbld,

cd ~
hg clone http://hg.mozilla.org/build/opsi-package-sources
cvs -d:ext:cltbld@cvs.mozilla.org:/mofo co -d opsi-binaries opsi-binaries
cd opsi-package-sources
./sync-binaries

Disable the DHCP Server

OPSI is setup to run a DHCP server by default, but we don't want it. Disable it by doing the following:

update-rc.d -f dhcp3-server remove
/etc/init.d/dhcp3-server stop

And open up /etc/opsi/backendManager.d/30_vars.conf and remove the reference to BACKEND_DHCPD. Then restart the OPSI daemon:

/etc/init.d/opsiconfd restart