Puppet Function: complyadm::runtime::volume
- Defined in:
- functions/runtime/volume.pp
- Function type:
- Puppet Language
Overview
complyadm::runtime::volume Returns a volume definition for the given runtime. Specifically adding the :z flag for podman to allow SELinux to work properly.
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'functions/runtime/volume.pp', line 7
function complyadm::runtime::volume(
String $volume_source,
String $volume_dest,
) >> String {
$config = complyadm::config()
$volume_def = $config['runtime'] ? {
'docker' => "${volume_source}:${volume_dest}",
'podman' => "${volume_source}:${volume_dest}:z",
default => fail_plan("${runtime} is not yet implemented", 'comply/error')
}
return $volume_def
}
|