Puppet execution thread

I have this node.pp and I wonder how the puppet is going to execute it.

node 'agent.puppet.demo' {
    include ssh
    include postfix
    include mysql
    include apache
}

In the node agent, when I ran this:

$ puppetd -t -d

The doll does not execute it sequentially, it does not execute ssh first, then postfix, ...

Does anyone know why this is? Is it because it is called "declarative language" where the order of execution does not matter?

If so, then I can only say in a certain way that I want, and the puppet will figure out how to perform it?

+5
source share
2 answers

Disclaimer: I am one of the developers of Puppet.

, , . - , subscribe require. autorequire, , .

, , , , .

, ssh postfix - , .

, , " " - . , , , .

, , , .

- , : , , . , , , .

+17

: :)

. Class ['a'] → Class ['b']. , tomcat, jdk, / sun jdk oracle. tomcat

['jdk'] → ['tomcat']

, include.

+3

All Articles