Update package metadata after adding Cloudera repository.
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Sat, 13 Dec 2014 16:59:15 +0000 (17:59 +0100)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Sat, 13 Dec 2014 16:59:15 +0000 (17:59 +0100)
manifests/config.pp

index 983890d..d54ff68 100644 (file)
@@ -23,5 +23,11 @@ class site_hadoop::config {
       path    => $site_hadoop::path,
       creates => '/etc/apt/sources.list.d/cloudera.list',
     }
+    ~>
+    exec { 'apt-get-update':
+      command     => 'apt-get update',
+      refreshonly => true,
+      path        => $site_hadoop::path,
+    }
   }
 }