Skip to content

Commit

Permalink
Ensure parent scope not limited to docker::params
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanlcarlson committed Apr 22, 2024
1 parent 4d259f8 commit f793726
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions manifests/compose.pp
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,15 @@
#
class docker::compose (
Enum[present,absent] $ensure = present,
Optional[String] $version = $docker::params::compose_version,
) inherits docker::params {
Optional[String] $version = undef,
) {
if $docker::manage_package {
if $version and $ensure != 'absent' {
$package_ensure = $version
$_version = $version ? {
undef => $docker::params::compose_version,
default => $version,
}
if $_version and $ensure != 'absent' {
$package_ensure = $_version
} else {
$package_ensure = $ensure
}
Expand Down

0 comments on commit f793726

Please sign in to comment.