Skip to content
Snippets Groups Projects
Commit b69046d4 authored by drebs's avatar drebs
Browse files

Add system-wide podman registry proxy for onlyoffice role (nbits/nbits/org#8)

parent cbae61d9
No related branches found
No related tags found
1 merge request!27Add basic podman-based role for ONLYOFFICE (nbits/nbits/org#8)
Pipeline #77468 passed
......@@ -12,11 +12,33 @@ class role::onlyoffice (
Hash $instances = {},
) {
## Podman registry mirror configuration
include profile::registry_proxy
$registries_conf = '/etc/containers/registries.conf'
$mirror = {
location => '127.0.0.1:5000',
insecure => true,
}
file { $registries_conf:
ensure => file,
mode => '0644',
content => epp('profile/podman/registries.conf.epp', {
mirror => $mirror,
}),
require => Class['profile::registry_proxy'],
}
## ONLYOFFICE profile configuration
class { 'profile::onlyoffice':
instances => $instances,
require => Class['profile::registry_proxy'],
require => [
Class['profile::registry_proxy'],
File[$registries_conf],
],
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment