[wpkg-users] Java7 for all but one host

Carlos Gomes - STI Unesp Franca cgomes at franca.unesp.br
Fri Nov 1 23:01:16 CET 2013


Why not create a fully different profile for that machine, that dont have
the package java 7?

For instance we have a group for only one machine, which is our out of
production test environment, that has a different group and softwares /
packages not set up to it wont be installed.




2013/11/1 Stefan Pendl <stefan.pendl.71 at gmail.com>

>  Am 01.11.2013 14:35, schrieb Jáder Marasca:
>
> Stefan
>
>  Thanks by your quick ansser... but I´m not sure if I understood it.
> I have a Java7 package as from wiki page.
> I´ll update it to include the new verification.
>
>  It will became something like to avoid install on hostname "PC-MICHELE":
>
>
>  (...)
>   name="Java Runtime Environment 7"
>   revision="%version%"
>   reboot="false"
>   priority="100">
> *  <condition>*
> *            <check type="logical" condition="not">*
> *                <check type="host" condition="hostname"
> value="PC-MICHELE"/>*
> *            </check>*
> *  </condition>*
>
>
>   No, that doesn't work as you may think and it is not supported either.
>
> There are multiple ways to exclude a package.
>
> In my case I add the "Java" package to all profiles and that package will
> decide which Java version to install.
> This will reduce the need to add host checks to one spot.
>
> Since I don't know your WPKG structure it is hard to tell what would be
> the best way for you.
>
> If you have one common profile, you can exclude the host in that profile,
> so you only need the "Java7" package.
>
> If you have no common profile, you would end up with two packages, "Java"
> and "Java7", where "Java" is included in every profile and it will decide
> if "Java7" needs to be installed.
>
> Make sure to read the change log file shipping with WPKG, so you know what
> is really supported.
>
>
> --
> Stefan P.
>
> Top-posting:
> A: Because it messes up the order in which people normally read text.
> Q: Why is top-posting such a bad thing?
> A: Top-posting.
> Q: What is the most annoying thing in e-mail?
>
>
> -------------------------------------------------------------------------
> Hotel discounts, best prices: http://www.booking.com/index.html?aid=366545
> -------------------------------------------------------------------------
> wpkg-users mailing list archives >>
> http://lists.wpkg.org/pipermail/wpkg-users/
> _______________________________________________
> wpkg-users mailing list
> wpkg-users at lists.wpkg.org
> http://lists.wpkg.org/mailman/listinfo/wpkg-users
>
>


-- 
[]'s
---------------------------------
Carlos Gomes
Assistente de Informática II - STI
skype: cgomes.unesp
55(16)3706-8783
UNESP/Franca - FCHS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/wpkg-users/attachments/20131101/f4fba9bb/attachment-0003.html>


More information about the wpkg-users mailing list