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
OPSI Netboot Python
Re: OPSI Netboot Python
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
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.
_________________________
opsi support - http://www.uib.de/
For productive opsi installations we recommend support contracts.
Re: OPSI Netboot Python
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?
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?
Re: OPSI Netboot Python
Hi
folgende extra Module sind eingebaut, welche nicht im Standart enthalten sind.
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.
_________________________
opsi support - http://www.uib.de/
For productive opsi installations we recommend support contracts.