why you should be using aegir: the drupal-oriented hosting system

43
Why you should be using Aegir Seth Viebrock - Origin Eight

Upload: seth-viebrock

Post on 21-Dec-2014

3.133 views

Category:

Technology


2 download

DESCRIPTION

This talk covers use cases and installation of the Aegir hosting system, a hosting system that facilitates installation, platform maintenance, security updates, upgrades and deployments for Drupal-based sites. Presented at Drupal Camp Western Mass 2013 (drupalcampma.com/why-you-should-be-using-aegir) by Seth Viebrock, owner of Origin Eight (http://www.origineight.net), a full-service Drupal company. Contact us at http://www.origineight.net/contact with any questions or inquiries, and/or follow us at http://twitter.com/origineight.net .

TRANSCRIPT

Page 1: Why you should be using Aegir: The Drupal-oriented hosting system

Why you should be using AegirSeth Viebrock - Origin Eight

Page 2: Why you should be using Aegir: The Drupal-oriented hosting system

Ægenda

• Intro to Aegir

• Installing Aegir

• Aegir in the workplace

• Using Aegir

• Aegir platform maintenance

• Aegir deployment

Page 3: Why you should be using Aegir: The Drupal-oriented hosting system

Intro to Aegir

Page 4: Why you should be using Aegir: The Drupal-oriented hosting system

Intro to Aegir

• What is Aegir?

• Who is using Aegir?

• Why use Aegir?

Page 5: Why you should be using Aegir: The Drupal-oriented hosting system

What is Aegir?

Page 6: Why you should be using Aegir: The Drupal-oriented hosting system

•A Hosting Management System (HMS)

•A Control Panel

•A Drupal platform management tool

•A site deployment tool

Page 7: Why you should be using Aegir: The Drupal-oriented hosting system

Who is using Aegir?

Page 8: Why you should be using Aegir: The Drupal-oriented hosting system

•Individual developers

•Web development companies

•Universities

•Hosting companies

Page 9: Why you should be using Aegir: The Drupal-oriented hosting system

Why use Aegir?

Page 10: Why you should be using Aegir: The Drupal-oriented hosting system

•Only takes minutes to install Aegir itself!

•Easy site spin-up

•Easy platform management

•Allows you to focus on Drupal over sysadmin

Page 11: Why you should be using Aegir: The Drupal-oriented hosting system

Installing Aegir

Page 12: Why you should be using Aegir: The Drupal-oriented hosting system

• Where to install Aegir

• Installation demo

• Securing your server

Installing Aegir

Page 13: Why you should be using Aegir: The Drupal-oriented hosting system

Where to install Aegir

Page 14: Why you should be using Aegir: The Drupal-oriented hosting system

•A VPS or dedicated server with root access

•A Virtual Machine on your own computer

•Check out the “aegir-up” project, or at least Vagrant.

•Don’t install on a machine that is already flushed out.

Page 15: Why you should be using Aegir: The Drupal-oriented hosting system

Installation demo

Page 16: Why you should be using Aegir: The Drupal-oriented hosting system

• Basic command line skills

• The ability to type “apt-get” and copy-paste instructions.

• Basic UNIX text editor skills (i.e. vim, emacs, nano, pico, etc)

• For production use: Ability to handle basic server maintenance and security, or the ability to pay someone to do it for you.

• Willingness to let go, and do things The Aegir Way.

Prerequisites

Page 17: Why you should be using Aegir: The Drupal-oriented hosting system

•This demo uses the the “Automatic install on Debian” approach outlined at http://community.aegirproject.org/node/400

•Uses a Debian 6 install on a Linode (linode.com)

Page 18: Why you should be using Aegir: The Drupal-oriented hosting system

Versus a manual install

Page 19: Why you should be using Aegir: The Drupal-oriented hosting system

Linode install

Page 20: Why you should be using Aegir: The Drupal-oriented hosting system
Page 21: Why you should be using Aegir: The Drupal-oriented hosting system

Aegir install

Page 22: Why you should be using Aegir: The Drupal-oriented hosting system
Page 23: Why you should be using Aegir: The Drupal-oriented hosting system
Page 24: Why you should be using Aegir: The Drupal-oriented hosting system

Aegir Platform install

Page 25: Why you should be using Aegir: The Drupal-oriented hosting system
Page 26: Why you should be using Aegir: The Drupal-oriented hosting system

Linode install

Page 27: Why you should be using Aegir: The Drupal-oriented hosting system

Securing your server

Page 28: Why you should be using Aegir: The Drupal-oriented hosting system

•Install it on a bare server or VPS

•Keep Aegir up to date

•Follow basic security measures for your particular server, i.e. http://www.thefanclub.co.za/how-to/how-secure-ubuntu-1204-lts-server-part-1-basics

Page 29: Why you should be using Aegir: The Drupal-oriented hosting system

Aegir IN The workplace

Page 30: Why you should be using Aegir: The Drupal-oriented hosting system

•Do you have to make a request to a sysadmin just to get a new dev site set up?

•Do you have a hackneyed or nonexistent process for upgrading Drupal core and performing security updates?

•Do you have to ask someone to find out where any given site is hosted?

•Are permissions on your files and folders unpredictable?

Page 31: Why you should be using Aegir: The Drupal-oriented hosting system

Using aegir

Page 32: Why you should be using Aegir: The Drupal-oriented hosting system

1.Create a platform (say, Drupal 7.14)

2.Create one or many sites in the platform. Clone a site if you wish!

3.Create another platform (say, with security updates in place, i.e. Drupal 7.18)

4.Migrate a site on another platform to the new platform.

5.Repeat

Basic workflow

Page 33: Why you should be using Aegir: The Drupal-oriented hosting system

1.Add SSL certs via the Aegir UI.

2.Delete sites. Disable sites. Backup sites.

3. Optional: drush sql-drop -y && drush sqlc < some-other-database.sql

OTHER workflow

Page 34: Why you should be using Aegir: The Drupal-oriented hosting system

1.Sites, tasks, platforms are “content” (nodes) in Aegir.

2.Content is mapped to configuration on the filesystem.

3.drushrc files

HMS

Page 35: Why you should be using Aegir: The Drupal-oriented hosting system

interesting use cases• Create throw-away experimental sites in seconds.

• Want to try a new distribution? i.e. Panopoly? Just download it, point a new Aegir platform at it, and create a site in that platform with a path to the .make file.

• If you have developers, just give them access! You can restrict access perms as needed. Let them spin up sites. Don’t make them ask and wait for sysadmins!

• Use it to provision dev environments for developers, in the case where each dev instance has its own database.

Page 36: Why you should be using Aegir: The Drupal-oriented hosting system

•I’ll give a quick look at the UI. (Live demo!)

•Does anyone have any questions on how to do something specific?

Page 37: Why you should be using Aegir: The Drupal-oriented hosting system

Eccentricities

• Can’t install a new site on a custom platform a client handed over to you? Just install a site on your own platform and migrate to this platform.

• The aegir UNIX user owns all the code, and the www-data user owns the files. We’ve found that individual developer user accounts should be placed in the www-data and aegir groups to avoid permissions issues and allow access to modify the code.

Page 38: Why you should be using Aegir: The Drupal-oriented hosting system

Aegir Platform maintenance

Page 39: Why you should be using Aegir: The Drupal-oriented hosting system

•Live demo!

Page 40: Why you should be using Aegir: The Drupal-oriented hosting system

Aegir Deployment

Page 41: Why you should be using Aegir: The Drupal-oriented hosting system

•If you have a really beefy server, especially one that can scale on demand, and/or you have very few sites to manage, dev/integration/staging/production could technically be on the same server.

•Recommend having separate server for dev and integration, and a separate server for staging and production.

•Can only deploy the first release of a site (i.e. the first release from dev/integration to production).

Page 42: Why you should be using Aegir: The Drupal-oriented hosting system

Why should you be using aegir?

Page 43: Why you should be using Aegir: The Drupal-oriented hosting system

•Aegir is awesome! And free! And extensible!

•Aegir as a SaaS business model.

•It helps ease awkward tasks:

•platform maintenance and security upgrades

•site installation and multisite architecture

•These awkward tasks are pain points for many users that might prevent them from using Drupal.

•Aegir and Drupal are symbiotic.