You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's a slight dispute over if sites.php should be part of your repo or not.
In some cases (like a profile-based site built by Drush Make) there by definition won't be a sites.php.
Helpfully, we should be able to generate one with an erb template.
If a site's config.rb block has a multisite_dir variable set, we should check to see if /srv/www/${path}/sites/sites.php exists. If it does, we should see if there's a line in the format:
$sites['${host}'] = '${multisite_dir}';
If not, we should add one.
If no file exists, we should create a template sites.php that just starts with an open php block <?php and has that first multisite def as the first line.
This will probably be pretty difficult, as Puppet doesn't like partially modifying a file. Puppet likes managing a file outright. So if you try to modify a file twice I fully expect it would get angry . . . but then you'd need to sort out what hosts belong to what shared checkout directories, and that's not readily available due to the structure of config.rb. Maybe we need to an extra collect-to-fact like we do for hostnames?
The text was updated successfully, but these errors were encountered:
There's a slight dispute over if
sites.php
should be part of your repo or not.In some cases (like a profile-based site built by Drush Make) there by definition won't be a
sites.php
.Helpfully, we should be able to generate one with an erb template.
If a site's
config.rb
block has amultisite_dir
variable set, we should check to see if/srv/www/${path}/sites/sites.php
exists. If it does, we should see if there's a line in the format:$sites['${host}'] = '${multisite_dir}';
If not, we should add one.
If no file exists, we should create a template
sites.php
that just starts with an open php block<?php
and has that first multisite def as the first line.This will probably be pretty difficult, as Puppet doesn't like partially modifying a file. Puppet likes managing a file outright. So if you try to modify a file twice I fully expect it would get angry . . . but then you'd need to sort out what hosts belong to what shared checkout directories, and that's not readily available due to the structure of
config.rb
. Maybe we need to an extra collect-to-fact like we do for hostnames?The text was updated successfully, but these errors were encountered: