[英]Do I Need Ruby and Chef On My Vagrant Box
I am using the trusty64 vagrant box and I provision it using puppet. 我正在使用trusty64 vagrant框,并使用p配置它。
I just noticed today that ruby and chef are installed and I don't use either of them for my VM work. 我今天才注意到,已经安装了ruby和Chef,并且在我的VM工作中没有使用它们中的任何一个。
Do I need them there for Vagrant to do its magic? 我需要他们在那里让流浪汉做魔术吗?
Can I remove them after my VM is provisioned or will vagrant halt
and vagrant up
stop working? 我可以在调配虚拟机后将其删除,还是
vagrant up
停止工作并vagrant halt
vagrant up
工作?
so to the question 所以这个问题
Do I Need Ruby and Chef On My Vagrant Box
我需要在我无业游民的盒子上放露比和厨师吗
Its mainly up to you. 它主要取决于您。
no, more seriously: 不,更严重的是:
Vagrant does not rely on ruby to be installed on the guest to do its magic, its mainly issuing ssh script command to do the update on network/hostname ... Vagrant不依赖于在客户机上安装ruby来做魔术,它主要发布ssh脚本命令来对网络/主机名进行更新...
The thing is that your box will have ruby and chef installed and whenever you boot a new VM from this box, it will contain ruby and chef, I think you will spend more time cleaning the booted VM at the end of the day, specially if you have to destroy/rebuild the VM. 问题是您的盒子将安装ruby and cook,并且每当您从盒子中启动新VM时,其中都会包含ruby和cook,我想您会在一天结束时花更多时间清洁启动的VM,特别是如果您必须销毁/重建虚拟机。
If you want a minimalist box that contains only the thing you need, you can look at packer - packer is a tool to automate the creation of vagrant box, so you can really control what is install from the iso file of the OS to the libraries and 3rd party tools. 如果您想要一个仅包含所需物品的简约包装盒,则可以查看packer -packer是一种用于自动创建无用物品包装盒的工具,因此您可以真正控制从OS的iso文件到库的安装内容和第三方工具。
Vagrant does rely on ruby installed in the box if you are using chef or puppet provisioner. 如果您使用的是厨师或木偶供应商,那么Vagrant确实依赖于安装在盒子中的红宝石。 chef/puppet runs happen inside the guest box which vagrant orchestrates using ssh.
厨师/人偶的运行发生在来宾流氓使用ssh进行协调的来宾框内。
You can remove chef when you will use chef provisioner,vagrant will download and install it again but you would need ruby for puppet. 您可以在使用厨师调配器时删除厨师,流浪者会再次下载并安装它,但是您需要使用红宝石作为木偶。 See puppet install dependency here
在此处查看puppet安装依赖项
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.