ReferencePlatforms/OPSI Server: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
No edit summary
Line 48: Line 48:
  /etc/init.d/dhcp3-server stop
  /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:
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
= Upgrade to OPSI 3.4 =
* In /etc/apt/sources.list change this line: 'deb http://download.uib.de/debian etch opsi3.3' to 'deb http://download.uib.de/debian lenny opsi3.4'. Do NOT change any other lines to 'lenny'.
* Run the following commands (you will have to confirm your actions for some of them):
# upgrade the debian packages
aptitude update
aptitude upgrade
aptitude install opsi-depotserver opsi-utils opsi-configed python-opsi opsiconfd
# and the opsi packages
wget http://download.uib.de/opsi3.4/produkte/essential/opsi-adminutils_3.4-5.opsi
wget http://download.uib.de/opsi3.4/produkte/essential/opsi-adminutils_3.4-5.opsi.md5
wget http://download.uib.de/opsi3.4/produkte/essential/opsi-winst_4.8.8.1-2.opsi
wget http://download.uib.de/opsi3.4/produkte/essential/opsi-winst_4.8.8.1-2.opsi.md5
wget http://download.uib.de/opsi3.4/produkte/essential/preloginloader_3.4-27.opsi
wget http://download.uib.de/opsi3.4/produkte/essentia/preloginloader_3.4-27.opsi.md5
opsi-package-manager -i opsi-adminutils_3.4-5.opsi opsi-winst_4.8.8.1-2.opsi preloginloader_3.4-27.opsi
* Drop the modules file into /etc/opsi (currently located at staging-opsi.build:/etc/opsi/modules)
* Edit /etc/opsi/backendManager.d/21_mysql.conf and set 'load' to 'False'.
* Edit /etc/opsi/backendManager.d/30_vars.conf and set self.clientManagingBackend to '[ BACKEND_FILE31 ]' and remove the 'self.licenseBackend' line.
* Restart opsiconfd:
  /etc/init.d/opsiconfd restart
  /etc/init.d/opsiconfd restart

Revision as of 17:38, 13 October 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

Upgrade to OPSI 3.4

# upgrade the debian packages
aptitude update
aptitude upgrade
aptitude install opsi-depotserver opsi-utils opsi-configed python-opsi opsiconfd
# and the opsi packages
wget http://download.uib.de/opsi3.4/produkte/essential/opsi-adminutils_3.4-5.opsi
wget http://download.uib.de/opsi3.4/produkte/essential/opsi-adminutils_3.4-5.opsi.md5
wget http://download.uib.de/opsi3.4/produkte/essential/opsi-winst_4.8.8.1-2.opsi
wget http://download.uib.de/opsi3.4/produkte/essential/opsi-winst_4.8.8.1-2.opsi.md5
wget http://download.uib.de/opsi3.4/produkte/essential/preloginloader_3.4-27.opsi
wget http://download.uib.de/opsi3.4/produkte/essentia/preloginloader_3.4-27.opsi.md5
opsi-package-manager -i opsi-adminutils_3.4-5.opsi opsi-winst_4.8.8.1-2.opsi preloginloader_3.4-27.opsi
  • Drop the modules file into /etc/opsi (currently located at staging-opsi.build:/etc/opsi/modules)
  • Edit /etc/opsi/backendManager.d/21_mysql.conf and set 'load' to 'False'.
  • Edit /etc/opsi/backendManager.d/30_vars.conf and set self.clientManagingBackend to '[ BACKEND_FILE31 ]' and remove the 'self.licenseBackend' line.
  • Restart opsiconfd:
/etc/init.d/opsiconfd restart