Re: [Puppet Users] change from 'notrun' to ['0'] failed

2019-09-02 Thread Helmut Schneider
Bart-Jan Vrielink wrote: > file { > "${letsencryptConfPath}/live/${letsencryptCommonName}/privkey.pem": >   ensure => file,   source => > "${appEtcConfPath}/ssl/private/${letsencryptCommonName}.letsencrypt.${ > letsencryptKeySize}.key",   notify => Exec['/usr/local/bin/apache.sh > -c restart'],  

Re: [EXTERNAL] - Re: [Puppet Users] change from 'notrun' to ['0'] failed

2019-09-01 Thread Dirk Heinrichs
Am Sonntag, den 01.09.2019, 14:52 + schrieb Helmut Schneider: The certificate is on the agent system, not the master so I need to do the exec. No, you don't, as Bart-Jan already wrote. Bye... Dirk -- Dirk Heinrichs Senior Systems Engineer, Delivery Pipeline OpenText ™ Discovery | Recommin

RE: [Puppet Users] change from 'notrun' to ['0'] failed

2019-09-01 Thread Bart-Jan Vrielink
  Sent: Sunday 1st September 2019 16:52 To: puppet-users@googlegroups.com 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,

Re: [Puppet Users] change from 'notrun' to ['0'] failed

2019-09-01 Thread Helmut Schneider
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/${letsen

RE: [Puppet Users] change from 'notrun' to ['0'] failed

2019-08-31 Thread Bart-Jan Vrielink
2019 11:41 To: puppet-users@googlegroups.com Subject: [Puppet Users] change from 'notrun' to ['0'] failed Hi, I want to copy a file if a diff fails: exec { "Private key '${letsencryptConfPath}/live/${letsencryptCommonName}/privkey.pem' changed

[Puppet Users] change from 'notrun' to ['0'] failed

2019-08-30 Thread Helmut Schneider
Hi, I want to copy a file if a diff fails: exec { "Private key '${letsencryptConfPath}/live/${letsencryptCommonName}/privkey.pem' changed, updating": path=> '/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin', command => "$copyPrivateCommand", unless => "diff -q ${letsencryptCon

[Puppet Users] change from notrun to 0 failed: returned 1 instead of 0

2011-01-12 Thread Asif Iqbal
# cat iddmi.pp class iddmi { # define pkg variable $pkg = $hardwareisa ? { "sparc" => "Iddmi_SunOS_sparc.pkg", "i386" => "Iddmi_SunOS_i386.pkg", default => undef, } $ftpsystems = "ftp.example.net/download" # define path deafult fo