Interacting with Hosting Dispatch
I need to be able to interact with the backend from interfaces other than the Aegir frontend. I know how, for example, to provision sites using drush provision-xxx etc. but I need a way to automate this, and don't want to reinvent the wheel. So I would like to be able to insert tasks to hosting dispatch as if they were coming from the frontend. Does this make sense? Has anyone tried this?
Thanks, Paul
#1
Hi Paul,
Yes, you can do this by using the '
' command, e.g:
drush @hostmaster hosting-task @examplesite.com verifyThis adds the task into the queue and, I believe, executes it immediately (as opposed to waiting for cron to come around and execute the queue), but I might be wrong on that. You can of course force the queue to be run anyway.
Take a look at my article 'Manage your Aegir system from the command line' - I do exactly this sort of thing, automating it through the use of tools like Fabric (remote SSH calls via Python) and Jenkins (runs the Fabric task, either scheduled or in response to new Git commits, good notifications on failure, etc)
http://mig5.net/content/manage-your-aegir-system-command-line
Cheers
#2
Thanks for the link to your article. Great stuff. Slowly getting all this together.