file_line - 400 on SERVER: Invalid parameter match on File_line[lsinitgroup]
110 views
Skip to first unread message
Justin Rovang
unread,
Apr 12, 2015, 9:36:39 PM4/12/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to puppet...@googlegroups.com
I've loosened my 'match' to something as simple as 'cheeseburger' to see if it works, same error, I've tried moving match above 'line' too, and have confirmed the file_line type exists (the error would be different in that case anyway)
file_line { 'lsinitgroup':
ensure => present,
path => '/etc/init.d/logstash',
line => 'LS_GROUP=adm',
match => 'LS_GROUP=logstash'
}
Error:
Could not retrieve catalog from remote server: Error 400 on SERVER: Invalid parameter match on File_line[lsinitgroup] at /etc/puppet/modules/logging/manifests/logstash.pp:56 on node FOO.BAR
What am I doing wrong?
Tom Limoncelli
unread,
Apr 13, 2015, 7:50:02 AM4/13/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to puppet...@googlegroups.com
Private to you...
I don't know why that wouldn't work. However, you might want to
instead put "LS_GROUP=logstash" in the defaults file for that service.
RedHat: /etc/sysconfig/elasticsearch
Debian: /etc/default/elasticsearch
If you look, the init.d file sources that file early enough that the
variable it set for the rest of the script.