vagrant-fabric

用于 fabric 测试的 Vagrant。「Vagrant for fabric test's」

  • 所有者: martinarrieta/vagrant-fabric
  • 平台:
  • 许可证:
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

Requirements

Ansible

URL: http://www.ansible.com/

Install: http://docs.ansible.com/intro_installation.html

If you have pip (https://pypi.python.org/pypi) in your system, the following command should be enough

pip install ansible

VirtualBox

URL: http://www.virtualbox.org

Install: https://www.virtualbox.org/wiki/Downloads

Vagrant

URL: http://www.vagrantup.com/

Download: http://www.vagrantup.com/downloads.html

Installation

git clone https://github.com/martinarrieta/vagrant-fabric 
vagrant up

Get a coffee and wait until this process finish

Basic commands

Connect to the VM

This command will connect you to the server.

vagrant ssh <vm_name>

For example:

$ vagrant ssh store
Last login: Wed May  7 16:40:21 2014 from 10.0.2.2
[vagrant@store ~]$

Destroy a VM

This command will stop the vm if is running and it will remove the vm files.

vagrant destroy <vm_name>

For example:

$ vagrant destroy node3
Are you sure you want to destroy the 'node3' VM? [y/N] y
[node3] Forcing shutdown of VM...
[node3] Destroying VM and associated drives...
[node3] Running cleanup tasks for 'ansible' provisioner...

Start a VM

This command will create and start the vm.

vagrant up <vm_name>

For example:

$ vagrant up node3
Bringing machine 'node3' up with 'virtualbox' provider...
[node3] Importing base box 'centos65-x86_64-20140116'...
Progress: 100%
...
PLAY RECAP ********************************************************************
node3                      : ok=14   changed=11   unreachable=0    failed=0

The important one is "failed=0" :)

Provision a VM

This command will run all the ansible playbooks, the VM must be "UP".

vagrant provision <vm_name>

For example:

$ vagrant provision node3
[node3] Running provisioner: ansible...
PLAY [all] ********************************************************************
...
PLAY RECAP ********************************************************************
node3                      : ok=14   changed=1   unreachable=0    failed=0

Again, the important one is "failed=0" :)

Percona Webinar command transcript

Here is a transcript of the commands we use to deliver a Percona Webinar on MySQL Fabric: https://github.com/martinarrieta/vagrant-fabric/blob/sharding/webinar-commands/session-0.org

主要指标

概览
名称与所有者martinarrieta/vagrant-fabric
主编程语言Perl
编程语言Perl (语言数: 2)
平台
许可证
所有者活动
创建于2014-05-07 15:52:11
推送于2014-09-29 15:01:41
最后一次提交2014-07-31 19:57:14
发布数0
用户参与
星数15
关注者数3
派生数11
提交数21
已启用问题?
问题数1
打开的问题数1
拉请求数1
打开的拉请求数0
关闭的拉请求数0
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?