hosting drupal sites? you need - colan.consulting · development seed 3. koumbit 4. now : disparate...
TRANSCRIPT
Hosting Drupal sites? You need
Colan Schwartz@
DrupalTO, 2018-05-29
Licensed under Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)
Hosting Drupal sites? You need
Colan Schwartz@
DrupalTO, 2018-05-29
Licensed under Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)
AEGIR API
Speaker Information
‣ Colan Schwartz‣ Core Maintainer of Aegir‣ colan on drupal.org (12 yrs)‣ colan.consulting‣ Enterprise Cloud Architect‣ Independent Contractor‣ Aegir/SaaS/PaaS/IaaS‣ Start-ups, Government, etc.‣ Small site builds
HISTORY & COMMUNITY
‣ Started in 20061. Bryght / Raincity Studios2. Development Seed3. Koumbit4. Now : Disparate core team
‣ Community‣ 6 core maintainers‣ 20+ contributors‣ 500+ installations
‣ Values:‣ Share best practices‣ Tools not policy‣ Keep the software stack free
(libre)
History
OTHER CAPABILITIES
‣ National Democratic Institute‣ NASA‣ CiviCRM‣ European Commission
Who’s using it?
ARCHITECTURE
‣ http://docs.aegirproject.org/en/3.x/
‣ Front-end:‣ Hostmaster (profle)‣ Hosting (modules)‣ Eldir (theme)
‣ Back-end:‣ Provision (Drush)
‣ Installation‣ See Install Guide‣ Options :
● Debian package● Manual
Architectural Components & Installation
CORE CONCEPTS
‣ Servers (services)‣ Platforms (code-base)‣ Sites (confg & state)‣ Tasks & queues
Entities
BUILDING PLATFORMS
‣ Custom code-bases manage updates to one or hundreds of sites at a time.‣ Drush Make‣ Git‣ Manual‣ Composer
● Core functionality● Extras : Aegir Deploy
Deployment Strategies
MANAGING SITES
‣ Creates site directory‣ Provisions database‣ Writes:
‣ settings.php‣ drushrc.php‣ vhost
‣ Restarts web server
Site Installation
MANAGING SITES (CONT’D)
‣ Migration (updates)‣ Creates a backup‣ Deploys new site from
backup‣ Re-writes fle paths in
database‣ Runs update.php‣ Re-writes vhost
‣ Notable features‣ Rollback on failure‣ Platform migration
➢ All sites on a platform !
Site/Platform Migration
CLUSTERING SERVERS
‣ High-performance and highly-available sites.‣ Web cluster (rsync, S3)‣ Web pack (NFS)
‣ Load-balancing & reverse-proxy/cache are currently managed externally.
‣ Site auditing, monitoring, and reporting
Infrastructure Tools
WORKFLOWS
‣ Automating workfows across development, testing, staging and production environments.‣ Remote site importing‣ DevShop‣ BOA/Octopus‣ Custom workfows via
convention and/or Aegir API
DevOps
OTHER CAPABILITIES
‣ Web Services‣ RESTful API / Aegir Services‣ Aegir SaaS
‣ Other CMSes‣ CiviCRM‣ Wordpress
‣ HTTPS‣ Let’s Encrypt certifcates
‣ Many other contribs
Module Suites
AEGIR API
‣ Just like Drupal core‣ Leverage the Aegir API to
customize workfows and deploy custom confguration to sites and web servers.
‣ Examples● Inject custom vhost confg● Run code after site creation● Etc.
Hook System
HISTORY & COMMUNITY
‣ Aegir 3 is stable, but soon :
‣ Aegir 4● Long-term global Drush● Jon Pugh● Drush → Symfony● Keeps original front-end● Medium-term solution until…
‣ Aegir 5● Complete rewrite● Chris Gervais (ergonlogic)● Drupal 8 front-end● Drush → Ansible / K8s● Celery (task queue)● Can host anything !● Architecture doc
Future
ARCHITECTURE
‣ Questions ?‣ Discussion ?
‣ Thanks !