Ask Your Question

How to install GSU on cluster using puppet?

asked 2014-09-30 06:31:47 -0600

updated 2014-09-30 07:34:52 -0600

llowder gravatar image

In my organization having one cluster(7 nodes) one node n001 having puppet master.

My problem is how to install GSU(Google storage utility) package on all node using puppet ? i cloned httpdstandalone ('/etc/puppet/manifests/prod/modules/httpdstandalone`) and modified the init.pp like below

class gsutility_standalone {
  case $operatingsystem {
      CentOS: {
"python-setuptools-0.6.10-3.el6.noarch ensure":  => installed;
"gcc-4.4.7-4.el6.x86_64":  => installed;
"python-devel-2.6.6-52.el6.x86_64":  => installed;
"openssl-devel-1.0.1e-16.el6_5.15.x86_64":  => installed;
"libffi-devel-3.0.5-3.2.el6.x86_64":  => installed;
"python-pip":  => installed;

Then the packages are added to repository(mapr_gen ) ? if necessary add the package ,how to add package ?

please suggest me..!



edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-09-30 07:47:10 -0600

llowder gravatar image

Rather than building it on the node, you should build it once, then package it using a tool like fpm and then use a package resource to install it from a local repo.

However, if you want to build it, try changing your package resource to look like:

package {
    ensure  => '0.6.10-3.el6.noarch';
    ensure  => '4.4.7-4.el6.x86_64';
    ensure  => '2.6.6-52.el6.x86_64';
    ensure  => '1.0.1e-16.el6_5.15.x86_64';
    ensure  => '3.0.5-3.2.el6.x86_64';
    ensure  => installed;

If you don't care about the specific versions, then use ensure => installed instead of ensure => <version>.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2014-09-30 06:31:47 -0600

Seen: 123 times

Last updated: Sep 30 '14