I have several modules that need to run in a specific sequence, how do I specify this ? Also how do I specify the sequence of classes and commands inside one module ?
Found an answer to this myself
using
require => File['something']
and
require class
Also you can set the sequence using -> For example:
node 'example.com' {
class { 'foo' :
} ->
class { 'bar' :
}
}
class bar will be applied after class foo.
Notify and subscribe also affect to applying sequence. See http://docs.puppetlabs.com/learning/ordering.html
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.