Re: [Puppet Users] Re: Config variables in templates

2010-01-12 Thread Christopher Johnston
Ok cool! That will come in handy. Sent from my iPhone On Jan 12, 2010, at 12:56 PM, JL wrote: Never mind, that's what I was looking for Trevor, thanks. On Jan 12, 12:56 pm, JL wrote: I was hoping there was a way to do it with ruby, but I am just learning the language. I know that "puppet

[Puppet Users] Re: Config variables in templates

2010-01-12 Thread JL
How about qualified variables? For example: myclass.pp: class myclass { $test = "content" } otherclass/template.erb: <%= myclass::test %> On Jan 12, 12:45 pm, Trevor Vaughan wrote: > <%= Puppet[:ssldir] %> -- You received this message because you are subscribed to the Google Groups "Pu

[Puppet Users] Re: Config variables in templates

2010-01-12 Thread JL
Never mind, that's what I was looking for Trevor, thanks. On Jan 12, 12:56 pm, JL wrote: > I was hoping there was a way to do it with ruby, but I am just > learning the language.  I know that "puppetd --genconfig" returns the > value, so I was thinking there must be a way to do it with a simple >

[Puppet Users] Re: Config variables in templates

2010-01-12 Thread JL
I was hoping there was a way to do it with ruby, but I am just learning the language. I know that "puppetd --genconfig" returns the value, so I was thinking there must be a way to do it with a simple ruby code snippet embedded within the template. -- You received this message because you are sub