Giter Site home page Giter Site logo

devopsbundle's Introduction

/!\ Deprecated /!\

See https://github.com/fansible/tywin for the newer version.

FansibleDevopsBundle

This will help you to generate a Ansible provisioning to run your Symfony apps.

##Requirements This have been tested with the Ubuntu OS. It should work with many other various Linux distribution. Feel free to share your advice for the other OS.. You will need to install if you haven't done yet:

  1. Install the bundle

    composer require fansible/devops-bundle *@dev --dev

  2. Enable the bundle in the app/AppKernel.php file, for development environment only.

if (in_array($this->getEnvironment(), array('dev', 'test'))) {
    /* After other dev dependencies... */
    $bundles[] = new \Fansible\DevopsBundle\FansibleDevopsBundle();
}
  1. Add the following in your configuration in app/config/config_dev.yml

    fansible_devops: #Name of your project name: fansible-devops environments: vagrant: ip: 10.0.0.10 host: fansible-devops.dev #Those vars will be used to generate the VagrantFile #box: ubuntu/trusty64 #memory: 1024 #cpus: 1 #exec: 100 #src: . #dest: /var/www/fansible-devops/current prod: ip: x.x.x.x host: fansible-devops.prod #Specific role you want to use ansible_roles:

    apache:

    name: THEROLEYOUWANT #you can found many roles on ansible galaxy

    version: v24

  2. Add your host in your hostfile: sudo /bin/bash -c "echo '10.0.0.10 fansible-devops.dev' >> /etc/hosts"

  3. Now you can use our command to generate all the files you need to your provisioning. app/console generate:provisioning

  4. To be able to correctly provision your server, ansible needs some role that are describe in the requirements.txt file. You need to download them by running ansible-galaxy install -r requirements.txt.

  5. Now you can run vagrant up to start your vagrant. It is lunched using the Vagrantfile that we have just generated.

devopsbundle's People

Contributors

kosssi avatar maximethoonsen avatar remy-luciani avatar

Stargazers

fengdi721 avatar  avatar Michael Fox avatar Angus H. avatar Thibaut Cheymol avatar Gilles Taupenas avatar Raphaëll Roussel avatar Mathieu Ferment avatar Ndiaye Abdoul avatar  avatar Chris Watson avatar Alexandre Moureaux avatar Th. Ma. avatar Igor Mukhin avatar Adam Elsodaney avatar

Watchers

James Cloos avatar  avatar Alexandre Moureaux avatar

devopsbundle's Issues

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.