eZ Community » Forums » Discussions » VirtualBox virtual machines with...
expandshrink

Tuesday 22 September 2015 4:09:18 pm - 6 replies

» Read full blog post

Introduction

Vagrant and Ansible are tools to efficiently provision virtual machines (also called VMs or simply boxes).

This blog post will begin with a short discussion of why one would invest the time to use these tools, then cover the required software, an overview of how Vagrant works with VirtualBox and the use of Ansible to provision a VM.

Tuesday 22 September 2015 4:44:57 pm

In case anyone needs a vagrant and ansible configuration ready for testing your eZ Publish website, you can take a look at the one we at Netgen prepared and optimized specifically for eZ Publish:

https://github.com/netgen/vagrant-ansible-ezpublish

Wednesday 23 September 2015 10:47:25 am

Many thanks for sharing!

I see 

https://github.com/GMaissa/ansible-role-ezpublish5 

is helpful, too.

Wednesday 23 September 2015 10:55:23 am

Betsy & Edi, 

as I asked yesterday in http://share.ez.no/forums/install-configuration/ansile-for-ez-ini-configurations do you think it could make sense to use/adapt/hack http://docs.ansible.com/ansible/ini_file_module.html to control eZ ini files?  

Wednesday 23 September 2015 10:59:20 am

Hi Francesco,

Well, I'm not a big fan of programatic changes to config files, even by eZ Publish itself happy.gif Emoticon

I keep all config files in the repo and edit them by hand and symlink where and when needed happy.gif Emoticon

But I do recognize that it could be helpful, for unattended installs from scratch, for example.

Tuesday 29 September 2015 4:19:49 pm

Hi Francesco,

Like Edi, I keep the config files in the repo and use symlinks to apply them to different environments.

I usually place the files for the VM and eZ into in two different repositories.

The VM brings up the server ready for use, but without the eZ files.  I use a shared directory for the eZ files.  This allows me to use the host machine to edit the files.

Sunday 04 October 2015 7:00:03 am

I think using Ansible to modify/hack/update the eZ ini files carries significant risk in creating configurations which would be difficult to maintain and debug.

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from