ReferencePlatforms/OPSI Server: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 8: Line 8:
  scp cltbld@some-machine-with-the-keys:.ssh/id_dsa* .
  scp cltbld@some-machine-with-the-keys:.ssh/id_dsa* .


= Install CVS =
= Install some software =
  apt-get install cvs
  apt-get install cvs python-dev rsync
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
su -c 'python setup.py install'


= Install the default packages =
= Install the default packages =
First checkout the packages from the mofo repo:
First checkout the packages from the mofo repo:
  cvs -d:ext:cltbld@cvs.mozilla.org:/mofo co -d opsi ref-platforms/opsi/default-packages
  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:
Then, as root, use opsi-package-manager to install them:
  su -
  su -
  cd ~cltbld/opsi
  cd ~cltbld/opsi-packages
  opsi-package-manager -i *.opsi
  opsi-package-manager -i *.opsi
cd ~cltbld


= Set the pcpatch password =
= Set the pcpatch password =

Revision as of 20:34, 13 April 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
mkdir .ssh
scp cltbld@some-machine-with-the-keys:.ssh/id_dsa* .

Install some software

apt-get install cvs python-dev rsync
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
su -c '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 -Oopsi-prep.vbs https://bugzilla.mozilla.org/attachment.cgi?id=370849