Where to Store Local Software Packages for Chef Recipe

爱⌒轻易说出口 提交于 2019-12-24 14:16:11

问题


I have a Ruby .deb package that I built from source using checkinstall. I'm using it with a Chef recipe to install Ruby on one of my nodes. Right now I'm storing it under files/default in my recipe, where one would normally store config files or templates to upload to the server. This works well enough but I wonder what the "right" way to solve this problem would be. Where do people store local binaries or packages when they want to install them with Chef this way? Should I create a server to store these, then download them as needed through my recipes?


回答1:


Ideally you would host a repository server like apt (or gem, etc. Whatever suits) and configure your repository sources on chef clients to include that server.



来源:https://stackoverflow.com/questions/23073815/where-to-store-local-software-packages-for-chef-recipe

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!