Deploying with Ansible » History » Version 1
  Jon Goldberg, 09/04/2018 06:46 PM 
  
| 1 | 1 | Jon Goldberg | # Deploying with Ansible | 
|---|---|---|---|
| 2 | |||
| 3 | ## Ansible with multisite CiviCRM | ||
| 4 | Our configuration supports CiviCRM multisite where there are multiple CMSes and a single CiviCRM database. To deploy in this configuration: | ||
| 5 | * Add the first site to the [https://crm.megaphonetech.com/website-list] and install normally. | ||
| 6 | * Once installation on site 1 is complete, install the [Multisite Permissioning](https://civicrm.org/extensions/multisite-permissioning) extension and create the database records for site 2. | ||
| 7 | * Add the second site to the [https://crm.megaphonetech.com/website-list] and install **normally**, ignoring multisite. Note that you'll probably need to override the DB User, CMS DB Name and CRM DB Name to prevent collisions with site 1. | ||
| 8 | * Once the site is up and running, open the entry in the website list, go to *Overrides*, and make the following changes: | ||
| 9 | * Change the "Multisite Domain ID" to `2`. | ||
| 10 | * Change the "CRM DB Name" to match that of site 1. Leave the "CMS DB Name" and "DB User" different from site 1. | ||
| 11 | * Re-run Ansible. | ||
| 12 | * Drop the CRM database created for site 2. | ||
| 13 | * Repeat as necessary for other sites. |