After solving #2821401: Clients can select unavailable platforms during site creation, it might be an idea to have the hostmaster profile automatically created as a locked platform. This would prevent user from accidentally creating a site on it.
Another solution would be to exclusively designate it to admin clients by default, but that checks seems not to be working either.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | lock_the_hostmaster-2821402-6.patch | 3.5 KB | helmo |
Comments
Comment #2
neograph734Comment #3
neograph734Comment #4
neograph734After creating the patch for #2821401: Clients can select unavailable platforms during site creation, it turns out the hostmaster profile is already hidden for regular clients. So there is no need for this.
Comment #5
helmo commentedThis is actually not such a strange idea,
This patch is also in https://github.com/aegir-project/provision/pull/11 , see
https://github.com/aegir-project/provision/pull/11/commits/7ff825a21f99d...
Comment #6
helmo commentedComment #7
memtkmcc commented+1 from me. We are doing this in BOA for years, albeit with direct SQL:
drush @hm sqlq "UPDATE hosting_platform SET status=-1 WHERE nid=7"Comment #8
neograph734I cannot get this to work on a new install (did not yet test migrate).
I started with a clean vm, and installed all requirements.
Then I ran
drush dl --destination=/var/aegir/.drush provision-7.x-3.x-devto obtain the very lastest provision (7.x-3.8+11-dev).I patched the files in /var/aegir/.drush/provision
I cleared drush cache
I ran drush
hostmaster-install.Installation completes as expected, but the profile is not locked.
(Perhaps this issue should be moved to the provision project as it took me quite some time to figure out where to apply the patch?)