In my code, I have the following snippet:
file {
'es_conf':
ensure => directory,
path => $path_conf,
require => File['es_dir'];
'es_data':
ensure => directory,
path => $path_data,
require => File['es_dir'];
'es_logs':
ensure => directory,
path => $path_logs,
require => File['es_dir'];
'es_plugins':
ensure => directory,
path => $path_plugins,
require => File['es_dir'];
}
Each of these variables is defined elsewhere in scope.
The referenced es_dir is defined in this same class as the above snippet,
and is as follows:
file {'es_dir':
ensure => link,
path => '/opt/elasticsearch',
target => "/opt/elasticsearch-${elastic_ver}",
require => Exec['unpack_elasticsearch'],
}
When I run puppet (currently with --noop while I work out errors) it tells
me that "File paths must be fully qualified, not 'es_logs' "
Based on the documentation I have seen (from puppetlabs and 3rd party
sites) the above code should work.
What is it that I am missing?
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/puppet-users/-/0wxWdnbN4a0J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.