Figure out an easy way to push/pull sites to/from remote Aegir servers

Thanks a lot for this project. Did you know about the remote_import project?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ergonlogic’s picture

Thanks for the suggestion, I'm exploring this, along with a number of other contrib modules for inclusion by default in Aegir-up.

helmo’s picture

Version: » 7.x-2.0-alpha1
Status: Active » Needs review
FileSize
3.35 KB

I took a stab at this. Sort of "My first puppet" code, so this does need work.
Too bad there still is not even a dev release for remote_import.

ergonlogic’s picture

Thanks helmo, this is a great start!

I'd done some work on this for Koumbit's AegirVPS service, some of which we should be able to adapt here. The repo can be found here: https://redmine.koumbit.net/projects/aegirvps-clients/repository/revisio...

Now, there were two principal challenges there: Sharing SSH keys, so that the Aegir user can log into the remote aegir server, and a bug in the Provision bit of remote import, wherein the remote context appears to be inherited locally, which screws with aliases and such.

The latter problem was overcome by simply hardcoding the backups directory, which is where the alias lookup was failing. The former is a more general problem, and should probably be split out of a remote import implementation. However, it'll still need to be accounted for somehow.

clemens.tolboom’s picture

Status: Needs review » Needs work

The patch has tabs in it. It makes me wonder whether there's a code style for puppet formats somewhere?

- The latter lead to http://docs.puppetlabs.com/guides/style_guide.html which looks good.
- The feature request http://projects.puppetlabs.com/issues/8031 hmmm is bad
- https://github.com/cloudsmith/geppetto/ looks good(?) but is another learning curve? It's eclipse based and has a plugin. Look overwhelming cool ;)