Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我用谷歌搜索并通读但没有找到任何答案。我在 ubuntu 上使用 cfengine-community 3.5 版本。
您可以为您正在处理的每个 Ubuntu 版本创建不同的子目录树;IE:
/data/cfengine3/data/ubuntu-13.04 /data/cfengine3/data/ubuntu-14.04 ...
然后为每个版本的 Ubuntu 定义一个类(ubuntu_13_04、ubuntu_14_04...),并根据定义的类执行一个子目录或另一个子目录的文件的复制。
我们这样做是因为我们还有一小部分装有 CentOS 5 的服务器。