[wpkg-users] How can I ignore non-existent profiles
Rainer Meier
r.meier at wpkg.org
Fri May 25 19:37:21 CEST 2012
Hi Carl,
On 25.05.2012 16:16, Carl van Eijk wrote:
> I've noticed that application of all profiles fail if there is a reference to
> just one non existent profile.
...
> Even though neither "wbl_uk_computers" nor "wbl00379" exist, I still want "test"
> to apply.
>
> How do I go about this?
In fact a host definition which refers to profiles which cannot be found is
invalid and there are very good reasons for it.
If WPKG cannot find a profile, then this might be due to errors in profile
definition, missing profile files, failed to mount/access share or other reason.
WPKG cannot know whether the profile referenced is just missing by accident or
not. If WPKG would allow missing profiles and continues anyway this would lead
to extremely dangerous situation that if a profile is temporary unavailable WPKG
will just uninstall any package which was assigned through this profile earlier.
So it might cause serious unwanted injury to your existing systems. Therefore
WPKG aborts if profiles which are not found are referenced. There is no way to
override it.
I think the best and very cleanway would be to extend your VB script to assure
that there is a profile for any of your groups. Even if the profile is empty.
This way all the references would be valid and if (forany reason) profiles.xml
cannot be loaded WPKG would not simply uninstall all the software from your clients.
br,
Rainer
More information about the wpkg-users
mailing list