As per the custom installation options, I should be able to do the following:

  • sudo apt install debconf-utils
  • echo "aegir3-hostmaster aegir/working-copy boolean true" | sudo debconf-set-selections
  • echo "aegir3-provision aegir/working-copy boolean true" | sudo debconf-set-selections
  • sudo apt install aegir3

...and end up with Git repositories for both

  • /var/aegir/hostmaster-7.x-X.Y
  • /usr/share/drush/commands/provision

However, this isn't happening. Is the documentation wrong, or did this stop working?

Comments

colan created an issue. See original summary.

colan’s picture

I discussed this with ergonlogic. Looks like there's no way to get a git clone for Provision.

I tried the following as per his recommendations, requiring the makefile:

  1. sudo apt install debconf-utils
  2. mkdir -p ~/projects/aegir/core
  3. git clone https://git.drupal.org/project/hostmaster.git
  4. echo "aegir3-hostmaster aegir/makefile string /home/$USER/projects/aegir/core/hostmaster/hostmaster.make" | sudo debconf-set-selections
  5. echo "aegir3-hostmaster aegir/working-copy boolean true" | sudo debconf-set-selections

This leads to the following, breaking the installation:

Do you really want to proceed with the install (y/n): y
 [success] 'drush' cache was cleared.
Enabling hosting-queued daemon
 [error]  Could not find the alias @hostmaster 
dpkg: error processing package aegir3-hostmaster (--configure):
 subprocess installed post-installation script returned error exit status 1

This makefile appears to break things.

colan’s picture

13:14 < ergonlog1c> try passing the aegir.dev makefile in provision
13:15 < ergonlog1c> http://cgit.drupalcode.org/provision/plain/aegir-dev.make

colan’s picture

Title: Working copies not checked out when specified » Allow deployment of Git working copy for Provision development
Category: Bug report » Feature request

So the following, as suggested above, seemed to work, but as expected, only for the front-end:

  1. sudo apt install debconf-utils
  2. mkdir -p ~/projects/aegir/core
  3. git clone https://git.drupal.org/project/hostmaster.git ~/projects/aegir/core/hostmaster
  4. git clone https://git.drupal.org/project/provision.git ~/projects/aegir/core/provision
  5. echo "aegir3-hostmaster aegir/makefile string /home/$USER/projects/aegir/core/provision/aegir-dev.make" | sudo debconf-set-selections
  6. echo "aegir3-hostmaster aegir/working-copy boolean true" | sudo debconf-set-selections
  7. sudo apt install aegir3

Would it be possible to enable a similar set-up for the back-end so that Provision can also be deployed as a Git clone in /usr/share/drush/commands/provision?

I updated the documentation to reflect all of this.