Hello,
The file resource also copies the file from the client, so it should work. Of course, I do not (and/or cannot) explain why the diff fails, but by using a file resource (with a local file as a source) one simply works around this :) -----Original message----- From: Helmut Schneider <[email protected]> Sent: Sunday 1st September 2019 16:52 To: [email protected] Subject: Re: [Puppet Users] change from 'notrun' to ['0'] failed Bart-Jan Vrielink wrote: > I cannot fully understand what you are trying to do, as I do not know > what $copyPrivateCommand is, but I would advice against using an exec > for copying a file, but just use a file resource instead: $copyPrivateKeyCommand = "cp -L ${letsencryptConfPath}/live/${letsencryptCommonName}/privkey.pem $appEtcConfPath/ssl/private/${letsencryptCommonName}.letsencrypt.$letsen cryptKeySize.key" But the copy command does not fail, it is the diff the results in the error. I check if the certificate was renewed and then copy it. The certificate is on the agent system, not the master so I need to do the exec. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/xn0lyf0k2bdc0qg001%40news.gmane.org. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/zarafa.5d6be3c9.22c6.58d11cef550efd3c%40anjie.dontpanic.nl.
