Posted by daveparrish on March 3, 2010 at 5:55am
It was my second time installing Aegir on Linode and I decided to make a script to make the whole process a little quicker. The script can be found on Linodes webpage here: http://www.linode.com/stackscripts/view/?StackScriptID=203
I have only tested it on Debian 5.0. It handles most of the command line stuff except for setting up the cron process. I wasn't exactly sure what the "drush hosting_setup" did and wasn't sure if it needed to be run after completing the Drupal install.
Anyways, this may help some people in getting started with Aegir. Enjoy!
Comments
Nice work :) re the
Nice work :)
re the hosting-setup question, FYI you can probably automate that by passing '-y' as an argument to Drush to auto-answer the prompt. I haven't tried it though, but we implement drush_confirm() there so it should work
However: I don't really think you could automate it this far (as far as running the hosting-setup command), as you still have to proceed through the web based install profile stage to populate some nodes with info you enter into the forms in each task. The hosting-setup command should only be run after this has been done, as it fires off the dispatch command for the first time to run the first lot of tasks from the database, as well as set up the cron, and the database won't be filled with data yet.
Nonetheless: we are currently working on eliminating the install profile web-based installer, and doing it all from the install.sh script right up to the initial platform verification. So once this has been done, such a stackscript like this will be a real boon for those of us on Linodes :) Especially for me who develops Aegir on mostly Linodes! And it at least automates you up to that point, which is a great timesaver.
Thanks!
Thanks for the encouragement!
Thanks for the encouragement! I recently fixed the permissions for the aegir_root user. The GRANT was missing the WITH GRANT OPTION which made it impossible for aegir to create a new site.
I tried to add the '-y' to remove the prompt but it didn't work and it doesn't make sense to me why it would. The script that I am downloading doesn't appear to have any override for the prompt. Maybe I am missing something.
I plan to add ACL permissions to the script as well since I have been having some trouble finding a workflow that will work with multiple developers only using standard owner, group, other permissions.
ACL setup
I added a Yes/No dropdown for setting up ACL on the /var/aegir directory. All that I'm doing is remounting the /dev/xvda device to use ACL and then setting the /var/aegir directory so that the aegir group has rwx access. It requires that the root file system be on the /dev/xvda device.
Updated for alpha11
I've updated the script for alpha11 and it is now fully automated. Simply fill out the fields on the StackScript form and it will build a new Aegir server and send a one time login email to the email entered. Enjoy!
http://www.linode.com/stackscripts/view/?StackScriptID=203