I am new to puppet deployment. I have two classes:
class taskname{ exec{ "deploy_script": command = "cp ${old_path} ${new path}", user = root, } cron{"cron_script2": command = "pyrhton ${new_path}", user = root, require = Exec["deploy_script"] } } class taksname2{ exec{ "deploy_script2": command = "cp ${old_path} ${new path}", user = root, } cron{"cron_script": command = "pyrhton ${new_path}", user = root, require = Exec["deploy_script2"] } }
How can I be sure of the current order of these two classes. I tried in a new manifest file
init.pp to include these two classes
include taskname include taskname2
It seems that the second task is being performed before the first task. How to force an executable order?
source share