Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions manifests/run.pp
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,8 @@
$docker_command = $docker::params::docker_command
}

$service_name = $docker::service_name
$docker_group = $docker::docker_group
$service_name = $docker::params::service_name
$docker_group = $docker::params::docker_group
Comment on lines +267 to +268
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The docker class inherits form docker::params and allow personalization of these parameters (using the values from docker::params for default values if not provided).

In order to access $docker::* variables, including this class should be enough:

  include docker


if $restart {
assert_type(Pattern[/^(no|always|unless-stopped|on-failure)|^on-failure:[\d]+$/], $restart)
Expand Down