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

Tom
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to puppet-users...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/b3ab8308-95c9-42cd-aa86-ab91146529bb%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
Email: t...@whatexit.org Work: tlimo...@StackOverflow.com
Skype: YesThatTom
Blog: http://EverythingSysadmin.com
Reply all
Reply to author
Forward
0 new messages