厨师:如何回滚一本食谱?(Chef: How to rollback a run of cookbook?)

编程入门 行业动态 更新时间:2024-10-26 12:33:46
厨师:如何回滚一本食谱?(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).

更多推荐

本文发布于:2023-08-07 03:58:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1459782.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:一本   食谱   厨师   Chef   run

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!