Aegir

From Things and Stuff Wiki
Revision as of 17:46, 1 June 2012 by Milk (talk | contribs)
Jump to navigation Jump to search


half-way through a big refactor

Basics

Provision

System/process overview

Aegir uses Drupal multisite features to share one Drupal codebase install as a 'platform' between sites. Distributions are equal to platform+site, i.e., turnkey solutions. Content can be shared (migrated) between sites using an updated or different platform (with the same content modules, natch). A platform and site distribution is created from a .make and .info using Drush Make. The Profiler library is installed with the .make and uses a .info file to specify modules to be initialised, including site sections/etc. from the Features module plus configuration settings via the Strongarm module. Provision initialises a site on that platform and installs the platform+site in Aegir. Features and theme are stored using Git, --working-copy can be used to build a dev site then content can be migrated from live for testing. Dev platform is perfected, then rebuilt as live without --working-copy.

Stack

See: BOA

Also;

Dev/production workflow

Drush

Drupal on the command-line. The backend of Aegir is the Provision module for Drush.

Drush Make

Drush Make is part of Drush as of Jan 2012.

Example make files

Libraries

Using the Libraries API, make files can specify external libraries to be downloaded.

; CKEditor
libraries[ckeditor][download][type]= "get"
libraries[ckeditor][download][url] =  "[ckeditor zip url goes here]"
libraries[ckeditor][directory_name] = "ckeditor"
libraries[ckeditor][destination] = "libraries"

Profiles

Profiler library

Features and settings

To do: Features

  • Features enables the capture and management of features in Drupal. A feature is a collection of Drupal entities which taken together satisfy a certain use-case.
  • Strongarm gives site builders a way to override the default variable values that Drupal core and contributed modules ship with. [1]
  • Global variables
  • Hosting Features - provides a Task to Hostmaster that provides integration with a site's Features. It is currently in development but works for the most important task: Update & Commit Features

Aegir

Usage

Provision

Importing a site

Clone sites

Migrating and updating platforms

Migration between Aegirs

Aegir contrib.

Misc tools