厨师:如何回滚一本食谱?(Chef: How to rollback a run of cookbook?)
我跑了一本食谱,在我的厨师节点上安装了一些东西(例如apache)。 这是我食谱的第一个版本(0.1.0)。 如何撤消更改? (使用厨师删除apache)
I ran a cookbook which has installed some things (for example apache) on my chef node. It was the first version (0.1.0) of my cookbook. How can I undo the changes? (remove apache using chef)
最满意答案
没有特定的方法,您需要编写一个新的配方来强制执行您想要的新状态(已卸载软件包,删除文件夹,停止服务等)。
There is no specific way, you would need to write a new recipe that enforces the new state you want (packages uninstalled, folders removed, services stopped, etc).
更多推荐
发布评论