GithubHelp home page GithubHelp logo

vagrant-fabric's Introduction

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

vagrant-fabric's People

Contributors

fipar avatar martinarrieta avatar

Stargazers

Sangwon Hong avatar VonVictor V. Rosenchild avatar hyee avatar

Watchers

Dmitriy Kostiuk avatar Raghavendra Prabhu avatar Jervin Real avatar Vadim Tkachenko avatar Andrew Moore avatar Sergei Glushchenko avatar Łukasz Adamczyk avatar Zsolt Parragi avatar Igor Solodovnikov avatar James Cloos avatar  avatar  avatar Hrvoje Matijakovic avatar Alexey Stroganov avatar  avatar Bradley C. Kuszmaul avatar Tomislav Plavcic avatar Nailya Kutlubaeva avatar Viacheslav Sarzhan avatar Ramesh Sivaraman avatar Vlad Lesin avatar  avatar Francisco Bordenave avatar Peter Schwaller avatar Frank Cizmich avatar  avatar David Bennett avatar Andrew Pogrebnoi avatar Max Dudin avatar  avatar Krunal Bauskar avatar Przemyslaw Skibinski avatar Manish Chawla avatar Denis Protivenskii avatar  avatar EvgeniyPatlan avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.