language-puppet
language-puppet copied to clipboard
Resource reference (in dependency statement) does not accept quoted string
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 ?
- emit a better error message ?
- accept it in permissive mode but emit a better error message in strict mode
- always accept it
I think option 2 would be the best.