我試圖通過廚師將%wheel
組添加到sudoers
文件中。 不幸的是,我很難弄清楚這本食譜是如何工作的。 readme對我來說聽起來不太清楚。CHEF-很難弄清楚SUDO COOKBOOK的工作原理
我做了什麼:
新增
depends 'sudo'
到我的食譜
添加在配方的末尾以下行的元數據文件
node.default['authorization']['sudo']['groups'] = ['wheel']
會發生什麼(行被完全忽略):
Recipe: create-user::default
* yum_package[sudo] action install[2016-06-09T19:01:12+01:00] INFO: Processing yum_package[sudo] action install (create-user::default line 9)
(up to date)
* user[edgarsan] action create[2016-06-09T19:01:13+01:00] INFO: Processing user[edgarsan] action create (create-user::default line 14)
(up to date)
* group[wheel] action modify[2016-06-09T19:01:13+01:00] INFO: Processing group[wheel] action modify (create-user::default line 21)
(up to date)
* user[banana] action create[2016-06-09T19:01:13+01:00] INFO: Processing user[banana] action create (create-user::default line 14)
(up to date)
* group[wheel] action modify[2016-06-09T19:01:13+01:00] INFO: Processing group[wheel] action modify (create-user::default line 21)
(up to date)
[2016-06-09T19:01:13+01:00] INFO: Chef Run complete in 3.322762038 seconds
我失去了一些東西,但我沒有找到什麼是從文檔。
在此先感謝
感謝您指出我到正確的方向 – ToinoBiclas