Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

I get a lot of: "failed: You cannot specify more than one of content, source, target at.."

$
0
0
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...

Viewing all articles
Browse latest Browse all 6104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>