ReferencePlatforms/OPSI Server: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
No edit summary
Line 34: Line 34:
  cd /opt/pcbin/install/preloginloader
  cd /opt/pcbin/install/preloginloader
  wget --no-check-certificate -Oopsi-prep.vbs https://bugzilla.mozilla.org/attachment.cgi?id=370849
  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

Revision as of 13:05, 3 June 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