Moar priority for Cloudera in Metacentrum.
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Tue, 23 Dec 2014 14:58:35 +0000 (15:58 +0100)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Tue, 23 Dec 2014 14:58:35 +0000 (15:58 +0100)
files/10_cloudera.pref [new file with mode: 0644]
manifests/cloudera.pp

diff --git a/files/10_cloudera.pref b/files/10_cloudera.pref
new file mode 100644 (file)
index 0000000..da81dcd
--- /dev/null
@@ -0,0 +1,3 @@
+Package: *
+Pin: release o=Cloudera
+Pin-Priority: 900
index 57112c2..8ac32f7 100644 (file)
@@ -18,5 +18,9 @@ class site_hadoop::cloudera {
       refreshonly => true,
       path        => $site_hadoop::path,
     }
+
+    file {'/etc/apt/preferences.d/10_cloudera.pref':
+      source => 'puppet:///modules/site_hadoop/10_cloudera.pref',
+    }
   }
 }