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

2012-05-28 Thread Carl van Eijk
>
> 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  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
>
>
-
wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
___
wpkg-users mailing list
wpkg-users@lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users


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

2012-05-25 Thread Rainer Meier

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
-
wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
___
wpkg-users mailing list
wpkg-users@lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users


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

2012-05-25 Thread Carl van Eijk
Hi,

I've noticed that application of all profiles fail if there is a reference
to just one non existent profile.

Example configs:

Hosts.xml




 

 



profiles.xml


http://www.wpkg.org/profiles";
 xmlns:wpkg="http://www.wpkg.org/wpkg"; xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance";
 xsi:schemaLocation="http://www.wpkg.org/profiles xsd/profiles.xsd ">




 



Even though neither "wbl_uk_computers" nor "wbl00379" exist, I still want
"test" to apply.

How do I go about this?

Not necessarily relevant; but a little more background...

I've written a vbscript that generates the hosts.xml with the profile ids
for each host generated from the active directory group membership.
Managing the configuration by nesting the OUs is not desirable in our case.
If I can ignore non-existent profiles, I can then use wkpg to deploy some
software and still use GPOs


Thanks,
Carl
-
wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
___
wpkg-users mailing list
wpkg-users@lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users