Hostname on Opsi server

Antworten
Infotech
Beiträge: 15
Registriert: 06 Jun 2025, 12:25

Hostname on Opsi server

Beitrag von Infotech »

Hello guys,

How to change name of opsi server?
Is there a way when deploying a docker container in .yml docker file to change it and then bring up the server with correct name and not: opsi.domain.tld

It makes problems later with clients.
Benutzeravatar
j.schneider
uib-Team
Beiträge: 2042
Registriert: 29 Mai 2008, 15:14

Re: Hostname on Opsi server

Beitrag von j.schneider »

Hello,

sure, you can just change "hostname: opsi" and "domainname: domain.tld" in the docker-compose.yml.

Best regards,
Jan Schneider


Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.

Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.

uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de


Infotech
Beiträge: 15
Registriert: 06 Jun 2025, 12:25

Re: Hostname on Opsi server

Beitrag von Infotech »

Hello Jan,

So shorty run opsi-server.sh, stop the containers, change the docker-compose.yml file and then bring the containers up again?
Benutzeravatar
j.schneider
uib-Team
Beiträge: 2042
Registriert: 29 Mai 2008, 15:14

Re: Hostname on Opsi server

Beitrag von j.schneider »

This should be sufficient:

* docker compose down
* Modify docker-compose.yml
* docker compose up -d


Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.

Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.

uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de


Infotech
Beiträge: 15
Registriert: 06 Jun 2025, 12:25

Re: Hostname on Opsi server

Beitrag von Infotech »

Hello again,

I just tried it but without success
- When I try to push installation this is the error message I can see on the client side:
" Failed to connect: Opsi service connection error: HTTPSConnectionPool(host='opsi.domain.tld', port=4447): Max retries exceeded with "

It's still trying to connect to opsi.domain.tld
Benutzeravatar
j.schneider
uib-Team
Beiträge: 2042
Registriert: 29 Mai 2008, 15:14

Re: Hostname on Opsi server

Beitrag von j.schneider »

The old service URL is still configured on the client.
You need to change the URL in the opsiclientd.conf or reinstall the opsi-client-agent.


Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.

Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.

uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de


Infotech
Beiträge: 15
Registriert: 06 Jun 2025, 12:25

Re: Hostname on Opsi server

Beitrag von Infotech »

Hello,

I tried reinstalling, and setting everything from scratch but its the same problem.
Installing the client on every pc then reconfiguring the client config is not suitable. Lot of manual work.

Is there a way to reconfigure the client before its installed then use the same client for everybody?
Infotech
Beiträge: 15
Registriert: 06 Jun 2025, 12:25

Re: Hostname on Opsi server

Beitrag von Infotech »

Is there another way of installing clients because downloading the client from opsi config server is just "bad", i tried it multiple times and its always doing this:
"[6] [2025-06-07 19:26:45.320] [permanent service connection ] CA cert file 'C:\opsi.org\tls\opsi-ca-cert.pem' successfully updated (2 certificates total) (opsiservice.py:840)
[3] [2025-06-07 19:26:45.324] [permanent service connection ] Connection to opsi service https://opsi.domain.tld:4447 failed: Opsi service connection error: HTTPSConnectionPool(host='opsi.domain.tld', port=4447): Max retries exceeded with url: /rpc (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x0BA1DA10>: Failed to resolve 'opsi.domain.tld' ([Errno 11001] getaddrinfo failed)")) (OpsiService.py:396)
[6] [2025-06-07 19:26:45.324] [permanent service connection ] Failed to connect: Opsi service connection error: HTTPSConnectionPool(host='opsi.domain.tld', port=4447): Max retries exceeded with url: /rpc (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x0BA1DA10>: Failed to resolve 'opsi.domain.tld' ([Errno 11001] getaddrinfo failed)")) (OpsiService.py:270)"

Always trying to connect to some default value.
Benutzeravatar
j.schneider
uib-Team
Beiträge: 2042
Registriert: 29 Mai 2008, 15:14

Re: Hostname on Opsi server

Beitrag von j.schneider »


Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.

Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.

uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de


Antworten