install multiple packages on depot server?

Antworten
Benutzeravatar
SisterOfMercy
Beiträge: 1556
Registriert: 22 Jun 2012, 19:18

install multiple packages on depot server?

Beitrag von SisterOfMercy »

I'm trying to setup a few slave depot servers. I'm trying to avoid having to run 'opsi-package-manager -i %package% -d all' in every package directory.

Isn't there a easier way to put all packages on a new depot? All packages are installed on the current server with 'opsi-package-manager -i %package%'. This does not upload it to the local repository. So using opsi-product-updater on the new depot will not work.

Is there also a better way to sync netboot products? I've found this topic: viewtopic.php?t=4332

This would mean you would also have to sync driver directories by hand, and other changes. For instance, any changes in \\opsi\opsi_depot_rw\win7-x64\custom\unattend.xml will not be synced.
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
loggenk
Beiträge: 163
Registriert: 15 Nov 2012, 17:34

Re: install multiple packages on depot server?

Beitrag von loggenk »

Hi,

I use rsync for that action

Greetings,

Kees...
Benutzeravatar
SisterOfMercy
Beiträge: 1556
Registriert: 22 Jun 2012, 19:18

Re: install multiple packages on depot server?

Beitrag von SisterOfMercy »

loggenk hat geschrieben:I use rsync for that action
How do you do that? I mean, do you synch the entire directory, or do you have seperate entries for each subdir that should be synched?

I solved the problem of no packages in the repository this way:

Code: Alles auswählen

cd /home/opsiproducts
find . -name *.opsi | sort
This gives a list like this:

Code: Alles auswählen

./inkscape/inkscape_0.91-1.opsi
./insted/insted_1.5.15.26-1.opsi
./ipe/ipe_7.1.7-1.opsi
./java-runtime/java-runtime_1.8.0.60-1.opsi 
Add a few spaces and a command.. this works:

Code: Alles auswählen

opsi-package-manager -i ./inkscape/inkscape_0.91-1.opsi ./insted/insted_1.5.15.26-1.opsi ./ipe/ipe_7.1.7-1.opsi ./java-runtime/java-runtime_1.8.0.60-1.opsi -d new-depot.domain.thingie
Of course, after this, the new depot server has everything stored in the repository which will be used for other depot servers.
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
Antworten