我是傀儡部署的新手。我定义了两个类
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"]
}
}
我如何确定这两个类的运行顺序。我已经尝试过一个新的清单文件
init.pp 包含这两个类
include taskname
include taskname2
似乎第二个任务在第一个任务之前运行。如何执行运行命令?