aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2018-06-03 22:06:15 +0100
committerChristopher Baines <mail@cbaines.net>2018-06-03 22:06:15 +0100
commitf17724f4eb4f936619edf03894cbcffa7a03c31d (patch)
tree7d17456da1130b62c66fead8967e0ebb034193a5 /app
parentd0332d05222169ffdbdb65d6d4e79b45a2bf789e (diff)
downloadgovuk-mini-environment-admin-f17724f4eb4f936619edf03894cbcffa7a03c31d.tar
govuk-mini-environment-admin-f17724f4eb4f936619edf03894cbcffa7a03c31d.tar.gz
Share /var/cache and /var/lib with the host
In the AWS backend. This means that they don't end up on a tmpfs and using up RAM.
Diffstat (limited to 'app')
-rw-r--r--app/models/backends/terraform_aws.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/models/backends/terraform_aws.rb b/app/models/backends/terraform_aws.rb
index 299b5b5..f538cbf 100644
--- a/app/models/backends/terraform_aws.rb
+++ b/app/models/backends/terraform_aws.rb
@@ -65,7 +65,11 @@ class Backends::TerraformAws < ApplicationRecord
signon_instance_name: slug,
admin_environment_label: mini_environment.name,
use_error_pages: 'true',
- origin_basic_auth: "#{slug}=#{slug}"
+ origin_basic_auth: "#{slug}=#{slug}",
+ share: [
+ '/var/cache/govuk-mini-environment-admin=/var/cache',
+ '/var/lib/govuk-mini-environment-admin=/var/lib'
+ ]
},
run_remotely_on_host: "ubuntu@guix-daemon.#{domain}"
)