Seite 1 von 1
Automatic software setup for new hosts
Verfasst: 06 Mai 2014, 21:47
von nbaker
Hello,
What is the best way to join the domain (using the windomain product) and also install a set of standard products for all new hosts that are added? Is it possible to set a default Requested Action for a product to "setup", so that any new host that is created will get that product? Or would it be necessary to create a custom script in the postinst.d directory that joins the domain and installs these products?
I know that some people are joining the domain with unattend.xml, but it sounds like using the windomain product is recommended instead. It would be better to not have to set each required product to "setup" every time a new host is created, but I guess creating a product group containing all of them would make it easier.
Thanks!
Nate
Re: Automatic software setup for new hosts
Verfasst: 06 Mai 2014, 23:07
von dkoch
Most people just create products that have no actual actions but lots of dependencies. You can set this product to setup then and everything else will be marked for setup as well.
Windomain works just fine
Re: Automatic software setup for new hosts
Verfasst: 07 Mai 2014, 05:35
von nbaker
I was thinking about modifying the OS netboot package and adding one or more "after" dependencies. Anyone try that and have any luck with it? I'll probably give it a shot tomorrow.
The other idea I had was to create a custom postinst.d script that installs a package, which would have a bunch of dependencies like you suggested. I'm not exactly sure if that's possible yet, but I might try that too.
I know it's basically just eliminating one step, I'm just trying to make it as few steps as possible to get a new host ready. If neither of those work, I'll just do what you suggested.
Re: Automatic software setup for new hosts
Verfasst: 07 Mai 2014, 14:54
von loggenk
Hi,
In /var/lib/opsi/config/templates/pcproto.ini
[localboot_product_states]
7zip = not_installed:setup
java = not_installed:setup
acrobatreader = not_installed:setup
activatewin7 = not_installed:setup
junopulse = not_installed:setup
msoffice2007 = not_installed:setup
tortoisesvn = not_installed:setup
windomain = not_installed:setup
hwaudit = not_installed:setup
swaudit = not_installed:setup
lync = not_installed:setup
[7zip-state]
modificationtime = 2013-03-21 21:05:00
producttype = LocalbootProduct
[java-state]
modificationtime = 2013-03-21 21:05:00
producttype = LocalbootProduct
[acrobatreader-state]
modificationtime = 2013-03-21 21:05:00
producttype = LocalbootProduct
and so on.
Hope this helps
Re: Automatic software setup for new hosts
Verfasst: 07 Mai 2014, 17:23
von nbaker
Thanks loggenk, that's some great info! I didn't see that in the documentation, but now I see some previous forum posts about it.
My only concern is that if I add clients that are not going to get a full OS reinstall, they will also get those products installed even if they already have them all (from previous manual installations). If the packages are created to check for previous installations, that would probably still be okay. I guess I'll need to try a couple different scenarios and see what works best.
I appreciate all the suggestions, OPSI is a very impressive product!