bartavelle / language-puppet

A library to work with Puppet manifests, test them and eventually replace everything ruby.
BSD 3-Clause "New" or "Revised" License
51 stars 8 forks source link

Resource reference (in dependency statement) does not accept quoted string #176

Open PierreR opened 8 years ago

PierreR commented 8 years ago

I have an issue with the latest version of garethr-docker on the following code.

So upon:

    file { '/etc/sysconfig/docker-storage-setup':
      content => template('docker/etc/sysconfig/docker-storage-setup.erb'),
      before  => 'Service[docker]',
    }

language-puppet would emit this error:

ERROR: (docker/registry_testing) Expected a resource reference, not: Service[docker] at # ./modules/docker/manifests/service.pp:129:12%

As a first note, the error message is not helpful ;-)

What do you think language-puppet should do in this situation ?

bartavelle commented 8 years ago

I think option 2 would be the best.