Re: [Puppet-dev] Hiera should have an save API

2012-05-09 Thread Andrew Parker
Jeff came over and asked Daniel and I about this. He might be able to give his understanding, as well. My response is below. On May 9, 2012, at 2:26 PM, Kelsey Hightower wrote: > On Tuesday, May 8, 2012 7:17:33 PM UTC-4, Andy Parker wrote: > I'll chime in on this now, I suppose. > > You are rig

Re: [Puppet-dev] Hiera should have an save API

2012-05-09 Thread Kelsey Hightower
On Tuesday, May 8, 2012 7:17:33 PM UTC-4, Andy Parker wrote: > > I'll chime in on this now, I suppose. > > You are right that both read and write operations are good for > abstraction. The problem comes that comes into play is that read and write > operations usually end up with completely differ

Re: [Puppet-dev] Hiera should have an save API

2012-05-08 Thread Jeff McCune
On Tue, May 8, 2012 at 4:17 PM, Andrew Parker wrote: > I'll chime in on this now, I suppose. > > You are right that both read and write operations are good for > abstraction. The problem comes that comes into play is that read and write > operations usually end up with completely different needs

Re: [Puppet-dev] Hiera should have an save API

2012-05-08 Thread Andrew Parker
I'll chime in on this now, I suppose. You are right that both read and write operations are good for abstraction. The problem comes that comes into play is that read and write operations usually end up with completely different needs for their abstractions and so combining them together in a si

Re: [Puppet-dev] Hiera should have an save API

2012-05-08 Thread Jeff McCune
On Tue, May 8, 2012 at 2:59 PM, Daniel Pittman wrote: > > The idea is that this simple save function would be behind a REST API > like > > the one you mention. Do the hard work of modeling and capturing data then > > make a call to Hiera#save. If a REST API for Hiera is needed we can build > > one

Re: [Puppet-dev] Hiera should have an save API

2012-05-08 Thread Daniel Pittman
:17:53 PM >> > Subject: Re: [Puppet-dev] Hiera should have an save API >> > >> > On Tue, May 1, 2012 at 09:31, Kelsey Hightower >> > wrote: >> > >> > > I'm thinking of adding a new save API to Hiera. The idea is that Hiera >> >

Re: [Puppet-dev] Hiera should have an save API

2012-05-01 Thread Kelsey Hightower
On Tuesday, May 1, 2012 1:32:05 PM UTC-4, R.I. Pienaar wrote: > > > > - Original Message - > > From: "Daniel Pittman" > > To: puppet-dev@googlegroups.com > > Sent: Tuesday, May 1, 2012 6:17:53 PM > > Subject: Re: [Puppet-dev] Hiera should

Re: [Puppet-dev] Hiera should have an save API

2012-05-01 Thread Kelsey Hightower
On Tuesday, May 1, 2012 1:17:53 PM UTC-4, Daniel Pittman wrote: > > On Tue, May 1, 2012 at 09:31, Kelsey Hightower > wrote: > > > I'm thinking of adding a new save API to Hiera. The idea is that Hiera > > should provide an iterface for saving data, which should make it easy > for > > front-en

Re: [Puppet-dev] Hiera should have an save API

2012-05-01 Thread Daniel Pittman
On Tue, May 1, 2012 at 10:32, R.I.Pienaar wrote: > - Original Message - >> From: "Daniel Pittman" >> To: puppet-dev@googlegroups.com >> Sent: Tuesday, May 1, 2012 6:17:53 PM >> Subject: Re: [Puppet-dev] Hiera should have an save API >> >&g

Re: [Puppet-dev] Hiera should have an save API

2012-05-01 Thread R.I.Pienaar
- Original Message - > From: "Daniel Pittman" > To: puppet-dev@googlegroups.com > Sent: Tuesday, May 1, 2012 6:17:53 PM > Subject: Re: [Puppet-dev] Hiera should have an save API > > On Tue, May 1, 2012 at 09:31, Kelsey Hightower > wrote: > > >

Re: [Puppet-dev] Hiera should have an save API

2012-05-01 Thread Daniel Pittman
On Tue, May 1, 2012 at 09:31, Kelsey Hightower wrote: > I'm thinking of adding a new save API to Hiera. The idea is that Hiera > should provide an iterface for saving data, which should make it easy for > front-end tools to interact with backends that support saving data. Why does it make it any

[Puppet-dev] Hiera should have an save API

2012-05-01 Thread Kelsey Hightower
I'm thinking of adding a new save API to Hiera. The idea is that Hiera should provide an iterface for saving data, which should make it easy for front-end tools to interact with backends that support saving data. An example of how this might work is shown in the commit message in the following