Commit graph

417 commits

Author SHA1 Message Date
Scott Schneider
f9f3ae26ba Allow per-pool override for clone_target 2014-08-27 16:45:29 -07:00
Scott Schneider
5078f8f1a0 Increase sleep time = decrease CPU usage 2014-08-26 18:09:55 -07:00
Scott Schneider
c41d8dc3e2 Correctly log a VM's lifetime 2014-08-22 13:35:18 -07:00
Scott Schneider
b836ceea90 Custom-set VM lifetimes override system-wide 2014-08-22 11:04:38 -07:00
Scott Schneider
3dbbb39a3b Allow a PUT to modify running VMs 2014-08-22 11:03:55 -07:00
Scott Schneider
76ef04c100 Fixing typo 2014-07-28 10:55:42 -07:00
Scott Schneider
e8125e7702 Allow a 'clone_target' configuration setting
If set, this setting will enable "fake DRS", cloning VMs onto the host
in the specified cluster containing the least amount of VMs.
2014-07-28 10:51:45 -07:00
Scott Schneider
4f3c5323d8 Don't use VMware resource pools for organization
This commit removes support for VMware 'resource pool' functionality
entirely, as VMware installations without the DRS feature enabled are
unable to configure or use resource pools.

Also, resource pools should have never been used for organization;
that's what folders are for.
2014-07-21 13:49:57 -07:00
Colin
5df75c8bf7 Merge pull request #18 from sschneid/move_stats_to_header
Tweaks to views and CSS to move statistics to header
2014-07-21 11:36:58 -07:00
Scott Schneider
29715a3d7e Revive the per-pool 'ok' JSON response until beaker can be patched 2014-07-21 10:54:48 -07:00
Scott Schneider
cd9d7d984f Alignment/spacing tweaks 2014-07-21 10:46:42 -07:00
Scott Schneider
1839ff467a Tweaks to views and CSS to move statistics to header 2014-07-16 11:59:57 -07:00
Scott Schneider
d6b6f83fc7 Support batch (multiple VM) requests
This PR allows a single API request to return multiple VM objects.  It
supports the following formats:

- POST <json> /vm/
  eg. 'curl -d '{"debian-7-i386":"3","debian-7-x86_64":"1"}' --url vmpooler/vm

- POST /vm/<pool>+<pool>+<pool>...
  eg. 'curl -d --url vmpooler/vm/debian-7-i386+debian-7-i386+debian-7-i386+debian-7-x86_64

Both commands listed above will return a JSON hash of 3 debian-7-i386 VMs and
1 debian-7-x86_64 VM:

  {
    "ok": true,
    "debian-7-i386": {
      "hostname": [
        "v49pwwk5yzg6oad",
        "ylghlgote5uso54",
        "wt0c4xovvulo7ge"
      ]
    },
    "debian-7-x86_64": {
      "hostname": "v3dkrulttp360fm"
    }
  }
2014-06-09 15:15:05 -07:00
Scott Schneider
4b3b05ee37 Add textured backgrounds to SVG area pathes 2014-03-11 12:49:42 -07:00
Scott Schneider
3af680f860 Allow a configurable Graphite namespace (prefix) 2014-03-06 10:53:27 -08:00
Scott Schneider
60eead6455 Centralize external Gem loading 2014-03-05 13:19:43 -08:00
Scott Schneider
60cc1ef178 Reworked into a single namespaced Ruby application 2014-03-05 12:57:25 -08:00