Re: [Puppet Users] Controlling Puppet class execution order with parameters.

2017-05-25 Thread Arnau
Hi, https://puppet.com/blog/class-containment-puppet I'd say 1.- one module for you stuuf (moduleA) 2.- one file per class 3.-) one class that "contain" the others and set order. moduleA/class1.pp class moduleA::class1 { } moduleA/class2.pp class moduleA::class2 { } moduleaA/class3.pp class mo

Re: [Puppet Users] Controlling Puppet class execution order with parameters.

2017-05-24 Thread Peter Kristolaitis
You need to use 'require' instead of 'import'. On 5/24/2017 11:57 AM, Harish Kothuri wrote: Hi, I have 3 classes and i need to execute class 3 only when class 1 and class 2 completes. All of these classes must be attached to a host. class1($version='1.1.1'){ . . . } class2($version

Re: [Puppet Users] Controlling Puppet class execution order with parameters.

2017-05-24 Thread Martin Alfke
Hi Harish, import is deprecated in Puppet 4! You can use require: class 3 { require class1 require class2 … } Best, Martin > On 24 May 2017, at 17:57, Harish Kothuri wrote: > > Hi, > > I have 3 classes and i need to execute class 3 only when class 1 and class 2 > completes. All of th

[Puppet Users] Controlling Puppet class execution order with parameters.

2017-05-24 Thread Harish Kothuri
Hi, I have 3 classes and i need to execute class 3 only when class 1 and class 2 completes. All of these classes must be attached to a host. class1($version='1.1.1'){ . . . } class2($version='2.2.2'){ . . . } and class3(){ import class1 import class2 exec{ 's