Adding a new site¶
In the inventory there are all Drupal sites defined in a variable called
drupal_settings. To add a new site simply add the definition as a new item to that existing array and then run the full farm playbook on the respective host followed by the user playbook:
Running the full farm playbook is necessary because a new Drupal site impacts almost all parts of the system.
If you are using jails, then you can limit the Drupal deployment to one of the the jails by adding
-e "limit_site=[DRUPAL-SITE-ID]" to the commands above.
If you are also using HaProxy and/or Varnish as well, you may have to run their updates too:
Limiting access with Apache Basic Authentication¶
If you want to limit access to a Drupal site you can utilize Apache's basic authentication control by simply adding a couple of variables to the
drupal_settings in your inventory:
1 2 3 4 5 6 7 8 9 10 11 12
To deploy those changes, run
Update a deployed Drupal site¶