Git Product home page Git Product logo

magento-vagrant-puppet's Introduction

A standalone Magento DevOps environment built with Vagrant and Puppet from a vanilla Ubuntu 12.04 LTS box.

Leverage Composer and Phing scripts for enhanced DevOps automation.

Use your own Magento code or have it install the Magento version of your choice.

Getting Started

  1. Install the required software for your host machine
  1. Create the parent directory for your projects
mkdir ~/Code
cd ~/Code
  1. Grab the magento-vagrant-puppet code
git clone https://github.com/matthewsplant/magento-vagrant-puppet.git project_dir
cd project_dir
  1. (Optional) Have script install Magento
  • Set install to true in the Magento class of the main puppet manifest file (base.pp)
  • Set the Magento version also in the Magento class of the main puppet manifest file
  • And remember to revert the install back to false after install
  1. (Optional) Use your own Magento code
  • "git-clone" your Magento project to "www/magento"
  • Import your MySQL database and update the base URLs via the following MySQL query:
UPDATE magento.core_config_data
SET value = 'http://magento.localhost:8080/'
WHERE path in ('web/unsecure/base_url', 'web/secure/base_url')
  • Clear the Magento cache
  1. Add magento.localhost to your hosts /etc/hosts file
    127.0.0.1       magento.localhost
  1. Spin up your new DevOps environment
    vagrant up
  1. (Optional) Install Phing along with additional support libraries on your new DevOps environment
vagrant ssh
cd /vagrant
composer install

Security Note

This virtual machine is optimized for ease of use. Therefore it is not meant for production use.

FAQ

Credentials (set in the main puppet manifest file)

  • Ubuntu User - vagrant/vagrant
  • MySQL User - root/r00t
  • Magento Admin - admin/123123abc

Virtual Machine Specifications

  • Ubuntu 12.04 LTS aka "precise32"
  • Apache 2.2.22
  • MySQL 5.5.31
  • PHP 5.3.10
  • Composer
  • Phing 2.5.0

See http://magento.localhost:8080/phpinfo.php for more details.

Why didn't you put the "puppet" directory in the vendor directory?

  • It was this way
  • I like having the host vm separate from the client "vendor" files
  • It makes it easy to exclude the whole client "vendor" directory from git

magento-vagrant-puppet's People

Contributors

cmuench avatar jameskleinschnitz avatar pigoz avatar tiggerduck avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.