aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2018-05-28 20:37:43 +0100
committerChristopher Baines <mail@cbaines.net>2018-05-30 20:17:50 +0100
commitf5f7adc1d517dba42e2e73a23511d35422ce9d31 (patch)
treec7626f80d452c1a80c3e60a6e5a8ea24daac74f9
parentde6535e52fb0eb92689d19e4025997bf090ebc75 (diff)
downloadgovuk-mini-environment-admin-f5f7adc1d517dba42e2e73a23511d35422ce9d31.tar
govuk-mini-environment-admin-f5f7adc1d517dba42e2e73a23511d35422ce9d31.tar.gz
Use the services specified when building mini environments
-rw-r--r--app/models/backends/terraform_aws.rb2
-rw-r--r--app/models/backends/terraform_libvirt.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/models/backends/terraform_aws.rb b/app/models/backends/terraform_aws.rb
index 72d421e..f229c72 100644
--- a/app/models/backends/terraform_aws.rb
+++ b/app/models/backends/terraform_aws.rb
@@ -55,7 +55,7 @@ class Backends::TerraformAws < ApplicationRecord
GovukGuix::BuildJob.enqueue(
mini_environment.id,
- services: %w(whitehall government-frontend),
+ services: mini_environment.services.map(&:build_argument_string),
arguments: {
type: 'container-start-script',
app_domain: "#{slug}.#{domain}",
diff --git a/app/models/backends/terraform_libvirt.rb b/app/models/backends/terraform_libvirt.rb
index de29bed..86dd089 100644
--- a/app/models/backends/terraform_libvirt.rb
+++ b/app/models/backends/terraform_libvirt.rb
@@ -50,7 +50,7 @@ class Backends::TerraformLibvirt < ApplicationRecord
GovukGuix::BuildJob.enqueue(
mini_environment.id,
- services: %w(whitehall government-frontend),
+ services: mini_environment.services.map(&:build_argument_string),
arguments: {
type: 'vm-image-and-system',
app_domain: "#{slug}.#{domain}",