aboutsummaryrefslogtreecommitdiff
path: root/app/models/backends
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2018-06-01 20:45:27 +0100
committerChristopher Baines <mail@cbaines.net>2018-06-01 20:46:04 +0100
commitf74331a8e6d5b0ae9c2c73a36ba19730752269aa (patch)
treeb02b5750240915bc11b8340cd254db68c6341969 /app/models/backends
parent7829d53c854e2ba6eb574d6f994204fb0b4bb869 (diff)
downloadgovuk-mini-environment-admin-f74331a8e6d5b0ae9c2c73a36ba19730752269aa.tar
govuk-mini-environment-admin-f74331a8e6d5b0ae9c2c73a36ba19730752269aa.tar.gz
Pass the data-snapshot to govuk-system in the build job
For the Terraform libvirt backend.
Diffstat (limited to 'app/models/backends')
-rw-r--r--app/models/backends/terraform_libvirt.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/models/backends/terraform_libvirt.rb b/app/models/backends/terraform_libvirt.rb
index 4a37a3b..a6cde5e 100644
--- a/app/models/backends/terraform_libvirt.rb
+++ b/app/models/backends/terraform_libvirt.rb
@@ -63,8 +63,9 @@ class Backends::TerraformLibvirt < ApplicationRecord
admin_environment_label: mini_environment.name,
signon_instance_name: slug,
use_error_pages: 'true',
- origin_basic_auth: "#{slug}=#{slug}"
- }
+ origin_basic_auth: "#{slug}=#{slug}",
+ data_snapshot: mini_environment.data_snapshot.try(:store_path)
+ }.compact
)
end