I''ve been beating my head against the wall with stages. No matter
what I do, it seems to ignore the stages and always runs the classes
in the order of the statements specified, not the order of the
specified stages. In the below example, I''ve split out the stage
definition into an order class, but I have tried directly including
the stage definitions within the node default declarations.
In this example, deploy is always running first. It seems to ignore
the staging. Help please?
node default {
include order
class { "deploy": stage => last }
class { "doinstall": stage => first }
}
class order {
stage { "first": before => Stage[main] }
stage { "last": require => Stage[main] }
}
class doinstall {
$t_port = 8080
$t_password = ''test''
tomcat::install { ''doinstall'':
port => $t_port,
password => $t_password,
}
}
class deploy {
import "tomcat/deployment"
deployment::deploywar { "SimpleServlet":
path => "puppet:///modules/tomcat/SimpleServlet.war"
}
}
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.