Commit 323b9b45 authored by mh's avatar mh
Browse files

configure volumes to be shared

parent 0a298c38
...@@ -161,6 +161,7 @@ define webhosting::common ( ...@@ -161,6 +161,7 @@ define webhosting::common (
$publis_socket_2 = Hash($route.map |$e| { [$e[1], $publish_options] }) $publis_socket_2 = Hash($route.map |$e| { [$e[1], $publish_options] })
$con_config = { 'config_directory' => $container_config_directory } + pick($vals['configuration'], {}) $con_config = { 'config_directory' => $container_config_directory } + pick($vals['configuration'], {})
$pod_system_config = { 'volumes_containers_gid_share' => true } + pick($vals['pod_system_config'], {})
if $ensure == 'present' { if $ensure == 'present' {
$auth = pick($vals['auth'],{}) $auth = pick($vals['auth'],{})
podman::container::auth { podman::container::auth {
...@@ -178,18 +179,19 @@ define webhosting::common ( ...@@ -178,18 +179,19 @@ define webhosting::common (
} }
$con_values = $vals + { $con_values = $vals + {
ensure => $ensure, ensure => $ensure,
user => $real_uid_name, user => $real_uid_name,
uid => $real_uid, uid => $real_uid,
container_name => $con_name, container_name => $con_name,
gid => $gid, gid => $gid,
homedir => $vhost_path, homedir => $vhost_path,
manage_user => false, manage_user => false,
logpath => "${vhost_path}/logs", logpath => "${vhost_path}/logs",
run_flags => $default_run_flags + $hosting_run_flags, run_flags => $default_run_flags + $hosting_run_flags,
tag => "user_${real_uid_name}", tag => "user_${real_uid_name}",
publish_socket => $publis_socket_2 + $publish_socket, publish_socket => $publis_socket_2 + $publish_socket,
configuration => $con_config, pod_system_config => $pod_system_config,
configuration => $con_config,
} }
podman::container { podman::container {
"${name}-${con_name}": "${name}-${con_name}":
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment