Hi,
I am trying to register a service on a mac. I have had puppet create the plist file in /Library/LaunchDaemons.
Here is my puppet code:
file { '/Library/LaunchDaemons/com.elastic.filebeat.plist':
ensure => present,
mode => "0644",
owner => "root",
group => "wheel",
content => template("${module_name}/com.elastic.filebeat.plist.erb"),
require => [Exec["untar ${filename}"]],
}
service{ 'com.elastic.filebeat':
ensure => running,
enable => true,
path => '/Library/LaunchDaemons',
require => File['/Library/LaunchDaemons/com.elastic.filebeat.plist'],
}
Here is the plist file:
Label com.elastic.filebeat ProgramArguments /Applications/Filebeat/filebeat -c /Applications/Filebeat/filebeat.yml KeepAlive
The error is:
> Error: Unable to find launchd plist> for job: filebeat Error:> /Stage[main]/Filebeat::Service/Service[filebeat]/ensure:> change from absent to running failed:> Unable to find launchd plist for job:> filebeat
Any ideas?
Thanks,
Anthony
↧