生产中的流浪汉 [英] Vagrant in production

查看:86
本文介绍了生产中的流浪汉的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在阅读有关Vagrant的内容,我发现它对我的开发非常有用.我目前正在管理一系列服务(邮件,Web,LDAP,文件共享等),通常其中之一属于此类,需要快速备份.可以(并建议)将Vagrant用于这些目的吗?

I've been reading about Vagrant, and I find it quite useful for my development. I am currently managing a series of services (mail, web, LDAP, file sharing, etc.), and often one of these falls and needs a quick backup. Is it possible (and recommended) to use Vagrant for these purposes?

到目前为止,我已经像真实计算机一样安装了虚拟机.

So far I've virtual machines installed like real machines.

我还想了解Vagrant的替代方案,它使我可以设置一个简单的配置文件并放置一个虚拟机(例如,使用Zimbra),并迅速拥有备用邮件服务器,启用RabbitMQ等.

I would also like to know about an alternative to Vagrant which would allow me to setup a simple configuration file and put a virtual machine, for example, with Zimbra, and quickly have an alternate mail server, enable RabbitMQ, etc.

推荐答案

Vagrant应该更像一个临时环境来测试基础架构的变化.它应该是您进行自动化基础结构更改的测试平台.

Vagrant should be used more like a staging environment to test your infrastructure changes. It should be your test bed for automated infrastructure changes.

我们在公司使用它的方式如下:

The way we use it at my company is like so:

  1. 在Vagrant中为我们的托管服务器创建VM.
  2. 为每个服务器创建人偶定义.
  3. 为每个服务器创建黄瓜测试.
  4. 通过人偶进行基础架构更改并添加黄瓜测试.
  5. 启动我们的服务器以测试故障.
  6. 修复错误,发布和/或返回第4步.

基本上,当我们对更改感到满意时,我们会将人偶更改投入生产以实现更改.

Basically when we're happy with our changes, we'll pull our puppet changes into production to make it happen.

我不建议使用vagrant来管理用于实际生产的VM.我会使用其他工具,例如razor,virsh,OpenStack或其他许多虚拟机管理系统之一.

I'd not recommend using vagrant to manage VMs for real production. I'd use something else like razor, virsh, OpenStack or one of the many other vm management systems out there.

这篇关于生产中的流浪汉的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆