Prevent opsi-agent from being installed

Antworten
ttblum
Beiträge: 97
Registriert: 23 Jun 2017, 14:18
Wohnort: Cleveland, Ohio USA

Prevent opsi-agent from being installed

Beitrag von ttblum »

Hello,

We'd like to use opsi for unattended Windows installs, but we're still using PDQ Deploy for software deployment.

Is there a way to configure opsi so that it doesn't install the opsi-agent after install?
uncle_scrooge
Beiträge: 650
Registriert: 21 Feb 2012, 12:03
Wohnort: Mainz

Re: Prevent opsi-agent from being installed

Beitrag von uncle_scrooge »

When you are sure you never ever will install the agent during OS deployment you can do it the hard way:
Rename
install/opsi-client-agent/files/opsi/postinst.d/50_opsi-client-agent.cmd
to i.e. 50_opsi-client-agent.txt

Drawback is your netboot install stays in running/unknown.
And, if there is a new version of the agent and you run opsi-product-updater chances are that the original file will be in place again.

If someone asks, I've never told you.....

Maybe we can fiddle with a postinst script. Will try tomorrow.
uncle_scrooge
Beiträge: 650
Registriert: 21 Feb 2012, 12:03
Wohnort: Mainz

Re: Prevent opsi-agent from being installed

Beitrag von uncle_scrooge »

As promised....

Build a batch file (i.e. 01_block_inst_agent.cmd; leading number must be lower than 50) with content like this

cd c:\tmp\postinst.d
ren 50_opsi-client-agent.cmd 50_opsi-client-agent.txt

and put it in install/<yournetbootproduct>/custom/postinst.d

This way you leave the opsi-agent package untouched.
Drawback is still the state as running/unknown in ConfigEd.
State is set during agent install by a service call. You might check setup.opsiscript inside the agent package. And build the call on your own in a postinst batch.
Antworten