[Puppet Users] Class Execution order

2012-08-13 Thread Douglas Garstang
Trying to force puppet class execution order with: Class['lvm'] -> Class['network'] -> Class['apt'] -> Class <| |> This is giving me: err: Could not retrieve catalog from remote server: Error 400 on SERVER: Resource type class doesn't exist at /truth/sauce/env/prod/modules/role/manifests/common.

Re: [Puppet Users] Class execution order

2010-12-09 Thread J. Brandt Buckley
Try using "before" or "require" in your classes like so: class one { exec { "echoone": command => "/bin/echo $var1", before => Class["two"], } } class two { exec { "echotwo": command => "/bin/echo $var2", before => Class["three"], } } class three {

Re: [Puppet Users] Class execution order

2010-12-08 Thread Patrick
Puppet will, by design, apply classes in a random order. To specify the order, you want to use the "require" parameter. exec { "echoone": command => "/bin/echo $var1", } exec { "echotwo": command => "/bin/echo $var2", require => Exec['echoone'], } exec { "e

[Puppet Users] Class execution order

2010-12-08 Thread sergey arlashin
Hi! I'm trying to make puppet execute classes in a certain order for a particular node. So this is my test config: class one { exec { "echoone": command => "/bin/echo $var1", } } class two { exec { "echotwo": command => "/bin/echo $var2", } } class three { e