ReferencePlatforms/OPSI Server

From MozillaWiki
Jump to navigation Jump to search

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
mkdir .ssh
scp cltbld@some-machine-with-the-keys:.ssh/id_dsa* .

Install CVS

apt-get install cvs

Install the default packages

First checkout the packages from the mofo repo:

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

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

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

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 -Oopsi-prep.vbs https://bugzilla.mozilla.org/attachment.cgi?id=370849