Re: [Freeipa-devel] FleetCommander integration

2016-10-13 Thread Alexander Bokovoy

On to, 13 loka 2016, Sumit Bose wrote:

On Tue, Sep 06, 2016 at 01:18:14PM +0300, Alexander Bokovoy wrote:

Hi,

Now that FreeIPA 4.4.1 is out, I've pushed to github my prototype for
FleetCommander integration: https://github.com/abbra/freeipa-desktop-profile/

You can read the design page:
https://github.com/abbra/freeipa-desktop-profile/blob/master/plugin/Feature.mediawiki


Hi Alexander,

if I understand it correctly each profile has a priority which is used
by FleetCommander on the client side to order the different profiles if
for a given user and host multiple rules matches.

To make this work smoothly each priority value should be only assigned
once to avoid a tie. Are you planning to use the uniqueness plugin on
the priority value or are there other ways to solve ties reliable in
FleetCommander?

I'm not planning to make priorities unique. Do we really need that?
My idea was to make sure we provide clear sorting logic:

profilename.json file name is built using profile RDN and is prefixed by
the priority of the profile rule using leading zeros. To ease handling
of the files, SSSD may transform RDN value by removing certain
characters used by the shell for globing purposes and by replacing
spaces with underscores. Since the name of the file is only used to
ensure ordering of the profiles when merging them, a lexicographical
sort of names should be enough.



Example: For a profile rule 'Minimal Desktop For Guests' stored as
cn=Minimal desktop for guests,cn=rules,cn=desktop-profile,$SUFFIX with a
priority 100, SSSD would use a file name '000100_Minimal_desktop_for_guests.json'. 



Given that you would not be able to have exact same RDN value in two
different profiles, using lexicographical sort gives you explicit
ordering schema. 


--
/ Alexander Bokovoy

--
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code


Re: [Freeipa-devel] FleetCommander integration

2016-10-13 Thread Sumit Bose
On Tue, Sep 06, 2016 at 01:18:14PM +0300, Alexander Bokovoy wrote:
> Hi,
> 
> Now that FreeIPA 4.4.1 is out, I've pushed to github my prototype for
> FleetCommander integration: https://github.com/abbra/freeipa-desktop-profile/
> 
> You can read the design page:
> https://github.com/abbra/freeipa-desktop-profile/blob/master/plugin/Feature.mediawiki

Hi Alexander,

if I understand it correctly each profile has a priority which is used
by FleetCommander on the client side to order the different profiles if
for a given user and host multiple rules matches.

To make this work smoothly each priority value should be only assigned
once to avoid a tie. Are you planning to use the uniqueness plugin on
the priority value or are there other ways to solve ties reliable in
FleetCommander?

bye,
Sumit

> 
> The design was mostly figured out in discussions with Alberto, Fabiano,
> Nathaniel, and Jakub, so we are more or less on the common ground here
> between SSSD and FleetCommander. You can send pull requests to me on
> github to update the design. ;)
> 
> You can cut a tarball using
> git archive --format=tar.gz --prefix=freeipa-desktop-profile-0.0.1/ \
>   --output ~/rpmbuild/SOURCES/freeipa-desktop-profile-0.0.1.tar.gz \
>   freeipa-desktop-profile-0.0.1
> 
> And then build the package with
> rpmbuild -ta freeipa-desktop-profile-0.0.1.tar.gz
> 
> When installed, the package does not run ipa-server-upgrade by itself,
> yet. So you need to run ipa-server-upgrade manually. Once ran,
> deskprofile/deskprofilerule topics would become available and can be
> used for testing purposes. For Fedora 24 one can use FreeIPA 4.4.1 from
> COPR, for Fedora 25 we have FreeIPA 4.4.1 in updates stable as of today.
> 
> UI plugin is not ready yet and is disabled in the spec file as it breaks
> loading the whole UI.
> 
> -- 
> / Alexander Bokovoy
> 
> -- 
> Manage your subscription for the Freeipa-devel mailing list:
> https://www.redhat.com/mailman/listinfo/freeipa-devel
> Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code

-- 
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code


Re: [Freeipa-devel] FleetCommander integration

2016-09-21 Thread Alberto Ruiz Ruiz
Hello Alexander,

So, I've been assigned with a new team/project just this week (related to
hardware enablement/support), I'll still manage Fleet Commander but this
means I won't have time to be involved in the implementation.

I will be delegating the discussion between you and Oliver Gutierrez,
Oliver is spending a few weeks in Brno, so I'm expecting he will catch up a
bit on Fleet Commander with Fabiano.

As I was the sole maintainer of the client daemon so I'll still be around
for questions and small changes, if only until I find someone to assign to
it within the bigger team.

I would expect Oliver would go ahead and start testing your test plugin
right away.

On Mon, Sep 12, 2016 at 4:36 PM, Alberto Ruiz Ruiz 
wrote:

> Hey Alexander,
>
> Just a heads up, we're in the middle of releasing 0.8 just this week so
> we're testing like mad.
>
> Right after 0.8 is out, we should be able to sit down and look into
> FreeIPA integration right away and will certainly look into this.
>
> And sorry for the late reply
>
> On Tue, Sep 6, 2016 at 11:18 AM, Alexander Bokovoy 
> wrote:
>
>> Hi,
>>
>> Now that FreeIPA 4.4.1 is out, I've pushed to github my prototype for
>> FleetCommander integration: https://github.com/abbra/freei
>> pa-desktop-profile/
>>
>> You can read the design page:
>> https://github.com/abbra/freeipa-desktop-profile/blob/master
>> /plugin/Feature.mediawiki
>>
>> The design was mostly figured out in discussions with Alberto, Fabiano,
>> Nathaniel, and Jakub, so we are more or less on the common ground here
>> between SSSD and FleetCommander. You can send pull requests to me on
>> github to update the design. ;)
>>
>> You can cut a tarball using
>> git archive --format=tar.gz --prefix=freeipa-desktop-profile-0.0.1/ \
>>   --output ~/rpmbuild/SOURCES/freeipa-desktop-profile-0.0.1.tar.gz
>> \
>>   freeipa-desktop-profile-0.0.1
>>
>> And then build the package with
>> rpmbuild -ta freeipa-desktop-profile-0.0.1.tar.gz
>>
>> When installed, the package does not run ipa-server-upgrade by itself,
>> yet. So you need to run ipa-server-upgrade manually. Once ran,
>> deskprofile/deskprofilerule topics would become available and can be
>> used for testing purposes. For Fedora 24 one can use FreeIPA 4.4.1 from
>> COPR, for Fedora 25 we have FreeIPA 4.4.1 in updates stable as of today.
>>
>> UI plugin is not ready yet and is disabled in the spec file as it breaks
>> loading the whole UI.
>>
>> --
>> / Alexander Bokovoy
>>
>
>
>
> --
> Alberto Ruiz
> Engineering Supervisor - Desktop Management Tools
> Red Hat
>



-- 
Alberto Ruiz
Engineering Supervisor - Desktop Management Tools
Red Hat
-- 
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code

Re: [Freeipa-devel] FleetCommander integration

2016-09-21 Thread Alexander Bokovoy

Hi Alberto,

On Wed, 21 Sep 2016, Alberto Ruiz Ruiz wrote:

Hello Alexander,

So, I've been assigned with a new team/project just this week (related to
hardware enablement/support), I'll still manage Fleet Commander but this
means I won't have time to be involved in the implementation.

I will be delegating the discussion between you and Oliver Gutierrez,
Oliver is spending a few weeks in Brno, so I'm expecting he will catch up a
bit on Fleet Commander with Fabiano.

As I was the sole maintainer of the client daemon so I'll still be around
for questions and small changes, if only until I find someone to assign to
it within the bigger team.

I would expect Oliver would go ahead and start testing your test plugin
right away.

Got it. Let's discuss on IRC (freenode, #freeipa or #sssd) whenever you
guys would have time any issues you'll encounter. 


--
/ Alexander Bokovoy

--
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code


Re: [Freeipa-devel] FleetCommander integration

2016-09-12 Thread Alberto Ruiz Ruiz
Hey Alexander,

Just a heads up, we're in the middle of releasing 0.8 just this week so
we're testing like mad.

Right after 0.8 is out, we should be able to sit down and look into FreeIPA
integration right away and will certainly look into this.

And sorry for the late reply

On Tue, Sep 6, 2016 at 11:18 AM, Alexander Bokovoy 
wrote:

> Hi,
>
> Now that FreeIPA 4.4.1 is out, I've pushed to github my prototype for
> FleetCommander integration: https://github.com/abbra/freei
> pa-desktop-profile/
>
> You can read the design page:
> https://github.com/abbra/freeipa-desktop-profile/blob/master
> /plugin/Feature.mediawiki
>
> The design was mostly figured out in discussions with Alberto, Fabiano,
> Nathaniel, and Jakub, so we are more or less on the common ground here
> between SSSD and FleetCommander. You can send pull requests to me on
> github to update the design. ;)
>
> You can cut a tarball using
> git archive --format=tar.gz --prefix=freeipa-desktop-profile-0.0.1/ \
>   --output ~/rpmbuild/SOURCES/freeipa-desktop-profile-0.0.1.tar.gz
> \
>   freeipa-desktop-profile-0.0.1
>
> And then build the package with
> rpmbuild -ta freeipa-desktop-profile-0.0.1.tar.gz
>
> When installed, the package does not run ipa-server-upgrade by itself,
> yet. So you need to run ipa-server-upgrade manually. Once ran,
> deskprofile/deskprofilerule topics would become available and can be
> used for testing purposes. For Fedora 24 one can use FreeIPA 4.4.1 from
> COPR, for Fedora 25 we have FreeIPA 4.4.1 in updates stable as of today.
>
> UI plugin is not ready yet and is disabled in the spec file as it breaks
> loading the whole UI.
>
> --
> / Alexander Bokovoy
>



-- 
Alberto Ruiz
Engineering Supervisor - Desktop Management Tools
Red Hat
-- 
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code