Re: [openstack-dev] [DevStack] Generalize config file settings

2013-09-18 Thread Dean Troyer
On Wed, Sep 18, 2013 at 9:28 AM, Bob Ball wrote: > I think it’d make more sense the other way round. > > ** ** > > If localrc does not exist, and we’ve created a localrc.generated create > localrc with just “source localrc.generated”. That way anyone using > localrc directly will get the ri

Re: [openstack-dev] [DevStack] Generalize config file settings

2013-09-18 Thread Bob Ball
[mailto:dtro...@gmail.com] Sent: 18 September 2013 15:04 To: OpenStack Development Mailing List Subject: Re: [openstack-dev] [DevStack] Generalize config file settings On Wed, Sep 18, 2013 at 7:49 AM, Bob Ball mailto:bob.b...@citrix.com>> wrote: In which case, would a simple fix of adding a &q

Re: [openstack-dev] [DevStack] Generalize config file settings

2013-09-18 Thread Dean Troyer
On Wed, Sep 18, 2013 at 7:49 AM, Bob Ball wrote: > In which case, would a simple fix of adding a “localrc.generated” be > sufficient? > > ** ** > > Produce a localrc which simply imports localrc.generated and replace > localrc.generated in all cases – still allowing users to override it if > nee

Re: [openstack-dev] [DevStack] Generalize config file settings

2013-09-18 Thread Bob Ball
ean Troyer [mailto:dtro...@gmail.com] Sent: 18 September 2013 13:37 To: OpenStack Development Mailing List Subject: Re: [openstack-dev] [DevStack] Generalize config file settings On Wed, Sep 18, 2013 at 4:46 AM, Bob Ball mailto:bob.b...@citrix.com>> wrote: I understand that there are some very g

Re: [openstack-dev] [DevStack] Generalize config file settings

2013-09-18 Thread Dean Troyer
On Wed, Sep 18, 2013 at 4:46 AM, Bob Ball wrote: > I understand that there are some very good reasons that we can’t make > all modifications to localrc work on an unstack/stack –– but a very large > number of the options are only read at run time and do not have any > persistent state. > My apo

Re: [openstack-dev] [DevStack] Generalize config file settings

2013-09-18 Thread Bob Ball
September 2013 22:41 To: OpenStack Development Mailing List Subject: Re: [openstack-dev] [DevStack] Generalize config file settings On Fri, Sep 13, 2013 at 1:20 PM, Everett Toews mailto:everett.to...@rackspace.com>> wrote: On Sep 13, 2013, at 6:10 AM, Sean Dague wrote: > Because ine

Re: [openstack-dev] [DevStack] Generalize config file settings

2013-09-16 Thread Dean Troyer
On Fri, Sep 13, 2013 at 1:20 PM, Everett Toews wrote: > On Sep 13, 2013, at 6:10 AM, Sean Dague wrote: > > > Because inevitably people ask for copies of other folks configs to > duplicate things, and a single file is easier to pass around than a tree. > But that would mean a unique parser to handl

Re: [openstack-dev] [DevStack] Generalize config file settings

2013-09-13 Thread Everett Toews
On Sep 13, 2013, at 6:10 AM, Sean Dague wrote: > Because inevitably people ask for copies of other folks configs to duplicate > things, and a single file is easier to pass around than a tree. But that > would mean a unique parser to handle the top level stanza. +1 I share localrc files all the

Re: [openstack-dev] [DevStack] Generalize config file settings

2013-09-13 Thread Dean Troyer
On Fri, Sep 13, 2013 at 6:10 AM, Sean Dague wrote: > I like option a, though I'm not sure we need the full system path in the > conf.d (that's pretty minor though). > That was to avoid making assumptions about target files or encoding paths in filenames. It really needs to recognize XXX_CONF_DI

Re: [openstack-dev] [DevStack] Generalize config file settings

2013-09-13 Thread Sean Dague
On 09/12/2013 11:36 AM, Dean Troyer wrote: DevStack has long had a config setting in localrc called EXTRA_OPTS that allowed arbitrary settings to be added to /etc/nova/nova.conf [DEFAULT] section. Additional files and sections have recently been implemented with a similar scheme. I don't think

Re: [openstack-dev] [DevStack] Generalize config file settings

2013-09-12 Thread Dean Troyer
On Thu, Sep 12, 2013 at 10:44 PM, Monty Taylor wrote: > Have you looked at os-apply-config from the TripleO guys? It's > specifically a generalized and simple system for producing openstack > config files. If you're thinking about re-working how some of the config > file stuff works, it might be

Re: [openstack-dev] [DevStack] Generalize config file settings

2013-09-12 Thread Monty Taylor
On 09/12/2013 10:49 PM, John Griffith wrote: > > On Thu, Sep 12, 2013 at 9:44 PM, Monty Taylor > wrote: > > os-apply-config > > > Doesn't that just convert a json syntax to a file with the syntax Dean > was describing? Maybe it's changed, but that's what I *

Re: [openstack-dev] [DevStack] Generalize config file settings

2013-09-12 Thread John Griffith
On Thu, Sep 12, 2013 at 9:44 PM, Monty Taylor wrote: > os-apply-config Doesn't that just convert a json syntax to a file with the syntax Dean was describing? Maybe it's changed, but that's what I *thought* it did. ___ OpenStack-dev mailing list OpenS

Re: [openstack-dev] [DevStack] Generalize config file settings

2013-09-12 Thread Monty Taylor
On 09/12/2013 10:36 AM, Dean Troyer wrote: > DevStack has long had a config setting in localrc called EXTRA_OPTS that > allowed arbitrary settings to be added to /etc/nova/nova.conf [DEFAULT] > section. Additional files and sections have recently been implemented > with a similar scheme. I don'

[openstack-dev] [DevStack] Generalize config file settings

2013-09-12 Thread Dean Troyer
DevStack has long had a config setting in localrc called EXTRA_OPTS that allowed arbitrary settings to be added to /etc/nova/nova.conf [DEFAULT] section. Additional files and sections have recently been implemented with a similar scheme. I don't think this scales well as at a minimum every config

Re: [openstack-dev] [DevStack] Generalize config file settings

2013-09-12 Thread John Griffith
On Thu, Sep 12, 2013 at 9:36 AM, Dean Troyer wrote: > DevStack has long had a config setting in localrc called EXTRA_OPTS that > allowed arbitrary settings to be added to /etc/nova/nova.conf [DEFAULT] > section. Additional files and sections have recently been implemented with > a similar scheme