On 22/04/14 08:20 PM, Joachim Schrod wrote:
> # Ghostscript default paper size
> file_line { 'Ghostscript A4' :
> path => '/usr/share/ghostscript/9.05/Resource/Init/gs_init.ps',
> match => '^% /DEFAULTPAPERSIZE \(a4\)',
> line => '/DEFAULTPAPERSIZE (a4) def'
> }
>
> The error message is
>
> Error: Failed to apply catalog: Validation of File_line[Ghostscript A4]
> failed: When providing a 'match' parameter, the value must be a regex that
> matches against the value of your 'line' parameter at
> /etc/puppet/modules/npc/manifests/commons.pp:30
> Wrapped exception:
> When providing a 'match' parameter, the value must be a regex that matches
> against the value of your 'line' parametermaybe by "regex" it means that you need to enclose it in / characters: http://www.ruby-doc.org/core-2.1.1/Regexp.html e.g. : match => /^% /DEFAULTPAPERSIZE \(a4\)/, I'm not sure whether you need the quotes, too.. I'd try without first.. -- Gabriel Filion
signature.asc
Description: OpenPGP digital signature
