简体   繁体   English

Chef的Vagrant置备以模拟Live Server

[英]Vagrant Provisioning with Chef to Emulate Live Server

I have done a lot of searching through Google (and a lot has lead me here), but I'm still extremely unclear as to HOW to do this: 我已经在Google上进行了很多搜索(很多都把我引到了这里),但是对于如何做到这一点我仍然非常不清楚:

  • Provision Apache 2.2.22 设置Apache 2.2.22
  • Provision MySQL 5.1.66 设置MySQL 5.1.66
  • Provision PHP 5.3.27 供应PHP 5.3.27

Now, I already have my "box" setup with the proper OS that my host uses. 现在,我已经有了主机可以使用的正确操作系统的“盒子”设置。 However, with these in my provisioning of the VM on each vagrant up , I will have replicated the complete production environment of my live server. 但是,通过在每个vagrant up的虚拟机中配置虚拟机,我将复制实时服务器的完整生产环境。

I'm new to Vagrant and the entire workflow theory of utilizing VMs over my past workflow evolving MAMP/WAMP. 我是Vagrant的新手,也是我在过去的工作流程(不断发展的MAMP / WAMP)中利用VM的整个工作流程理论的新手。 So, any additions to what I provision each time that you feel would help me like directory permissions and other "necessary" options, would be helpful. 因此,您每次觉得我提供的内容的任何补充都会对我有所帮助,例如目录权限和其他“必要”选项,这些都会有所帮助。 I'm currently trying to teach myself Vagrant and Chef (decided on Chef over Puppet based on conversations I had with others) and honestly, it's not the hardest thing in the world but it's challenging when also trying to grasp the workflow as a whole. 我目前正在尝试自学流浪者和厨师(根据与其他人的交谈决定由Puppet担任厨师),说实话,这不是世界上最困难的事情,但在尝试全面掌握工作流程时也充满了挑战。

I work alone so I'm utilizing Dropbox (Cloud Storage), Github (Version Control) and Vagrant/VirtualBox for the management of the environments. 我一个人工作,所以我利用Dropbox(云存储),Github(版本控制)和Vagrant / VirtualBox来管理环境。

Thank you and any help would be amazing! 谢谢您,任何帮助将是惊人的! I'll keep looking everywhere I can but I felt making a post was necessary so I could try to key in on WHAT I'm trying to accomplish. 我将尽我所能地寻找任何地方,但我觉得发帖是必要的,因此我可以尝试输入要完成的工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM