[wpkg-users] How can I ignore non-existent profiles

Carl van Eijk carl.vaneijk+wpkg at gmail.com
Mon May 28 14:22:48 CEST 2012


>
> Hi Rainer,
>
> Thanks for the response.
>
> I was hoping there was a switch or mode to bypass this behaviour, but it
> seems that it's designed that way. As you suggested, I'll expand my script
> to auto-generate any missing profiles. It adds a level of complexity I
> would have liked to avoid, but it's no big deal.
>
> I'll put up my scripts once I'm done as I'm sure others could make use of
> them.
>
> Thanks again,
>
> Carl.
>
>  On 25 May 2012 18:37, Rainer Meier <r.meier at wpkg.org> wrote:
>
>> 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
>>
>
>
>
> --
> Carl van Eijk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/wpkg-users/attachments/20120528/44365e72/attachment-0002.html>


More information about the wpkg-users mailing list