We currently support only clone tasks for provisioning sites so let's also support the creation of new sites given the name of an installation profile, using install tasks.

Comments

colan created an issue. See original summary.

colan’s picture

Title: Add support for site creation tasks » Add support for site install tasks
Issue summary: View changes
colan’s picture

Assigned: Unassigned » colan

Some significant refactoring is required to support more task types. I'm now working on making the module somewhat object-oriented to keep things organized, reduce confusion, and reduce future code duplication.

Once that's done, it shouldn't be too much work to add support for install tasks (and any other task types).

  • colan committed 20a50e5 on issue-2771765
    Issue #2771765 by colan: Moved site-creation prep work to objects.
    

  • colan committed ae7f3d3 on issue-2771765
    Issue #2771765 by colan: Made hosting_saas_post_hosting_verify_task()...

  • colan committed cd3a8a5 on issue-2771765
    Issue #2771765 by colan: Moved Clone-specific tasks into the Clone-task...

  • colan committed d693fbe on issue-2771765
    Issue #2771765 by colan: Implemented methods to update the site ID...

  • colan committed 8c247f0 on issue-2771765
    Issue #2771765 by colan: Allow for site installation on task creation...

  • colan committed de9f9f2 on issue-2771765
    Issue #2771765 by colan: Standardized site-creation arguments.
    
colan’s picture

  • colan committed 7662cc3 on issue-2771765
    Issue #2771765 by colan: Set the profile from SaaS settings if it wasn't...
  • colan committed f16dbe0 on issue-2771765
    Issue #2771765 by colan: Fixed some bugs on creating the site node.
    
  • colan committed f7be0cd on issue-2771765
    Issue #2771765 by colan: Run a verify task after new site creation. It...

  • colan committed 2882dcf on issue-2771765
    Issue #2771765 by colan: Removed references to now nonexistent...
  • colan committed 9d8c20d on issue-2771765
    Issue #2771765 by colan: Added config element for setting default...

  • colan committed 67d0d3a on issue-2771765
    Issue #2771765 by colan: Updated SaaS README to include info on site...
colan’s picture

This is basically done, but the Install task fails sometimes because Provision can't find an e-mail address to send the welcome message. It falls back to admin@example.com, which won't work. I'll compare the both task outputs to see what Provision's not getting.

colan’s picture

Status: Active » Fixed

I'll create a follow-up issue for that when I nail it down.

Edit: Can't seem to reproduce that above issue again. Must have been a glitch.

  • colan committed 20a50e5 on 7.x-3.x
    Issue #2771765 by colan: Moved site-creation prep work to objects.
    
  • colan committed 2882dcf on 7.x-3.x
    Issue #2771765 by colan: Removed references to now nonexistent...
  • colan committed 67d0d3a on 7.x-3.x
    Issue #2771765 by colan: Updated SaaS README to include info on site...
  • colan committed 7662cc3 on 7.x-3.x
    Issue #2771765 by colan: Set the profile from SaaS settings if it wasn't...
  • colan committed 8c247f0 on 7.x-3.x
    Issue #2771765 by colan: Allow for site installation on task creation...
  • colan committed 949038c on 7.x-3.x
    Issue #2771765 by colan: Merge branch 'issue-2771765' into 7.x-3.x
    
  • colan committed 9d8c20d on 7.x-3.x
    Issue #2771765 by colan: Added config element for setting default...
  • colan committed ae7f3d3 on 7.x-3.x
    Issue #2771765 by colan: Made hosting_saas_post_hosting_verify_task()...
  • colan committed cd3a8a5 on 7.x-3.x
    Issue #2771765 by colan: Moved Clone-specific tasks into the Clone-task...
  • colan committed d693fbe on 7.x-3.x
    Issue #2771765 by colan: Implemented methods to update the site ID...
  • colan committed de9f9f2 on 7.x-3.x
    Issue #2771765 by colan: Standardized site-creation arguments.
    
  • colan committed f16dbe0 on 7.x-3.x
    Issue #2771765 by colan: Fixed some bugs on creating the site node.
    
  • colan committed f7be0cd on 7.x-3.x
    Issue #2771765 by colan: Run a verify task after new site creation. It...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.