[Puppet Users] Re: Apply multiple defines in sequence

2012-11-05 Thread Erwin Bogaard
John and Tim, thanks for your replies and patience. In the end, the solution of Tim seems to work great! That was what I was looking for: a relatively straight solution to a relatively straight problem (at least, that was what I thought to improve the previous situation). As a novice to intermed

[Puppet Users] Re: Apply multiple defines in sequence

2012-11-05 Thread jcbollinger
On Monday, November 5, 2012 2:17:11 PM UTC-6, Erwin Bogaard wrote: > > As I'm in over my head, let's supply you with (part of) the manifests in > question: > > The define: > > define sugar::definitions_sug_wp ( > $template = 'sugar/etc/httpd/conf.d/sugar6x.conf.erb', > $client_

Re: [Puppet Users] Re: Apply multiple defines in sequence

2012-11-05 Thread Tim Mooney
In regard to: [Puppet Users] Re: Apply multiple defines in sequence, Erwin...: Thanks again for you reply, but it seems like you don't fully understand what I'm having problems with. So I'll try to clarify it a little more: 1. The current way of using two defines is working flawl

[Puppet Users] Re: Apply multiple defines in sequence

2012-11-05 Thread Erwin Bogaard
After my previous post, I did some more thinking and reasearch. What do you think about: - using an if/else-conditional. Would that work? - using virtual resources? would that work? On Monday, November 5, 2012 9:17:11 PM UTC+1, Erwin Bogaard wrote: > > As I'm in over my head, let's supply you wit

[Puppet Users] Re: Apply multiple defines in sequence

2012-11-05 Thread Erwin Bogaard
As I'm in over my head, let's supply you with (part of) the manifests in question: The define: define sugar::definitions_sug_wp ( $template = 'sugar/etc/httpd/conf.d/sugar6x.conf.erb', $client_domain = "$title", $mysql_rootpwd = "$mysql_password", $mysql_dbname,

[Puppet Users] Re: Apply multiple defines in sequence

2012-11-05 Thread jcbollinger
On Monday, November 5, 2012 3:48:58 AM UTC-6, Erwin Bogaard wrote: > > Thanks again for you reply, but it seems like you don't fully understand > what I'm having problems with. So I'll try to clarify it a little more: > 1. The current way of using two defines is working flawlessly. So I (at > l

[Puppet Users] Re: Apply multiple defines in sequence

2012-11-05 Thread Erwin Bogaard
Thanks again for you reply, but it seems like you don't fully understand what I'm having problems with. So I'll try to clarify it a little more: 1. The current way of using two defines is working flawlessly. So I (at least partly) understand the concepts surrounding those. 2. Because I have two t

[Puppet Users] Re: Apply multiple defines in sequence

2012-11-02 Thread jcbollinger
On Friday, November 2, 2012 2:54:11 PM UTC-5, Erwin Bogaard wrote: > > Thanks for your reply. Let me clarify things a little more. > I use the following class to apply to a certain node: > > class sugar::instances { > > sugar::definitions_sugar { > # SugarCRM - ECM2 > 'node1': >

[Puppet Users] Re: Apply multiple defines in sequence

2012-11-02 Thread Erwin Bogaard
Thanks for your reply. Let me clarify things a little more. I use the following class to apply to a certain node: class sugar::instances { sugar::definitions_sugar { # SugarCRM - ECM2 'node1': mysql_dbname => 'dbname1', mysql_pwd=> 'password1'; sugar::definitions_

[Puppet Users] Re: Apply multiple defines in sequence

2012-11-02 Thread jcbollinger
On Friday, November 2, 2012 7:14:14 AM UTC-5, Erwin Bogaard wrote: > > As there is no response, maybe some extra info: > For classes I use 'inherits' to apply multiple classes to one resource. > For defines I can't find a similar technique. Is there one? > Perhaps there are no responses becaus

[Puppet Users] Re: Apply multiple defines in sequence

2012-11-02 Thread Erwin Bogaard
As there is no response, maybe some extra info: For classes I use 'inherits' to apply multiple classes to one resource. For defines I can't find a similar technique. Is there one? On Thursday, November 1, 2012 3:30:52 PM UTC+1, Erwin Bogaard wrote: > > In retrospect: a better subject would have b

[Puppet Users] Re: Apply multiple defines in sequence

2012-11-01 Thread Erwin Bogaard
In retrospect: a better subject would have been 'Apply multiple defines to one resource'. But as far as I can see, there is no way to change a subject On Thursday, November 1, 2012 3:27:10 PM UTC+1, Erwin Bogaard wrote: > > I'm having trouble getting the following scenario to work: > - I have two