diff --git a/manifests/invent/receiver.pp b/manifests/invent/receiver.pp index 9d78a5034..9120f0d8b 100644 --- a/manifests/invent/receiver.pp +++ b/manifests/invent/receiver.pp @@ -5,7 +5,7 @@ String $vhost = 'invent.sunet.se' ){ $admin_password = lookup('invent_admin_password', undef, undef, undef) - $endpoints = ['hosts', 'images'] + $endpoints = ['hosts', 'images', 'network'] $nginx_dirs = [ 'acme', 'certs','conf','dhparam','html','vhost' ] $ni_host_key = lookup ('ni_host_key') $ni_host_ip = lookup ('ni_host_ip') diff --git a/templates/invent/receiver/docker-compose.yml.erb b/templates/invent/receiver/docker-compose.yml.erb index a6b35e09f..9ece9d2c6 100644 --- a/templates/invent/receiver/docker-compose.yml.erb +++ b/templates/invent/receiver/docker-compose.yml.erb @@ -55,8 +55,12 @@ services: stdin_open: true restart: always environment: + - INVENT_ADMIN_PASSWORD=<%= @admin_password %> + - INVENT_DB_DIR=/app/db + - INVENT_HOST_DIR=/app/hosts + - INVENT_IMAGE_DIR=/app/images + - INVENT_NETWORK_DIR=/app/network + - LETSENCRYPT_HOST=<%= @vhost %> - VIRTUAL_HOST=<%= @vhost %> - VIRTUAL_PATH=/ - VIRTUAL_PORT=8000 - - LETSENCRYPT_HOST=<%= @vhost %> - - INVENT_ADMIN_PASSWORD=<%= @admin_password %>