Ottomata has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/337877 )
Change subject: Configure analytics cluster nodes to use thirdparty/cloudera
apt component
......................................................................
Configure analytics cluster nodes to use thirdparty/cloudera apt component
Bug: T155726
Change-Id: I140fbde9b0cada160ddb3440c2bdc92ae825a4f8
---
A modules/role/manifests/analytics_cluster/apt.pp
M modules/role/manifests/analytics_cluster/hadoop/client.pp
2 files changed, 14 insertions(+), 0 deletions(-)
Approvals:
Ottomata: Looks good to me, approved
jenkins-bot: Verified
diff --git a/modules/role/manifests/analytics_cluster/apt.pp
b/modules/role/manifests/analytics_cluster/apt.pp
new file mode 100644
index 0000000..514189f
--- /dev/null
+++ b/modules/role/manifests/analytics_cluster/apt.pp
@@ -0,0 +1,9 @@
+# == Class role::analytics_cluster::apt
+#
+class role::analytics_cluster::apt {
+ apt::repository { 'thirdparty-cloudera':
+ uri => 'http://apt.wikimedia.org/wikimedia',
+ dist => "${::lsbdistcodename}-wikimedia",
+ components => 'thirdparty/cloudera',
+ }
+}
diff --git a/modules/role/manifests/analytics_cluster/hadoop/client.pp
b/modules/role/manifests/analytics_cluster/hadoop/client.pp
index c549c53..dce0b35 100644
--- a/modules/role/manifests/analytics_cluster/hadoop/client.pp
+++ b/modules/role/manifests/analytics_cluster/hadoop/client.pp
@@ -3,6 +3,11 @@
#
# filtertags: labs-project-analytics
class role::analytics_cluster::hadoop::client {
+ # Include Wikimedia's thirdparty/cloudera apt component
+ # as an apt source on all Hadoop hosts. This is needed
+ # to install CDH packages from our apt repo mirror.
+ require ::role::analytics_cluster::apt
+
# Need Java before Hadoop is installed.
require ::role::analytics_cluster::java
--
To view, visit https://gerrit.wikimedia.org/r/337877
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I140fbde9b0cada160ddb3440c2bdc92ae825a4f8
Gerrit-PatchSet: 3
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Ottomata <[email protected]>
Gerrit-Reviewer: Giuseppe Lavagetto <[email protected]>
Gerrit-Reviewer: Muehlenhoff <[email protected]>
Gerrit-Reviewer: Ottomata <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits