aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/backends
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2018-04-07 15:45:00 +0100
committerChristopher Baines <mail@cbaines.net>2018-04-12 19:05:31 +0100
commitcefa86029c9d4fc4cffaa05d33da9c978dbb1c16 (patch)
tree32287e4378e255c0937f89177ff5a133e057e029 /app/controllers/backends
parent6670c74eae0cae82319365ee53c8ba01db16b758 (diff)
downloadgovuk-mini-environment-admin-cefa86029c9d4fc4cffaa05d33da9c978dbb1c16.tar
govuk-mini-environment-admin-cefa86029c9d4fc4cffaa05d33da9c978dbb1c16.tar.gz
Improve the support for Libvirt
Separate out the backend things, like the virtual network, from the mini environment. This makes it easier to have resources shared between mini environments. Also handle the deployment of this new backend related Terraform configuration.
Diffstat (limited to 'app/controllers/backends')
-rw-r--r--app/controllers/backends/terraform_libvirt_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/backends/terraform_libvirt_controller.rb b/app/controllers/backends/terraform_libvirt_controller.rb
index 34081ad..bbc5e08 100644
--- a/app/controllers/backends/terraform_libvirt_controller.rb
+++ b/app/controllers/backends/terraform_libvirt_controller.rb
@@ -26,6 +26,7 @@ class Backends::TerraformLibvirtController < ApplicationController
def create
backend = Backends::TerraformLibvirt.create(create_params)
+ Backends::DeployTerraformLibvirtJob.enqueue(backend.id)
flash[:success] = "Backend #{backend.label} created"