I am trying to use the file_line resource too change two lines (which are both the same) in a file, here is my code:
file_line { "Rotate catalina.out":
path => "/opt/tomcat/bin/catalina.sh",
match => ' >> "\$CATALINA_OUT" 2>&1 "&"',
line => ' 2>&1 |/usr/bin/cronolog "$CATALINA_BASE/logs/catalina-%Y-%m-%d.out" &',
multiple => true,
append_on_no_match => false,
}
Importantly I want to use the 'append_on_no_match' parameter, otherwise on the second puppet run the line will be appended.
When running the puppet agent on a test node I am getting this error:
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: no parameter named 'append_on_no_match'
I am using stdlib 4.19.0, which I believe supports this parameter.
↧