From: Michael Wieland Date: Tue, 25 Oct 2022 14:37:14 +0000 (+0200) Subject: Exec resource only exists on first run X-Git-Tag: v9.0.1~3^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=188da6583d84c5a0169c478325c316ea26e980fe;hp=907c6215e766e3b208c0098c47a0ffc5a8d0006a;p=puppet-modules%2Fpuppetlabs-apt.git Exec resource only exists on first run --- diff --git a/manifests/ppa.pp b/manifests/ppa.pp index b2f6c70..4e5e775 100644 --- a/manifests/ppa.pp +++ b/manifests/ppa.pp @@ -111,12 +111,11 @@ define apt::ppa ( logoutput => 'on_failure', notify => Class['apt::update'], require => $_require, + before => File["${apt::sources_list_d}/${sources_list_d_filename}"], } } - file { "${apt::sources_list_d}/${sources_list_d_filename}": - require => Exec["add-apt-repository-${name}"], - } + file { "${apt::sources_list_d}/${sources_list_d_filename}": } } else { tidy { "remove-apt-repository-script-${name}":