Re: [Puppet Users] I am looking to try to mixing sounrce and content in a file instance

2012-01-12 Thread Nan Liu
On Wed, Jan 11, 2012 at 7:49 AM, Dan White wrote: > Thanks for responding, Felix > > - Felix Frank wrote: >> Hi, >> >> On 01/10/2012 07:05 PM, Dan White wrote: >> > I am trying to design flexibility, and I am finding a "conflict of >> > purpose" between the source snd content metaparameters.

Re: [Puppet Users] I am looking to try to mixing sounrce and content in a file instance

2012-01-11 Thread Dan White
Thanks for responding, Felix - Felix Frank wrote: > Hi, > > On 01/10/2012 07:05 PM, Dan White wrote: > > I am trying to design flexibility, and I am finding a "conflict of purpose" > > between the source snd content metaparameters. > > is there a practical use case that actually requires t

Re: [Puppet Users] I am looking to try to mixing sounrce and content in a file instance

2012-01-11 Thread Felix Frank
Hi, On 01/10/2012 07:05 PM, Dan White wrote: > I am trying to design flexibility, and I am finding a "conflict of purpose" > between the source snd content metaparameters. is there a practical use case that actually requires that much "flexibility"? In the design scheme you've sketched, I would

[Puppet Users] I am looking to try to mixing sounrce and content in a file instance

2012-01-10 Thread Dan White
Let's start with this: class whatever ( $myType='other' ) { file { "some-config-file": ... content => $myType ? { 'this' => template("whatever/this.erb"), 'that' => template("whatever/that.erb"), 'other' => template("whatever/other.erb"),