Hi,
can I order Execs in a notify?
exec { "Request $quality certificate for $letsencryptCommonName
(SAN: ${join(sort($letsencryptDnsNames), ',')})":
path => '/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin',
onlyif => "$requestOnlyif",
command => "$requestCommand",
require => Package["${certbotPackage}"],
# notify => [ Exec['/usr/local/bin/apache.sh -c restart'],
Exec["Copy $quality public key for $letsencryptCommonName (SAN:
${join(sort($letsencryptDnsNames), ',')})"], Exec["Copy $quality
private key for $letsencryptCommonName (SAN:
${join(sort($letsencryptDnsNames), ',')})"] ],
notify => [ Exec["Copy $quality public key for
$letsencryptCommonName (SAN: ${join(sort($letsencryptDnsNames),
',')})"] -> Exec["Copy $quality private key for $letsencryptCommonName
(SAN: ${join(sort($letsencryptDnsNames), ',')})"] ->
Exec['/usr/local/bin/apache.sh -c restart'] ],
}
The second notify does not produce an error but only executes
Exec['/usr/local/bin/apache.sh -c restart'
Thank you!
--
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/xn0lwukoo2m9m7y000%40news.gmane.org.