Anyone had issue with scripts exected by Puppet read the contents of a file twice if reading the file in a do while loop?

asked 2017-03-04 08:55:31 -0600

I have a small script tat is executed by Puppet using the exec module. The script reads through the file, in a do while (I have also tried a for loop) but it seems to read the file contents twice?

edit retag flag offensive close merge delete


Can you show us the exec resource as well as the contents of the script? It's hard to troubleshoot without seeing those. I'm also curious if maybe there's a bette ready to do what you're doing with the exec.

natemccurdy gravatar imagenatemccurdy ( 2017-03-05 17:47:41 -0600 )edit