Code Monkey home page Code Monkey logo

drupal-infrastructure-install's Introduction

Provision infrastructure for Drupal servers

How to use this repo locally

  1. Clone the repository
  2. Install dependencies: ansible-galaxy install -r requirements.yml
  3. Copy host_vars/1.2.3.4 -> host_vars/aaa.bbb.ccc.ddd and edit according to your needs
  4. Provision a single host: /run.sh -l aaa.bbb.ccc.ddd

What the playbook does

  • Installs git
  • Installs nginx and creates virtual hosts
  • Installs certbot and creates certificates for the virtual hosts, adds cronjobs to automatically renew those
  • Installs MySQL and creates databases
  • Installs PHP (PHP-FPM)
  • Creates SSH users based on Github accounts (SSH keys retrieved from https://github.com/USERNAME.keys)
  • Create the "web" user that should be used for Drupal deployments
  • Creates the /var/www/config/domain.com folders, with all the settings files
  • Creates the /var/www/artifacts folder for Github actions
  • Creates crontab entries that run drush:cron for each site

What's left to do after this

  • Import a database dump
  • Do an usual Github Actions deployment

drupal-infrastructure-install's People

Contributors

stefanbutura avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.