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.
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 {
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
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