Browse Source

AMBARI-3083. Starting services while enabling security fails due to unzip command not being available on the host( odaichenko)

Oleksandr Diachenko 11 years ago
parent
commit
bd97893f76

+ 8 - 0
ambari-agent/src/main/puppet/modules/hdp/manifests/init.pp

@@ -118,6 +118,14 @@ class hdp(
       @hdp::lzo::package{ 32:}
       @hdp::lzo::package{ 64:}
     }
+    if ($hdp::params::security_enabled) {
+      hdp::package{ 'unzip':
+        ensure       => 'present',
+        size         => $size,
+        java_needed  => false,
+        lzo_needed   => false
+      }
+    }
   }
 
   #TODO: treat consistently 

+ 4 - 0
ambari-agent/src/main/puppet/modules/hdp/manifests/params.pp

@@ -717,6 +717,10 @@ class hdp::params()
           suse => ['apache2', 'apache2-mod_php5']
         }
       }
+    },
+    
+    unzip => {
+      'ALL' => {'ALL' => {'ALL' => 'unzip'}}
     }
 }