Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Even for those of us experienced aegir users, having site nodes appear when a platform is verified without any notice or ability to intercept, can be jarring at best and can break things at worst.
I suggest we make this behavior optional. I think it should be "opt-in". If you are planning on importing existing sites, then you know you want to do that, so you should go trigger the setting.
In a follow up issue, perhaps we can build a UI to show sites available to import and add a button to do so.
Comment | File | Size | Author |
---|---|---|---|
#3 | 3020317-optional-site-import.patch | 3.04 KB | Jon Pugh |
Comments
Comment #3
Jon PughPatch and branch adds a setting: 'Automatically import sites when verifying platforms'
For now this defaults the setting to TRUE which is current behavior.
Let's get this committed first then we can debate the default behavior.
Comment #4
Jon PughComment #5
colanI didn't even know that this happened automatically. Traditionally, I would create the platform, create the site, and then move site assets into place and then import the DB.
What happens when you visit a site that's auto-created? Does it just take you to the standard Drupal site-install form, pick your language, etc.?
In any case, making this configurable is a good idea. Besides being able to turn it off, it also makes the feature visible.
I like that's it's left enabled by default, as this is how it's been working until now.
Comment #7
helmo CreditAttribution: helmo as a volunteer commentedMerged, thanks
Comment #8
colanAnyone?
Comment #10
Jon PughThe site node is what is "auto-created" via a
drush @hostmaster hosting-import
call.Provision assumes if the sites/domain.com folder exists the site is already installed there and just uses the existing settings.php, I think. I believe the hosting-import tries to determine the sql info from the existing settings.php file but I'd have to inspect the command to be sure.