Categories
Puppet

Puppet Quiz: What’s wrong here?

The error is: Dependency cycle.

The code is:

class my::own::docker {
    include ::docker
    file { '/var/lib/docker':
        ensure => directory,
        before => Class['docker'],
    }
}

Why? 🙂

It’s rather simple here, in the real class it really took me a while to find it.

Leave a Reply

Your email address will not be published. Required fields are marked *