1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-22 18:28:47 +02:00
phorge-phorge/src/applications/drydock
James Rhodes 7c3cb5948c Drydock blueprint for preallocated remote hosts
Summary:
This adds a Drydock blueprint for preallocated, remote hosts.  This will be used by the Harbormaster interface to allow users to specify remote hosts that builds can be run on.

This adds a `canAllocateResource` method to Drydock blueprints; it is used to detect whether a blueprint can allocate a resource for the given type and attributes.

Test Plan:
Ran:

```
bin/drydock lease --type host --attributes remote=true,preallocated=true,host=192.168.56.101,port=22,user=james,keyfile=,path=C:\\Build\\,platform=windows
```

and saw the "C:\Build\<id>" folder appear on the remote Windows machine.  Viewed the lease and resource in Drydock as well.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley

CC: Korvin, epriestley, aran, jamesr

Maniphest Tasks: T4111

Differential Revision: https://secure.phabricator.com/D7593
2013-11-22 14:34:10 -08:00
..
application Added beta status for applications 2013-01-19 10:31:28 -08:00
blueprint Drydock blueprint for preallocated remote hosts 2013-11-22 14:34:10 -08:00
constants Improve Drydock's ability to allocate leases correctly 2012-12-12 18:42:12 -08:00
controller PHUIPropertyListView 2013-10-11 07:53:56 -07:00
interface Drydock blueprint for preallocated remote hosts 2013-11-22 14:34:10 -08:00
management Drydock blueprint for preallocated remote hosts 2013-11-22 14:34:10 -08:00
query Make most Drydock web interfaces work with mobile 2012-12-17 14:47:21 -08:00
storage Replace all "attach first..." exceptions with assertAttached() 2013-09-03 06:02:14 -07:00
util Improve Drydock's ability to allocate leases correctly 2012-12-12 18:42:12 -08:00
worker Add PhabricatorWorker->log() 2013-06-25 16:31:37 -07:00