Hi, I have read various threads about ordering things in puppet, using stages, before and after etc... but unfortunately it didn''t answer my question. I have multiple parametrised function definitions like that: define function1($param) { exec { "do-$param-something": subscribe => [ Package ["some-package"] ], command => "some command" require => [ Package ["some-package"] ] } } define function2($param) { exec { "do-$param-something-else": subscribe => [ Package ["some-package"] ], command => "some command" require => [ Package ["some-package"] ] } } ... They are not in a class, they are just functions. Those are functions for creating, managing, and altering mysql databases. Thus, I want to execute them in a not random order. The subscribe feature gives me that they are executed in a random order when the package is installed. But how do I specify that function2 should run AFTER function1? I have tried to do something like: Exec[ "do-$param-something"]->Exec["do-$param-something-else"] but that obviously doesn''t work because the $param is not recognised outside of the function body... -- 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.