Ask Your Question
0

How to install GSU on cluster using puppet?

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

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

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: {
          package{
"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..!

Thanks,

Prasad

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

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

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 {
  'python-setuptools':
    ensure  => '0.6.10-3.el6.noarch';
  'gcc':
    ensure  => '4.4.7-4.el6.x86_64';
  'python-devel':
    ensure  => '2.6.6-52.el6.x86_64';
  'openssl-devel':
    ensure  => '1.0.1e-16.el6_5.15.x86_64';
  'libffi-devel':
    ensure  => '3.0.5-3.2.el6.x86_64';
  'python-pip':
    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

Stats

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

Seen: 109 times

Last updated: Sep 30 '14