aegir one drupal to rule them all
DESCRIPTION
The Aegir hosting system allows developers and site administrators to automate many of the common tasks associated with deploying and managing large websites. Aegir makes it easy to install, upgrade, deploy, and backup an entire network of Drupal sites.TRANSCRIPT
![Page 1: Aegir One Drupal to Rule Them All](https://reader036.vdocument.in/reader036/viewer/2022062405/554f7a31b4c905435d8b469a/html5/thumbnails/1.jpg)
One Drupal To Rule Them AllOne Drupal To Rule Them All
![Page 2: Aegir One Drupal to Rule Them All](https://reader036.vdocument.in/reader036/viewer/2022062405/554f7a31b4c905435d8b469a/html5/thumbnails/2.jpg)
Who am I?
• Gareth Hall
• Communica (http://communica.co.nz)
• Freelancer / Contractor
![Page 3: Aegir One Drupal to Rule Them All](https://reader036.vdocument.in/reader036/viewer/2022062405/554f7a31b4c905435d8b469a/html5/thumbnails/3.jpg)
Why do I need Aegir?
![Page 4: Aegir One Drupal to Rule Them All](https://reader036.vdocument.in/reader036/viewer/2022062405/554f7a31b4c905435d8b469a/html5/thumbnails/4.jpg)
Running Drupal is hard and complicated
![Page 5: Aegir One Drupal to Rule Them All](https://reader036.vdocument.in/reader036/viewer/2022062405/554f7a31b4c905435d8b469a/html5/thumbnails/5.jpg)
We got Drupal
• It awesome and great.
• But now we need a way to share a common code base.
• Why have 50 sites and all of them have their own copy of views, token, ctools, admin, wysiwyg ...
![Page 6: Aegir One Drupal to Rule Them All](https://reader036.vdocument.in/reader036/viewer/2022062405/554f7a31b4c905435d8b469a/html5/thumbnails/6.jpg)
Then came Multisite
• Shared code base FTW!
• But doing common tasks is hard.
• Upgrading modules and core.
• Different module versions.
• It takes a long time to upgrade 50 sites.
![Page 7: Aegir One Drupal to Rule Them All](https://reader036.vdocument.in/reader036/viewer/2022062405/554f7a31b4c905435d8b469a/html5/thumbnails/7.jpg)
Drush
• Command line tool to Drupal!
• Argh another thing to learn.
• It’s command line only ... forget it!
• Experience ... shit I broke something how do I fix it in command line.
![Page 8: Aegir One Drupal to Rule Them All](https://reader036.vdocument.in/reader036/viewer/2022062405/554f7a31b4c905435d8b469a/html5/thumbnails/8.jpg)
What is Aegir?
• Drupal Multisite + Drush + Steroids
• It’s a Drupal front-end to manage common Drupal tasks like create, update and deploy.
• Manages Apache
• Manages MYSQL
![Page 9: Aegir One Drupal to Rule Them All](https://reader036.vdocument.in/reader036/viewer/2022062405/554f7a31b4c905435d8b469a/html5/thumbnails/9.jpg)
Advantages
• Automation
• Roll back
• Easy to use
• Built on Drupal
• Contributed modules
• Multi server support
![Page 10: Aegir One Drupal to Rule Them All](https://reader036.vdocument.in/reader036/viewer/2022062405/554f7a31b4c905435d8b469a/html5/thumbnails/10.jpg)
Disadvantages
• Poor fail over
• Built on Drupal 6
• Future road map
• Drupal only so it not framework agnostic
• Collaboration hard to do well
• No resource allocation
• No statistics
• You need a server admin
![Page 11: Aegir One Drupal to Rule Them All](https://reader036.vdocument.in/reader036/viewer/2022062405/554f7a31b4c905435d8b469a/html5/thumbnails/11.jpg)
The aegir framework
• Hostmaster = Front end and is Drupal.
• Provision = Back end and is Drush.
![Page 12: Aegir One Drupal to Rule Them All](https://reader036.vdocument.in/reader036/viewer/2022062405/554f7a31b4c905435d8b469a/html5/thumbnails/12.jpg)
![Page 13: Aegir One Drupal to Rule Them All](https://reader036.vdocument.in/reader036/viewer/2022062405/554f7a31b4c905435d8b469a/html5/thumbnails/13.jpg)
Terminology
![Page 14: Aegir One Drupal to Rule Them All](https://reader036.vdocument.in/reader036/viewer/2022062405/554f7a31b4c905435d8b469a/html5/thumbnails/14.jpg)
WTF?
![Page 15: Aegir One Drupal to Rule Them All](https://reader036.vdocument.in/reader036/viewer/2022062405/554f7a31b4c905435d8b469a/html5/thumbnails/15.jpg)
Platform
• Shared code base.
• It’s one multisite.
• It’s the root of a Drupal site.
• The Platform name should describes it’s intent.
• Commerce, Basic Brochure, Ubercart 6
![Page 16: Aegir One Drupal to Rule Them All](https://reader036.vdocument.in/reader036/viewer/2022062405/554f7a31b4c905435d8b469a/html5/thumbnails/16.jpg)
Site
• It’s a site within a Platform.
• It shares the code from the Platform.
• Has it’s own database.
![Page 17: Aegir One Drupal to Rule Them All](https://reader036.vdocument.in/reader036/viewer/2022062405/554f7a31b4c905435d8b469a/html5/thumbnails/17.jpg)
![Page 18: Aegir One Drupal to Rule Them All](https://reader036.vdocument.in/reader036/viewer/2022062405/554f7a31b4c905435d8b469a/html5/thumbnails/18.jpg)
Task
• Backend Drush operation that will or has run.
• It’s node containing an audit trail of the operation.
• Common tasks are:
• Verify
• Install
• Migrate
• Enable / Disable
• Backup
![Page 19: Aegir One Drupal to Rule Them All](https://reader036.vdocument.in/reader036/viewer/2022062405/554f7a31b4c905435d8b469a/html5/thumbnails/19.jpg)
Verify
• Checklist of expected behaviour to confirm normal operation.
• It checks that your site, platform or server is working.
![Page 20: Aegir One Drupal to Rule Them All](https://reader036.vdocument.in/reader036/viewer/2022062405/554f7a31b4c905435d8b469a/html5/thumbnails/20.jpg)
Creating a platform
• Create a Drush make file.
• core = 7.x
• api = 2
• projects[] = drupal
• projects[ctools][subdir] = contrib
• projects[token][subdir] = contrib
• projects[views][subdir] = contrib
• projects[webform][subdir] = contrib
• projects[] = omega
• libraries[ckeditor][download][type] = "get"
• libraries[ckeditor][download][url] = "http://url/ckeditor_3.6.6.1.zip"
• libraries[ckeditor][directory_name] = "ckeditor"
![Page 21: Aegir One Drupal to Rule Them All](https://reader036.vdocument.in/reader036/viewer/2022062405/554f7a31b4c905435d8b469a/html5/thumbnails/21.jpg)
![Page 22: Aegir One Drupal to Rule Them All](https://reader036.vdocument.in/reader036/viewer/2022062405/554f7a31b4c905435d8b469a/html5/thumbnails/22.jpg)
![Page 23: Aegir One Drupal to Rule Them All](https://reader036.vdocument.in/reader036/viewer/2022062405/554f7a31b4c905435d8b469a/html5/thumbnails/23.jpg)
Upgrading a site
• Never upgrade a platform
• Create a new platform
• Migrate site to new platform
• Or migrate the whole platform
![Page 24: Aegir One Drupal to Rule Them All](https://reader036.vdocument.in/reader036/viewer/2022062405/554f7a31b4c905435d8b469a/html5/thumbnails/24.jpg)
Remember to test!
• Selenium
• Selenium Webdriver (RC)
• Codeception
![Page 25: Aegir One Drupal to Rule Them All](https://reader036.vdocument.in/reader036/viewer/2022062405/554f7a31b4c905435d8b469a/html5/thumbnails/25.jpg)
QuestionsQuestions
![Page 26: Aegir One Drupal to Rule Them All](https://reader036.vdocument.in/reader036/viewer/2022062405/554f7a31b4c905435d8b469a/html5/thumbnails/26.jpg)
DEMODEMO