Ask Your Question

how to append the data in file through puppet script

asked 2015-03-04 07:32:43 -0500

akshay gravatar image

How to append the contents in the file like "/etc/hosts/" I want to append the data in that file. So what code i write in that script to append the code in that file?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-03-04 08:36:45 -0500

multiple ways! e.g. from cookbook:

stdlib - use file_line ( )

also multiple modules on the forge ( )

I'd probably start with the first suggestion and work your way down as your experience deepens Cheers Stuart

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: 2015-03-04 07:32:43 -0500

Seen: 2,727 times

Last updated: Mar 04 '15