Hi Rob,
That worked perfectly
thanks!!
On Monday, June 6, 2016 at 3:28:24 PM UTC+1, Rob Nelson wrote:
>
> Literal works when there is only one literal percent sign; last I checked,
> you cannot use it twice in the same value. You can use "%%{::}{::hostname}"
> to return "%{::hostname}" - the
Literal works when there is only one literal percent sign; last I checked,
you cannot use it twice in the same value. You can use "%%{::}{::hostname}"
to return "%{::hostname}" - the middle "%{::}" returns nothing and splits
the first percent from the variable name at the end, preventing
I ran into this too, use the literal function.
$ grep -rh literal hieradata/
testing::cwood1::param3: "%{literal('%')}{::hostname}"
testing::cwood1::param3: "%{literal('%')}{::hostname}"
https://docs.puppet.com/hiera/3.1/variables.html#the-literal-lookup-function
On Mon, Jun 06, 2016 at
Hi all
does anyone know how i can escape %{ in hiera without it trying to convert
to variable?
i want to add the following to configure a syslog filter for logstash
match => { "message" =>
"<%{POSINT:syslog_pri}>%{SYSLOGTIMESTAMP:syslog_timestamp}
%{SYSLOGHOST:syslog_hostname}