CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Aegir CiviCRM Provisioning
Pages: [1] 2 3

Author Topic: Aegir CiviCRM Provisioning  (Read 12540 times)

geilhufe

  • I post frequently
  • ***
  • Posts: 293
  • Karma: 33
    • Social Source Software
Aegir CiviCRM Provisioning
August 21, 2010, 12:17:41 am
I am starting to tackle some of the issues around Drupal Aegir automated provisioning. I'd like to get automated provisioning, migration, etc. of CiviCRM working with Aegir.

I've started working with the code that was referenced here: http://civicrm.org/blogs/scyrma/civicrm-and-aegir

1. Does anyone have working automated provisioning on Drupal+Civi on Aegir?

2. Anyone want to work on this?
Drupal and CiviCRM consulting, strategy and configuration
http://www.social-source.com/

mathieu

  • Administrator
  • Ask me questions
  • *****
  • Posts: 620
  • Karma: 36
    • Work
  • CiviCRM version: 4.7
  • CMS version: Drupal
  • MySQL version: MariaDB 10
  • PHP version: 7
Re: Aegir CiviCRM Provisioning
September 20, 2010, 09:47:36 pm
Have you had any progress?

I recently started working on this a bit more. The original author (scyrma) is a colleague and our organisation heavily uses Aegir, so I forked scyrma's code:

http://git.koumbit.net/?p=drupal/contrib/modules/provision_civicrm.git;a=summary
git clone git://git.koumbit.net/drupal/contrib/modules/provision_civicrm

Right now that code includes really bad patches to civicrm.drush.inc in the hope of making a clean provision_civicrm, then to propose patches to the Drush module. The installation works, but migrating doesn't, I have a weird problem in the civicrm_config_update(). It also assumes that you are installing CiviCRM in the same database as Drupal, and that civicrm is in "sites/all". There is more info in the README.txt.

matt (bgm on #civicrm)
CiviCamp Montréal, 29 septembre 2017 | Co-founder / consultant / turn-key CiviCRM hosting for Quebec/Canada @ SymbioTIC.coop

geilhufe

  • I post frequently
  • ***
  • Posts: 293
  • Karma: 33
    • Social Source Software
Re: Aegir CiviCRM Provisioning
September 20, 2010, 09:57:21 pm
I am a woefully inadequate coder. My progress has only been to define the missing elements - it looks like actual fixes are beyond me.

I'd be interested in what Drush patches you envision. I thought all the required CiviCRM unique code could be contained in civicrm.drush.inc
Drupal and CiviCRM consulting, strategy and configuration
http://www.social-source.com/

mathieu

  • Administrator
  • Ask me questions
  • *****
  • Posts: 620
  • Karma: 36
    • Work
  • CiviCRM version: 4.7
  • CMS version: Drupal
  • MySQL version: MariaDB 10
  • PHP version: 7
Re: Aegir CiviCRM Provisioning
September 21, 2010, 05:08:16 am
Yes, provision_civicrm uses civicrm.drush.inc as much as possible. My patches are mostly stuff related to paths and the "untar" procedure. I also want to get it to work as a proof of concept before we go too much into proposing patches to civicrm.drush.inc, but from what I understood, work is also underway to make the drush module and the civicrm installer more modular.

http://issues.civicrm.org/jira/browse/CRM-6841
http://issues.civicrm.org/jira/browse/CRM-6840

Note that, for the time being, the git repository includes the patched civicrm.drush.inc.

You can test provision_civicrm :
-> $ git clone git://git.koumbit.net/drupal/contrib/modules/provision_civicrm
-> place it in /var/aegir/.drush/
-> download and untar civicrm in a platform's sites/all/modules
-> verify the platform
-> create a site, and you will see that CiviCRM has been installed.
CiviCamp Montréal, 29 septembre 2017 | Co-founder / consultant / turn-key CiviCRM hosting for Quebec/Canada @ SymbioTIC.coop

mathieu

  • Administrator
  • Ask me questions
  • *****
  • Posts: 620
  • Karma: 36
    • Work
  • CiviCRM version: 4.7
  • CMS version: Drupal
  • MySQL version: MariaDB 10
  • PHP version: 7
Re: Aegir CiviCRM Provisioning
October 01, 2010, 09:39:10 pm
I now have a working "verify" (so migrating/cloning a site now works). The code is available in the above git repository.

Next step now is to cleanup the changes done to civicrm.drush.inc and submit patches, but in the mean time, it's working :)
CiviCamp Montréal, 29 septembre 2017 | Co-founder / consultant / turn-key CiviCRM hosting for Quebec/Canada @ SymbioTIC.coop

mathieu

  • Administrator
  • Ask me questions
  • *****
  • Posts: 620
  • Karma: 36
    • Work
  • CiviCRM version: 4.7
  • CMS version: Drupal
  • MySQL version: MariaDB 10
  • PHP version: 7
Re: Aegir CiviCRM Provisioning
October 04, 2010, 08:44:38 pm
Just for info, even if not aegir-specific, here is the syntax to add civicrm into a drush make file:

Code: [Select]
api = "2"
core = "6.x"
projects[drupal][version] = "6.19"

projects[civicrm][download][type] = "get"
projects[civicrm][download][url] = "http://downloads.sourceforge.net/project/civicrm/civicrm-stable/3.2.3/civicrm-3.2.3-drupal.tar.gz"
projects[civicrm][directory_name] = "civicrm"

Save that into a make file, such as "example.make", then:

Code: [Select]
$ mkdir -p /var/aegir/platforms/prod-civicrm-3.2.3-drupal-6.19
$ cd /var/aegir/platforms/prod-civicrm-3.2.3-drupal-6.19
$ drush make /path/to/example.make

That will install a new platform with Drupal 6.19 and CiviCRM 3.2.3, then you then have to create the platform in Aegir as usual.

We use make files to manage our Aegir platforms because we want to create similar environments on different servers. By having specific versions (we do this for all modules), we make sure that all servers have the same environment, and we upgrade things on the "one, a few, many, all" basis.

I am probably abusing of this thread, but I'll later recapitulate into a blog post or something when it makes more sense.
CiviCamp Montréal, 29 septembre 2017 | Co-founder / consultant / turn-key CiviCRM hosting for Quebec/Canada @ SymbioTIC.coop

geilhufe

  • I post frequently
  • ***
  • Posts: 293
  • Karma: 33
    • Social Source Software
Re: Aegir CiviCRM Provisioning
October 05, 2010, 04:18:23 pm
I'm following along even if I'm the only one.
Drupal and CiviCRM consulting, strategy and configuration
http://www.social-source.com/

demeritcowboy

  • Ask me questions
  • ****
  • Posts: 570
  • Karma: 42
  • CiviCRM version: Always the latest!
  • CMS version: Drupal 6 mostly, still evaluating 7.
  • MySQL version: Mix of 5.0 / 5.1 / 5.5
  • PHP version: 5.3, usually on Windows
Re: Aegir CiviCRM Provisioning
October 06, 2010, 08:15:01 am
You're not the only one just it's low on our priority list. Also we had someone take a quick look at Aegir over the summer and he couldn't even get it installed and working on its own so it dropped down even farther.

Andrew Perry

  • I post occasionally
  • **
  • Posts: 98
  • Karma: 1
  • Building empowering tools that comply with rules
    • Community Builders Australia
  • CiviCRM version: 3.x, 4.x
  • CMS version: Joomla 1.0.x, 1.5.x -> Drupal 6.x, 7.x, WordPress
  • MySQL version: 5.1, 5.5, 5.6
  • PHP version: 5.2, 5.3, 5.4
Re: Aegir CiviCRM Provisioning
November 19, 2010, 12:44:27 am
I'll join in too.  Thanks for sharing the code - Aegir is a thing of beauty!
Community Builders Australia Pty Ltd
www.communitybuilders.com.au

Andrew Perry

  • I post occasionally
  • **
  • Posts: 98
  • Karma: 1
  • Building empowering tools that comply with rules
    • Community Builders Australia
  • CiviCRM version: 3.x, 4.x
  • CMS version: Joomla 1.0.x, 1.5.x -> Drupal 6.x, 7.x, WordPress
  • MySQL version: 5.1, 5.5, 5.6
  • PHP version: 5.2, 5.3, 5.4
Re: Aegir CiviCRM Provisioning
November 19, 2010, 02:17:49 am
These instructions worked a treat thanks.
Community Builders Australia Pty Ltd
www.communitybuilders.com.au

MacRonin

  • I post frequently
  • ***
  • Posts: 153
  • Karma: 14
Re: Aegir CiviCRM Provisioning
December 10, 2010, 05:09:16 pm
Just adding another voice to the list of those interested in an automated solution for working with CiviCRM via Aegir.

I just put together my first Aegir server and love it so far. Starting out with experimenting to see how things work. Aegir itself has been going fine. I had one small hiccup with the installer created by Omega8cc which left me with an incomplete system monitor(Performance charts), but I ran apt-get for RRDtool(the missing piece) and its been fine since.

The main diff for Omega8cc's installer(Barracuda+Octopus) is the extra tools(DB tools, system security, Perf monitor, webmin, etc) it brings in with Aegir, plus the fact that it uses nginx instead of Apache, and MariaDB (an enhanced fork of MySQL) instead of MySQL itself.

When I get chance (hopefully shortly) I plan of giving this Aegir-Platform for CiviCRM a try, But first I'll give the Makefile for the platform a shot. That alone will simplify things for creating some test/demo installs, even with having to manually run the CiviCRM installer.

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Aegir CiviCRM Provisioning
December 13, 2010, 12:38:07 pm
Very interested in this.

Up till now my dreams about automation have always involved tools like puppet and chef.  Does anyone know where tools like puppet and chef meet tools like aegir?  Seems to me like if you could wrap up aegir in puppet, we'd have an awesome way to share a civicrm provisioning environment.

Thoughts anyone?  I can elaborate if people are interested / don't think this is highjacking the thread :)
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

mathieu

  • Administrator
  • Ask me questions
  • *****
  • Posts: 620
  • Karma: 36
    • Work
  • CiviCRM version: 4.7
  • CMS version: Drupal
  • MySQL version: MariaDB 10
  • PHP version: 7
Re: Aegir CiviCRM Provisioning
December 13, 2010, 01:24:02 pm
@michaelmcandrew : At Koumbit, we deploy most of our configurations using Puppet. But until recently Aegir was a moving target, so we would deploy it manually using a makefile.

Now that Aegir is in beta, from what I understood from a 5 min discussion with anarcat (one of the Aegir developers, and also the Debian maintainer for the drush package), there is a Debian package for Aegir which will help for deployment with Puppet, but there are still minor blockers so it can be fully automated. It also needs more testers and it is not right now the highest priority at Koumbit, so we don't have a clear timeline on when it will be done.

If you're interested, I recommend that you contact him directly via IRC (anarcat in #aegir on Freenode, antoine@koumbit.org). Koumbit can also do contract work.
CiviCamp Montréal, 29 septembre 2017 | Co-founder / consultant / turn-key CiviCRM hosting for Quebec/Canada @ SymbioTIC.coop

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Aegir CiviCRM Provisioning
December 14, 2010, 05:20:06 am
Thanks mlufty,

That sounds really interesting.  Excited that other people are also using Puppet in a CiviCRM context.  Would like to talk to you (on a seperate thread) more about using Puppet and Aegir for perfect civi hosting :)
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

Andrew Perry

  • I post occasionally
  • **
  • Posts: 98
  • Karma: 1
  • Building empowering tools that comply with rules
    • Community Builders Australia
  • CiviCRM version: 3.x, 4.x
  • CMS version: Joomla 1.0.x, 1.5.x -> Drupal 6.x, 7.x, WordPress
  • MySQL version: 5.1, 5.5, 5.6
  • PHP version: 5.2, 5.3, 5.4
Re: Aegir CiviCRM Provisioning
December 16, 2010, 02:09:19 pm
Yes - definitely interesting times ahead with Aegir, Puppet etc.

We are doing little bits and pieces with them with a view to next year being the year of Aegir!
Community Builders Australia Pty Ltd
www.communitybuilders.com.au

Pages: [1] 2 3
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Aegir CiviCRM Provisioning

This forum was archived on 2017-11-26.