Skip to content

Commit

Permalink
Set tags on packages for fancy dependency chaining.
Browse files Browse the repository at this point in the history
  • Loading branch information
razorsedge committed Jan 18, 2014
1 parent fd8fddf commit ce770f4
Show file tree
Hide file tree
Showing 26 changed files with 43 additions and 2 deletions.
3 changes: 3 additions & 0 deletions manifests/cdh/bigtop.pp
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,16 @@
class cloudera::cdh::bigtop {
package { 'bigtop-jsvc':
ensure => 'present',
tag => 'cloudera-cdh4',
}

package { 'bigtop-tomcat':
ensure => 'present',
tag => 'cloudera-cdh4',
}

package { 'bigtop-utils':
ensure => 'present',
tag => 'cloudera-cdh4',
}
}
1 change: 1 addition & 0 deletions manifests/cdh/flume.pp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
class cloudera::cdh::flume {
package { 'flume-ng':
ensure => 'present',
tag => 'cloudera-cdh4',
}

service { 'flume-ng':
Expand Down
6 changes: 6 additions & 0 deletions manifests/cdh/hadoop.pp
Original file line number Diff line number Diff line change
Expand Up @@ -26,26 +26,32 @@

package { 'hadoop':
ensure => 'present',
tag => 'cloudera-cdh4',
}

package { 'hadoop-hdfs':
ensure => 'present',
tag => 'cloudera-cdh4',
}

package { 'hadoop-httpfs':
ensure => 'present',
tag => 'cloudera-cdh4',
}

package { 'hadoop-mapreduce':
ensure => 'present',
tag => 'cloudera-cdh4',
}

package { 'hadoop-yarn':
ensure => 'present',
tag => 'cloudera-cdh4',
}

package { 'hadoop-0.20-mapreduce':
ensure => 'present',
tag => 'cloudera-cdh4',
}

service { 'hadoop-httpfs':
Expand Down
1 change: 1 addition & 0 deletions manifests/cdh/hadoop/client.pp
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@
class cloudera::cdh::hadoop::client {
package { 'hadoop-client':
ensure => 'present',
tag => 'cloudera-cdh4',
}
}
1 change: 1 addition & 0 deletions manifests/cdh/hadoop/fuse.pp
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@
class cloudera::cdh::hadoop::fuse {
package { 'hadoop-hdfs-fuse':
ensure => 'present',
tag => 'cloudera-cdh4',
}
}
1 change: 1 addition & 0 deletions manifests/cdh/hbase.pp
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@
class cloudera::cdh::hbase {
package { 'hbase':
ensure => 'present',
tag => 'cloudera-cdh4',
}
}
1 change: 1 addition & 0 deletions manifests/cdh/hive.pp
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@
class cloudera::cdh::hive {
package { 'hive':
ensure => 'present',
tag => 'cloudera-cdh4',
}
}
1 change: 1 addition & 0 deletions manifests/cdh/hive/metastore.pp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
class cloudera::cdh::hive::metastore {
package { 'hive-metastore':
ensure => present,
tag => 'cloudera-cdh4',
}

service { 'hive-metastore':
Expand Down
1 change: 1 addition & 0 deletions manifests/cdh/hive/server.pp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
class cloudera::cdh::hive::server {
package { 'hive-server':
ensure => present,
tag => 'cloudera-cdh4',
}

service { 'hive-server':
Expand Down
1 change: 1 addition & 0 deletions manifests/cdh/hive/server2.pp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
class cloudera::cdh::hive::server2 {
package { 'hive-server2':
ensure => present,
tag => 'cloudera-cdh4',
}

service { 'hive-server2':
Expand Down
1 change: 1 addition & 0 deletions manifests/cdh/hue.pp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
class cloudera::cdh::hue {
package { 'hue':
ensure => 'present',
tag => 'cloudera-cdh4',
}

service { 'hue':
Expand Down
2 changes: 2 additions & 0 deletions manifests/cdh/hue/plugins.pp
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@
class cloudera::cdh::hue::plugins {
package { 'hue-plugins':
ensure => 'present',
tag => 'cloudera-cdh4',
}

# CDH 4.1.1 had the required file in hue-plugins. In CDH 4.1.2 said file
# becomes a symlink to a file in hue-common.
package { 'hue-common':
ensure => 'present',
tag => 'cloudera-cdh4',
}
}
2 changes: 2 additions & 0 deletions manifests/cdh/impala.pp
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@
class cloudera::cdh::impala {
package { 'impala':
ensure => 'present',
tag => 'cloudera-impala',
}

package { 'impala-shell':
ensure => 'present',
tag => 'cloudera-impala',
}
}
1 change: 1 addition & 0 deletions manifests/cdh/mahout.pp
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@
class cloudera::cdh::mahout {
package { 'mahout':
ensure => present,
tag => 'cloudera-cdh4',
}
}
1 change: 1 addition & 0 deletions manifests/cdh/oozie.pp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

package { 'oozie':
ensure => 'present',
tag => 'cloudera-cdh4',
}

service { 'oozie':
Expand Down
1 change: 1 addition & 0 deletions manifests/cdh/oozie/client.pp
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@
class cloudera::cdh::oozie::client {
package { 'oozie-client':
ensure => 'present',
tag => 'cloudera-cdh4',
}
}
1 change: 1 addition & 0 deletions manifests/cdh/pig.pp
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@
class cloudera::cdh::pig {
package { 'pig':
ensure => 'present',
tag => 'cloudera-cdh4',
}
}
1 change: 1 addition & 0 deletions manifests/cdh/sqoop/client.pp
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@
class cloudera::cdh::sqoop::client {
package { 'sqoop':
ensure => present,
tag => 'cloudera-cdh4',
}
}
1 change: 1 addition & 0 deletions manifests/cdh/sqoop/metastore.pp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
class cloudera::cdh::sqoop::metastore {
package { 'sqoop-metastore':
ensure => present,
tag => 'cloudera-cdh4',
}

service { 'sqoop-metastore':
Expand Down
1 change: 1 addition & 0 deletions manifests/cdh/whirr.pp
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@
class cloudera::cdh::whirr {
package { 'whirr':
ensure => present,
tag => 'cloudera-cdh4',
}
}
1 change: 1 addition & 0 deletions manifests/cdh/zookeeper.pp
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@
class cloudera::cdh::zookeeper {
package { 'zookeeper':
ensure => 'present',
tag => 'cloudera-cdh4',
}
}
2 changes: 2 additions & 0 deletions manifests/cm.pp
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,12 @@

package { 'cloudera-manager-agent':
ensure => $package_ensure,
tag => 'cloudera-manager',
}

package { 'cloudera-manager-daemons':
ensure => $package_ensure,
tag => 'cloudera-manager',
}

file { 'scm-config.ini':
Expand Down
2 changes: 2 additions & 0 deletions manifests/cm/repo.pp
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@
group => 'root',
mode => '0644',
}

Yumrepo['cloudera-manager'] -> Package<|tag == 'cloudera-manager'|>
}
default: { }
}
Expand Down
7 changes: 5 additions & 2 deletions manifests/cm/server.pp
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,13 @@
}

package { 'cloudera-manager-server':
ensure => $package_ensure,
ensure => $package_ensure,
tag => 'cloudera-manager',
}

# package { 'cloudera-manager-daemons':
# ensure => $package_ensure,
# tag => 'cloudera-manager',
# }

file { '/etc/cloudera-scm-server/db.properties':
Expand All @@ -194,7 +196,8 @@
case $db_type {
'embedded': {
package { 'cloudera-manager-server-db':
ensure => $package_ensure,
ensure => $package_ensure,
tag => 'cloudera-manager',
}

exec { 'cloudera-manager-server-db':
Expand Down
1 change: 1 addition & 0 deletions manifests/java.pp
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@

package { 'jdk':
ensure => $package_ensure,
tag => 'cloudera-manager',
}

file { 'java-profile.d':
Expand Down
3 changes: 3 additions & 0 deletions manifests/repo.pp
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@
group => 'root',
mode => '0644',
}

Yumrepo['cloudera-cdh4'] -> Package<|tag == 'cloudera-cdh4'|>
Yumrepo['cloudera-impala'] -> Package<|tag == 'cloudera-impala'|>
}
default: { }
}
Expand Down

0 comments on commit ce770f4

Please sign in to comment.