OPSI Netboot Python

Antworten
convoy74
Beiträge: 40
Registriert: 06 Jul 2020, 10:24
Wohnort: Allgäu
Kontaktdaten:

OPSI Netboot Python

Beitrag von convoy74 »

Hallo,

ich möchte mir ein eigenes ganz spezielles Netboot Produkt erstellen.
Jetzt gibt es ja die master.py bzw die unter Linux Produkten ein xxx.py
Dort werden verschiedene OPSI Python Module verwendet.

Leider habe ich keine Informationen über diese Module gefunden.
Gibt es hierzu irgend eine Doku?

Danke

Manfred
Benutzeravatar
m.radtke
uib-Team
Beiträge: 1534
Registriert: 10 Jun 2015, 12:19

Re: OPSI Netboot Python

Beitrag von m.radtke »

Hallo Manfred,

eins vorweg: früher was das Master Skript ein Skript, heute ist es eine Binary.

Die Binary verwendet folgende opsi Abhängigkeiten
python-opsi
python-opsi-system
python-opsi-common

In python-opsi-system sind ein paar Libs für das Bootimage selbst.
Den Code für python-opsi und python-opsi-common findest du auf github
https://github.com/opsi-org/python-opsi-common
https://github.com/opsi-org/python-opsi

Gruß
Mathias
Kein Support per DM!
_________________________
opsi support - http://www.uib.de/
For productive opsi installations we recommend support contracts.
convoy74
Beiträge: 40
Registriert: 06 Jul 2020, 10:24
Wohnort: Allgäu
Kontaktdaten:

Re: OPSI Netboot Python

Beitrag von convoy74 »

Danke, dass hilft schon mal!

Ich versuche mich daran ein Linux Netboot zu bauen, daher verwende ich die sles.py als Beispiel.
Ich brauche vorallem Informationen die im OPSI gespeichert sind, wie domain, aber auch die IP usw.
In der pcpatch, welches das Skript erzeugt, kann man schon einiges finden. Man kann dort ja auch sehr gut einiges hinzufügen.
Aber solche muss man erstmal aus dem System bekommen.

Außerdem wäre interessant, welche Python Module zur Verfügung stehen. Kann man eventuell auch eigene Module integrieren?
Benutzeravatar
m.radtke
uib-Team
Beiträge: 1534
Registriert: 10 Jun 2015, 12:19

Re: OPSI Netboot Python

Beitrag von m.radtke »

Hi

folgende extra Module sind eingebaut, welche nicht im Standart enthalten sind.

Code: Alles auswählen

python = ">=3.11,<3.12"
binwalk = "^2.1.0"
cryptography = "^41.0"
configparser = "^6.0.0"
newt = "^0.1.0"
pykickstart = "^3.20"
tftpy = "^0.8.0"
requests = "^2.24.0"
twisted = ">=22.1,<23.0"
pycryptodome = "^3.9.8"
service_identity = "^23.0"
sqlalchemy = "^1.4"
python-opsi = "^4.3.0.27"
python-opsi-system = "^4.3.0.0"
python-opsi-common = "^4.3.0.76"
Kein Support per DM!
_________________________
opsi support - http://www.uib.de/
For productive opsi installations we recommend support contracts.
Antworten