Re: [openstack-dev] [puppet][keystone] Choose domain names with 'composite namevar' or 'meaningless name'?

2015-10-29 Thread Gilles Dubreuil
On 16/10/15 00:14, Emilien Macchi wrote: > This thread is really huge and only 3 people are talking. > Why don't you continue on an etherpad and do some brainstorm on it? > If you do so, please share the link here. > > It would be much more effective in my opinion. I think we're almost there

Re: [openstack-dev] [puppet][keystone] Choose domain names with 'composite namevar' or 'meaningless name'?

2015-10-29 Thread Gilles Dubreuil
On 29/10/15 17:32, Gilles Dubreuil wrote: > > > On 16/10/15 00:14, Emilien Macchi wrote: >> This thread is really huge and only 3 people are talking. >> Why don't you continue on an etherpad and do some brainstorm on it? >> If you do so, please share the link here. >> >> It would be much more

Re: [openstack-dev] [puppet][keystone] Choose domain names with 'composite namevar' or 'meaningless name'?

2015-10-15 Thread Sofer Athlan-Guyot
Gilles Dubreuil writes: > On 08/10/15 03:40, Rich Megginson wrote: >> On 10/07/2015 09:08 AM, Sofer Athlan-Guyot wrote: >>> Rich Megginson writes: >>> On 10/06/2015 02:36 PM, Sofer Athlan-Guyot wrote: > Rich Megginson

Re: [openstack-dev] [puppet][keystone] Choose domain names with 'composite namevar' or 'meaningless name'?

2015-10-15 Thread Emilien Macchi
This thread is really huge and only 3 people are talking. Why don't you continue on an etherpad and do some brainstorm on it? If you do so, please share the link here. It would be much more effective in my opinion. On 10/15/2015 08:26 AM, Sofer Athlan-Guyot wrote: > Gilles Dubreuil

Re: [openstack-dev] [puppet][keystone] Choose domain names with 'composite namevar' or 'meaningless name'?

2015-10-11 Thread Gilles Dubreuil
On 08/10/15 03:40, Rich Megginson wrote: > On 10/07/2015 09:08 AM, Sofer Athlan-Guyot wrote: >> Rich Megginson writes: >> >>> On 10/06/2015 02:36 PM, Sofer Athlan-Guyot wrote: Rich Megginson writes: > On 09/30/2015 11:43 AM, Sofer

Re: [openstack-dev] [puppet][keystone] Choose domain names with 'composite namevar' or 'meaningless name'?

2015-10-07 Thread Sofer Athlan-Guyot
Rich Megginson writes: > On 10/06/2015 02:36 PM, Sofer Athlan-Guyot wrote: >> Rich Megginson writes: >> >>> On 09/30/2015 11:43 AM, Sofer Athlan-Guyot wrote: Gilles Dubreuil writes: > On 30/09/15 03:43, Rich Megginson

Re: [openstack-dev] [puppet][keystone] Choose domain names with 'composite namevar' or 'meaningless name'?

2015-10-07 Thread Sofer Athlan-Guyot
Rich Megginson writes: > On 10/06/2015 02:36 PM, Sofer Athlan-Guyot wrote: >> Rich Megginson writes: >> >>> On 09/30/2015 11:43 AM, Sofer Athlan-Guyot wrote: Gilles Dubreuil writes: > On 30/09/15 03:43, Rich Megginson

Re: [openstack-dev] [puppet][keystone] Choose domain names with 'composite namevar' or 'meaningless name'?

2015-10-07 Thread Rich Megginson
On 10/07/2015 09:08 AM, Sofer Athlan-Guyot wrote: Rich Megginson writes: On 10/06/2015 02:36 PM, Sofer Athlan-Guyot wrote: Rich Megginson writes: On 09/30/2015 11:43 AM, Sofer Athlan-Guyot wrote: Gilles Dubreuil writes: On

Re: [openstack-dev] [puppet][keystone] Choose domain names with 'composite namevar' or 'meaningless name'?

2015-10-06 Thread Rich Megginson
On 10/06/2015 02:36 PM, Sofer Athlan-Guyot wrote: Rich Megginson writes: On 09/30/2015 11:43 AM, Sofer Athlan-Guyot wrote: Gilles Dubreuil writes: On 30/09/15 03:43, Rich Megginson wrote: On 09/28/2015 10:18 PM, Gilles Dubreuil wrote: On 15/09/15

Re: [openstack-dev] [puppet][keystone] Choose domain names with 'composite namevar' or 'meaningless name'?

2015-10-06 Thread Sofer Athlan-Guyot
Rich Megginson writes: > On 09/30/2015 11:43 AM, Sofer Athlan-Guyot wrote: >> Gilles Dubreuil writes: >> >>> On 30/09/15 03:43, Rich Megginson wrote: On 09/28/2015 10:18 PM, Gilles Dubreuil wrote: > On 15/09/15 19:55, Sofer Athlan-Guyot wrote:

Re: [openstack-dev] [puppet][keystone] Choose domain names with 'composite namevar' or 'meaningless name'?

2015-10-01 Thread Sofer Athlan-Guyot
Rich Megginson writes: > On 09/30/2015 11:43 AM, Sofer Athlan-Guyot wrote: >> Gilles Dubreuil writes: >> >>> On 30/09/15 03:43, Rich Megginson wrote: On 09/28/2015 10:18 PM, Gilles Dubreuil wrote: > On 15/09/15 19:55, Sofer Athlan-Guyot wrote:

Re: [openstack-dev] [puppet][keystone] Choose domain names with 'composite namevar' or 'meaningless name'?

2015-09-30 Thread Sofer Athlan-Guyot
Gilles Dubreuil writes: > On 30/09/15 03:43, Rich Megginson wrote: >> On 09/28/2015 10:18 PM, Gilles Dubreuil wrote: >>> >>> On 15/09/15 19:55, Sofer Athlan-Guyot wrote: Gilles Dubreuil writes: > On 15/09/15 06:53, Rich Megginson wrote: >>

Re: [openstack-dev] [puppet][keystone] Choose domain names with 'composite namevar' or 'meaningless name'?

2015-09-30 Thread Gilles Dubreuil
On 30/09/15 03:43, Rich Megginson wrote: > On 09/28/2015 10:18 PM, Gilles Dubreuil wrote: >> >> On 15/09/15 19:55, Sofer Athlan-Guyot wrote: >>> Gilles Dubreuil writes: >>> On 15/09/15 06:53, Rich Megginson wrote: > On 09/14/2015 02:30 PM, Sofer Athlan-Guyot wrote:

Re: [openstack-dev] [puppet][keystone] Choose domain names with 'composite namevar' or 'meaningless name'?

2015-09-30 Thread Rich Megginson
On 09/30/2015 11:43 AM, Sofer Athlan-Guyot wrote: Gilles Dubreuil writes: On 30/09/15 03:43, Rich Megginson wrote: On 09/28/2015 10:18 PM, Gilles Dubreuil wrote: On 15/09/15 19:55, Sofer Athlan-Guyot wrote: Gilles Dubreuil writes: On 15/09/15 06:53,

Re: [openstack-dev] [puppet][keystone] Choose domain names with 'composite namevar' or 'meaningless name'?

2015-09-29 Thread Rich Megginson
On 09/28/2015 10:18 PM, Gilles Dubreuil wrote: On 15/09/15 19:55, Sofer Athlan-Guyot wrote: Gilles Dubreuil writes: On 15/09/15 06:53, Rich Megginson wrote: On 09/14/2015 02:30 PM, Sofer Athlan-Guyot wrote: Hi, Gilles Dubreuil writes: A. The

Re: [openstack-dev] [puppet][keystone] Choose domain names with 'composite namevar' or 'meaningless name'?

2015-09-28 Thread Gilles Dubreuil
On 15/09/15 19:55, Sofer Athlan-Guyot wrote: > Gilles Dubreuil writes: > >> On 15/09/15 06:53, Rich Megginson wrote: >>> On 09/14/2015 02:30 PM, Sofer Athlan-Guyot wrote: Hi, Gilles Dubreuil writes: > A. The 'composite namevar'

Re: [openstack-dev] [puppet][keystone] Choose domain names with 'composite namevar' or 'meaningless name'?

2015-09-22 Thread Sofer Athlan-Guyot
Hi Rich, I've got the hang of it. It boils down to this: for a property of a puppet resource to be taken into account as a key of the resource it has to be a parameter, not a property: For the code to work you change newproperty(:domain) do to newparam(:domain) do As a side note, the

Re: [openstack-dev] [puppet][keystone] Choose domain names with 'composite namevar' or 'meaningless name'?

2015-09-18 Thread Rich Megginson
On 09/16/2015 02:58 PM, Cody Herriges wrote: I wrote my first composite namevar type a few years and ago and all the magic is basically a single block of code inside the type... https://github.com/puppetlabs/puppetlabs-java_ks/blob/master/lib/puppet/type/java_ks.rb#L145-L169 It basically boils

Re: [openstack-dev] [puppet][keystone] Choose domain names with 'composite namevar' or 'meaningless name'?

2015-09-17 Thread Gilles Dubreuil
On 17/09/15 06:58, Cody Herriges wrote: > I wrote my first composite namevar type a few years and ago and all the > magic is basically a single block of code inside the type... > > https://github.com/puppetlabs/puppetlabs-java_ks/blob/master/lib/puppet/type/java_ks.rb#L145-L169 > > It

Re: [openstack-dev] [puppet][keystone] Choose domain names with 'composite namevar' or 'meaningless name'?

2015-09-16 Thread Cody Herriges
I wrote my first composite namevar type a few years and ago and all the magic is basically a single block of code inside the type... https://github.com/puppetlabs/puppetlabs-java_ks/blob/master/lib/puppet/type/java_ks.rb#L145-L169 It basically boils down to these three things: * Pick your

Re: [openstack-dev] [puppet][keystone] Choose domain names with 'composite namevar' or 'meaningless name'?

2015-09-15 Thread Morgan Fainberg
On Mon, Sep 14, 2015 at 2:46 PM, Sofer Athlan-Guyot wrote: > Morgan Fainberg writes: > > > On Mon, Sep 14, 2015 at 1:53 PM, Rich Megginson > > wrote: > > > > > > On 09/14/2015 02:30 PM, Sofer Athlan-Guyot wrote: > > > >

Re: [openstack-dev] [puppet][keystone] Choose domain names with 'composite namevar' or 'meaningless name'?

2015-09-15 Thread Sofer Athlan-Guyot
Gilles Dubreuil writes: > On 15/09/15 06:53, Rich Megginson wrote: >> On 09/14/2015 02:30 PM, Sofer Athlan-Guyot wrote: >>> Hi, >>> >>> Gilles Dubreuil writes: >>> A. The 'composite namevar' approach: keystone_tenant {'projectX::domainY':

Re: [openstack-dev] [puppet][keystone] Choose domain names with 'composite namevar' or 'meaningless name'?

2015-09-15 Thread Sofer Athlan-Guyot
Rich Megginson writes: >>> This seems to be the hardest part - I still cannot figure out how to >>> use "compound" names with Puppet. >> I don't get this point. what is "2 or more resource could exists" and >> how it relates to compound names ? > > I would like to uniquely

Re: [openstack-dev] [puppet][keystone] Choose domain names with 'composite namevar' or 'meaningless name'?

2015-09-14 Thread Sofer Athlan-Guyot
Morgan Fainberg writes: > On Mon, Sep 14, 2015 at 1:53 PM, Rich Megginson > wrote: > > > On 09/14/2015 02:30 PM, Sofer Athlan-Guyot wrote: > > Hi, > > Gilles Dubreuil writes: > >

Re: [openstack-dev] [puppet][keystone] Choose domain names with 'composite namevar' or 'meaningless name'?

2015-09-14 Thread Morgan Fainberg
On Mon, Sep 14, 2015 at 1:53 PM, Rich Megginson wrote: > On 09/14/2015 02:30 PM, Sofer Athlan-Guyot wrote: > >> Hi, >> >> Gilles Dubreuil writes: >> >> A. The 'composite namevar' approach: >>> >>> keystone_tenant {'projectX::domainY': ... } >>> B.

Re: [openstack-dev] [puppet][keystone] Choose domain names with 'composite namevar' or 'meaningless name'?

2015-09-14 Thread Sofer Athlan-Guyot
Rich Megginson writes: > I think we could support both. I don't see it as an either/or > situation. +1 >>> A. >> I think it's the B: meaningless approach here. >> >>>Pros >>> - Easier names >> That's subjective, creating unique and meaningful name don't look easy

Re: [openstack-dev] [puppet][keystone] Choose domain names with 'composite namevar' or 'meaningless name'?

2015-09-14 Thread Sofer Athlan-Guyot
Hi, Gilles Dubreuil writes: > A. The 'composite namevar' approach: > >keystone_tenant {'projectX::domainY': ... } > B. The 'meaningless name' approach: > > keystone_tenant {'myproject': name='projectX', domain=>'domainY', ...} > > Notes: > - Actually using both

Re: [openstack-dev] [puppet][keystone] Choose domain names with 'composite namevar' or 'meaningless name'?

2015-09-14 Thread Rich Megginson
On 09/14/2015 03:26 PM, Sofer Athlan-Guyot wrote: Rich Megginson writes: I think we could support both. I don't see it as an either/or situation. +1 A. I think it's the B: meaningless approach here. Pros - Easier names That's subjective, creating unique

Re: [openstack-dev] [puppet][keystone] Choose domain names with 'composite namevar' or 'meaningless name'?

2015-09-14 Thread Rich Megginson
On 09/14/2015 02:30 PM, Sofer Athlan-Guyot wrote: Hi, Gilles Dubreuil writes: A. The 'composite namevar' approach: keystone_tenant {'projectX::domainY': ... } B. The 'meaningless name' approach: keystone_tenant {'myproject': name='projectX', domain=>'domainY',

Re: [openstack-dev] [puppet][keystone] Choose domain names with 'composite namevar' or 'meaningless name'?

2015-09-14 Thread Gilles Dubreuil
On 15/09/15 06:53, Rich Megginson wrote: > On 09/14/2015 02:30 PM, Sofer Athlan-Guyot wrote: >> Hi, >> >> Gilles Dubreuil writes: >> >>> A. The 'composite namevar' approach: >>> >>> keystone_tenant {'projectX::domainY': ... } >>> B. The 'meaningless name' approach: >>>

Re: [openstack-dev] [puppet][keystone] Choose domain names with 'composite namevar' or 'meaningless name'?

2015-09-13 Thread Gilles Dubreuil
On 12/09/15 00:52, Morgan Fainberg wrote: > On Fri, Sep 11, 2015 at 4:25 AM, Gilles Dubreuil > wrote: > > > > On 11/09/15 20:17, David Chadwick wrote: > > Whichever approach is adopted you need to consider the future and the > >

[openstack-dev] [puppet][keystone] Choose domain names with 'composite namevar' or 'meaningless name'?

2015-09-11 Thread Gilles Dubreuil
Hi, Today in the #openstack-puppet channel a discussion about the pro and cons of using domain parameter for Keystone V3 has been left opened. The context Domain names are needed in Openstack Keystone V3 for identifying users or groups (of users) within different projects (tenant).

Re: [openstack-dev] [puppet][keystone] Choose domain names with 'composite namevar' or 'meaningless name'?

2015-09-11 Thread David Chadwick
On 11/09/2015 14:32, Rich Megginson wrote: > On 09/11/2015 04:17 AM, David Chadwick wrote: >> Whichever approach is adopted you need to consider the future and the >> longer term objective of moving to fully hierarchical names. I believe >> the current Keystone approach is only an interim one,

Re: [openstack-dev] [puppet][keystone] Choose domain names with 'composite namevar' or 'meaningless name'?

2015-09-11 Thread Rich Megginson
On 09/11/2015 01:03 AM, Gilles Dubreuil wrote: Hi, Today in the #openstack-puppet channel a discussion about the pro and cons of using domain parameter for Keystone V3 has been left opened. The context Domain names are needed in Openstack Keystone V3 for identifying users or

Re: [openstack-dev] [puppet][keystone] Choose domain names with 'composite namevar' or 'meaningless name'?

2015-09-11 Thread Rich Megginson
On 09/11/2015 04:17 AM, David Chadwick wrote: Whichever approach is adopted you need to consider the future and the longer term objective of moving to fully hierarchical names. I believe the current Keystone approach is only an interim one, as it only supports partial hierarchies. Fully

Re: [openstack-dev] [puppet][keystone] Choose domain names with 'composite namevar' or 'meaningless name'?

2015-09-11 Thread David Chadwick
Whichever approach is adopted you need to consider the future and the longer term objective of moving to fully hierarchical names. I believe the current Keystone approach is only an interim one, as it only supports partial hierarchies. Fully hierarchical names has been discussed in the Keystone

Re: [openstack-dev] [puppet][keystone] Choose domain names with 'composite namevar' or 'meaningless name'?

2015-09-11 Thread Gilles Dubreuil
On 11/09/15 20:17, David Chadwick wrote: > Whichever approach is adopted you need to consider the future and the > longer term objective of moving to fully hierarchical names. I believe > the current Keystone approach is only an interim one, as it only > supports partial hierarchies. Fully

Re: [openstack-dev] [puppet][keystone] Choose domain names with 'composite namevar' or 'meaningless name'?

2015-09-11 Thread Morgan Fainberg
On Fri, Sep 11, 2015 at 4:25 AM, Gilles Dubreuil wrote: > > > On 11/09/15 20:17, David Chadwick wrote: > > Whichever approach is adopted you need to consider the future and the > > longer term objective of moving to fully hierarchical names. I believe > > the current Keystone