Skip to content

Commit

Permalink
Encourage to use dockerhost2
Browse files Browse the repository at this point in the history
  • Loading branch information
theseal committed Nov 25, 2024
1 parent 013f7d4 commit d01e938
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion manifests/metadata/mdq_publisher.pp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@
"PUBLISHER_KEY=${publisher_key}",
]


if $docker_compose {
service { 'docker-swamid-mdq-publisher':
ensure => 'stopped',
Expand All @@ -93,6 +92,16 @@
}
}
else {
$docker_class = $::facts['dockerhost2'] ? {
yes => 'sunet::dockerhost2',
default => 'sunet::dockerhost',
}

if ($docker_class == 'sunet::dockerhost2') {
notice('Please consider changing to a native docker compose without the shim (created by docker_run) by setting "docker_compose: true"')

Check warning

Code scanning / Puppet Lint

line has more than 140 characters Warning

line has more than 140 characters
} else {
notice('Please consider changing to docker compose for this service by setting "docker_compose: true"')
}
sunet::docker_run { 'swamid-mdq-publisher':
image => 'docker.sunet.se/swamid/mdq-publisher',
imagetag => $imagetag,
Expand Down

0 comments on commit d01e938

Please sign in to comment.