Skip to content

An ansible role to setup drupal. webserver is separate.

License

Notifications You must be signed in to change notification settings

GeekOops/geekoops-drupal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test deployment

Set up Drupal

Configurable ansible role for installing drupal. webserver setup is separate. We obtain drupal and dependencies via composer. A cronjob keeps them up-to-date. mysql/mariadb is used for the database.

  • openSUSE Leap 15.4 -> tested

Role Variables


You can set the following variables to configure the role. Here listed are the variables and their default settings.

Value Description Default
sqlbackup file with an sql backup ""
drupal_location install location of drupal in /srv/www "drupal9-hp"
drupal_db_name name of mysql database "drupal_hp"
drupal_db_user mysql user "drupal_user"
drupal_db_pw password of mysql user randomly generated?
drupal_trusted_host_pattern A regex to trust certain hostnames, e.g. your own. "^www.example.com$"

Example Playbook

Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:

- hosts: jellyfish
  roles:
     - { role: geekoops-drupal, drupal_db_user: "drupal-user", drupal_db_pw: "1234abcd" }

An advanced example for the imaginary jellyfish test server

- hosts: jellyfish
  roles:
     - role: geekoops-drupal
       vars:
         drupal_db_user: "drupal-user"
         drupal_db_pw: "1234abcd"

Stuff to do afterwards

  • If you replayed a backup, you need to copy over files, modules, themes...
  • set up cron-job for drupal cron

License

MIT

Development

  • extend to setup the webserver. Currently we don't provide a vhost for it.
  • Test on 15.3

About

An ansible role to setup drupal. webserver is separate.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages