我让Splunk启动并使用Chef在一些EC2实例上运行。一切都很好,而且我可以通过使用Splunk作为部署服务器手动部署一些应用程序。我部署应用程序->,在/opt/splunk/etc/system/local/serverclass.conf中编写更改如下所示:
[serverClass:MugurelTest:app:mongodb] restartSplunkWeb = 0 restartSplunkd = 1 stateOnClient = enabled
然后运行/opt/splunk/bin/splunk reload deploy-server -auth admin:xxx,应用程序出现在集群管理器上。问题是,我想用厨师自动完成这一步,但似乎没有一本烹饪书能做到这一点。实现这一目标的最佳途径是什么?
发布于 2016-07-08 19:31:19
您将使用template资源写出文件,然后使用execute资源(可能通过通知)运行命令。
https://serverfault.com/questions/788441
复制相似问题