Ask Your Question

function file_line of stdlib

asked 2014-09-09 02:18:12 -0600

dmo54 gravatar image

updated 2014-09-10 16:42:29 -0600

ramindk gravatar image

Hi guys,

Does somebody know if there is, for function file_line, an option allowing to address multiple files ?

Meaning, instead of for instance changing/adding lines in one file, make that into multiple files; see what I mean below in the manifest :

class signature {

  file_line { 'putsignature':
    path => "/tmp/test/***.sh",
    line => "# AUTEUR : Copyright (c) 2014 XXXXXXXXXXXXX, All Rights Reserved.",

Thanks for your support

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-10-10 16:55:30 -0600

gabe_sky gravatar image

Nope. The file_line type won't take an array for 'path' or a wildcard for the filename.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2014-09-09 02:18:12 -0600

Seen: 474 times

Last updated: Oct 10 '14