Hi all,
I am trying to write a module that it depends to multiple files. now while my code is parser validated and it essentially comprises of:
class elkstack {
package { 'filebeat' :
ensure => 'installed',
source => " puppet:///modules/elkstack/filebeat-1.3.1-x86_64.rpm ",
}
service { 'filebeat' :
ensure => 'running',
enable => 'true',
require => Package['filebeat'],
}
file { '/etc/pki/tls/certs/logstash-forwarder.crt':
ensure => 'present',
content => "puppet:///modules/elkstack/logstash-forwarder.crt",
}
file { '/etc/filebeat/filebeat.yml' :
ensure => 'presnet',
content => "puppet:///modules/elkstack/filebeat.yml",
require => Package['filebeat'],
}
I am getting the subject error on the second file resource declaration that refer basically to the same dir as /modules/elkstack/files/...
I tried to search the Internet for any same case scenario but non existed. Note that I run puppet apply /modules/elkstack/example/init.pp --noop on the puppet master when getting this error...Can somebody help? as it has been bugging me for the last hour or two please...
↧