puppetlabs-docker icon indicating copy to clipboard operation
puppetlabs-docker copied to clipboard

docker::plugin should implecitly require Docker class

Open hbenali opened this issue 2 years ago • 0 comments

Describe the Bug

When using docker::plugin an error is raised when provisioning a VM for the first time. this instruction is executed without checking whether the Docker class is called or not.

==> XXXX: Error: /Stage[main]/XXXXXXX/Docker::Plugin[XXXXXXXX/file-log-driver:2.0]/Exec[plugin enable XXXXXXXX/file-log-driver:2.0]: Could not evaluate: Could not find command 'docker'

Expected Behavior

docker::plugin should call Docker implicitly Docker class

Steps to Reproduce

Steps to reproduce the behavior: Include docker::plugin on a puppet class

    docker::plugin {'plugin_name':}

Environment

  • Puppet Version 7.21 (module version 6.0.2)
  • Platform Ubuntu 22.04 (5.x)

Thanks!

hbenali avatar Jan 18 '23 09:01 hbenali