Make sure add-apt-repository is executed before managing file resource for it
authorMichael Wieland <git@selfcoders.com>
Tue, 25 Oct 2022 14:35:20 +0000 (16:35 +0200)
committerMichael Wieland <git@selfcoders.com>
Tue, 25 Oct 2022 14:35:20 +0000 (16:35 +0200)
manifests/ppa.pp

index b68ac66910054db6b82d54e141239c69971f077f..b2f6c70005bac70b0e9b9e804f7dc47c004d2345 100644 (file)
@@ -114,7 +114,9 @@ define apt::ppa (
       }
     }
 
-    file { "${apt::sources_list_d}/${sources_list_d_filename}": }
+    file { "${apt::sources_list_d}/${sources_list_d_filename}":
+      require => Exec["add-apt-repository-${name}"],
+    }
   }
   else {
     tidy { "remove-apt-repository-script-${name}":