mirror of
https://github.com/krislamo/puppet-fluentd
synced 2024-11-14 14:00:36 +00:00
Add path to exec to avoid error
Error received before: Error: Failed to apply catalog: Parameter onlyif failed on Exec[remove old GPG key]: 'rpm -qi gpg-pubkey-a12e206f-*' is not qualified and no path was specified. Please qualify the command or specify a path. at /etc/puppetlabs/code/environments/acceptance/modules/fluentd/manifests/repo/yum.pp:27
This commit is contained in:
parent
49848b2afd
commit
e5650f47d1
@ -26,6 +26,7 @@ class fluentd::repo::yum (
|
|||||||
|
|
||||||
exec { 'remove old GPG key':
|
exec { 'remove old GPG key':
|
||||||
command => 'rpm -e --allmatches gpg-pubkey-a12e206f-*',
|
command => 'rpm -e --allmatches gpg-pubkey-a12e206f-*',
|
||||||
|
path => '/bin:/usr/bin/',
|
||||||
onlyif => 'rpm -qi gpg-pubkey-a12e206f-*',
|
onlyif => 'rpm -qi gpg-pubkey-a12e206f-*',
|
||||||
notify => Exec['add GPG key'],
|
notify => Exec['add GPG key'],
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user