All Projects → cedricblondeau → magento2-ansible-vagrant

cedricblondeau / magento2-ansible-vagrant

Licence: MIT license
Ⓜ️2️⃣ Ansible provisioned Ubuntu 16.04 vagrant box for Magento2 development.

Projects that are alternatives of or similar to magento2-ansible-vagrant

magento2-fast-vm
Optimal vagrant developer box for Magento2. Folders synced by nfs/rsync. This box includes Magento developer utilities.
Stars: ✭ 89 (+256%)
Mutual labels:  vagrant, nfs, magento2
module-dsu-client
No description or website provided.
Stars: ✭ 17 (-32%)
Mutual labels:  magento, magento2
magento2-installer-bash-script
Simplistic Magento 2 Installer Bash Script
Stars: ✭ 38 (+52%)
Mutual labels:  magento, magento2
Worldpay-Magento2-CG
Worldpay Magento 2 Plugin for Worldpay Corporate Gateway
Stars: ✭ 15 (-40%)
Mutual labels:  magento, magento2
magento2-language-tr tr
Magento2 Turkish Translation / Magento2 Türkçe Çevirisi
Stars: ✭ 28 (+12%)
Mutual labels:  magento, magento2
magento2
For any issues or questions please get in touch with us via [email protected]
Stars: ✭ 15 (-40%)
Mutual labels:  magento, magento2
module-dsu
No description or website provided.
Stars: ✭ 18 (-28%)
Mutual labels:  magento, magento2
magento2-guest-to-customer
Guest to Customer for Magento2 - Quickly and easily convert existing guest checkout customers to registered customers.
Stars: ✭ 66 (+164%)
Mutual labels:  magento, magento2
Magento2 SomethingDigital UpgradeHelper
No description or website provided.
Stars: ✭ 16 (-36%)
Mutual labels:  magento, magento2
module-notifications
Notify the Magento 2 admin user about disabled caches or new customer reviews.
Stars: ✭ 20 (-20%)
Mutual labels:  magento, magento2
magento2-edit-order-email
Magento2 - Edit Order Email from Admin
Stars: ✭ 30 (+20%)
Mutual labels:  magento, magento2
drupalci-sonar-jenkins
DEPRECATED - Drupal CI environment with SonarQube and Jenkins for Drupal Core code analysis.
Stars: ✭ 40 (+60%)
Mutual labels:  vagrant, vm
module-blog-m22
Fixes for Blog on Magento 2.2.x
Stars: ✭ 21 (-16%)
Mutual labels:  magento, magento2
vagrant-magento
**DEPRECATED**
Stars: ✭ 12 (-52%)
Mutual labels:  vagrant, magento
Magento-2-aws-cluster-terraform
Magento 2 AWS autoscaling cluster with Terraform and Packer or ImageBuilder. Adobe Commerce Cloud alternative. The best ecommerce infrastructure. Drive more sales online. Transparent billing. Developer-friendly. No hidden bottlenecks.
Stars: ✭ 107 (+328%)
Mutual labels:  magento, magento2
magento2-db-log-cleaner
Magento2 Cron Log Cleaning
Stars: ✭ 23 (-8%)
Mutual labels:  magento, magento2
Brazilian-Solutions
Este repositório permite a discussão da comunidade brasileira Magento sobre módulos e soluções para o mercado brasileiro.
Stars: ✭ 19 (-24%)
Mutual labels:  magento, magento2
Drupal Vm
A VM for Drupal development
Stars: ✭ 1,348 (+5292%)
Mutual labels:  vagrant, vm
Box
[DEPRECATED] Official, pre-packaged Vagrant Box
Stars: ✭ 197 (+688%)
Mutual labels:  vagrant, vm
cikit
Continuous Integration Kit (CIKit)
Stars: ✭ 21 (-16%)
Mutual labels:  vagrant, vm

magento2-ansible-vagrant

Ansible provisioned Ubuntu 16.04 vagrant box for Magento2 development.

Definitely not full-featured but useful to bootstrap a dev project.

Prerequisites

  • Vagrant
  • VirtualBox

This box uses Ansible Local Provisioner. As a result, Ansible do not need to be installed on the host.

Base box

geerlingguy/ubuntu1604

Roles

  • Dev tools: git, vim, curl, htop
  • PHP (7.0 + Composer + Xdebug)
  • Nginx
  • Redis (for session, full page cache and frontend cache)
  • MariaDB 10.0 (dedicated user and database)
  • Magento2 (automated project creation if directory is empty, installation and configuration)

Get started

1. Clone this repository

git clone https://github.com/cedricblondeau/magento2-ansible-vagrant

2. Configure

Create a dev.yml conf file in ansible/group_vars:

cd magento2-ansible-vagrant
cp ansible/group_vars/dev.yml.sample ansible/group_vars/dev.yml

And configure your environment:

magento_account_public_key: YOUR_PUBLIC_KEY_HERE
magento_account_private_key: YOUR_PRIVATE_KEY_HERE
mysql_user: magento2
mysql_password: magento2
mysql_dbname: magento2
magento2_language: en_US
magento2_currency: USD
magento2_admin_user: admin
magento2_admin_password: admin2015
magento2_admin_email: [email protected]
magento2_admin_firstname: John
magento2_admin_lastname: Doe
magento2_crypt_key: YOUR_CRYPT_KEY
magento2_base_url: http://192.168.33.10

3. Define a syncing strategy (optional)

See syncing section. You can skip this step if you just want to try Magento2 and don't need to edit files.

4. Up!

vagrant up

5. It's ready!

Default base URL is: http://192.168.33.10

Syncing

By default, Magento2 files live in the box.

It's up to you to configure your preferred sync solution. Here are some ideas:

NFS (host => guest)

You can find a commented out statement in Vagrantfile.

Example:

  config.vm.synced_folder "../magento2", "/home/vagrant/repos/magento2",
    type: 'nfs', mount_options: ['rw', 'async', 'fsc' ,'actimeo=2']

NFS (guest => host)

See vagrant-nfs_guest

Don't sync anything

You could also use your text editor/IDE in the VM. You may want to install a GUI or play with X11 forwarding to do so.

Rsync

FAQ / Common issues

It looks like the playbook freezes at the task magento2 : Create project

It's probably not frozen. Downloading dependencies can take time and it depends on multiple factors such as internet connection speed and syncing strategy.

502 Bad Gateway when accessing the store after initial setup

It may happen if a step failed during the installation and fpm service did not start properly. As a result, nginx cannot communicate with fpm service. Restarting the VM or php-fpm (sudo service php7.0-fpm restart) may help.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].