Re: Installing a tarball using Puppet

3,922 views
Skip to first unread message

llowder

unread,
Mar 14, 2013, 5:40:20 PM3/14/13
to puppet...@googlegroups.com


On Thursday, March 14, 2013 1:20:39 PM UTC-5, ridha gadhgadhi wrote:
Hi all,

I want to install opensaf from a tar file. Below, the content of my script shell:

---------------------------------------------------------------------------
tar -xvf opensaf
cd opensaf 
./configure --disable-tipc
make
make install
----------------------------------------------------------------------------

Any help will be much appreciated !


You have 2 options. You can put what you did above in a shell script, and thenuse a file to push the tarball and the shell script, then exec to run the script.

The BETTER option is to use fom or whatever and build a package (rpm, deb, whatever) and then install that using a package resource from a local repo.
 
Regards,

--Ridha

joe

unread,
Mar 14, 2013, 6:28:49 PM3/14/13
to puppet...@googlegroups.com
What llowder said. But he meant fpm, not fom:

https://github.com/jordansissel/fpm

llowder

unread,
Mar 15, 2013, 8:38:18 AM3/15/13
to puppet...@googlegroups.com


On Thursday, March 14, 2013 5:28:49 PM UTC-5, joe wrote:
What llowder said. But he meant fpm, not fom:

https://github.com/jordansissel/fpm


Indeed, sorry about that. Too much blood in the caffeine stream as I typed.

Len Rugen

unread,
Mar 15, 2013, 1:44:14 PM3/15/13
to Puppet Users
For example:

        file {"/usr/local/src/suphp-0.7.1.tar.gz":
                owner   => "root",
                group   => "root",
                mode    => 0775,
                ensure  => present,
                source  => "puppet:///modules/lamp/suphp-0.7.1.tar.gz",
                notify  => Exec["unpack suphp"]
        }

        exec { "unpack suphp":
                command     => "tar xf /usr/local/src/suphp-0.7.1.tar.gz && chown -R root:root /usr/local/src/suphp-0.7.1*",
                cwd         => "/usr/local/src",
                refreshonly => true,
                notify      => Exec["install suphp"]
        }

        exec { "install suphp":
                cwd             => "/usr/local/src/suphp-0.7.1",
                command     => "/usr/local/src/suphp-0.7.1/configure --prefix=/usr --sysconfdir=/etc --with-apr=/usr/bin/apr-1-config && make && make install",
                logoutput   => true,
                refreshonly => true,
        }


--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To post to this group, send email to puppet...@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

ridha gadhgadhi

unread,
Mar 15, 2013, 5:49:54 PM3/15/13
to puppet...@googlegroups.com
Thank you very much to everyone. It is very useful.
Sincerely,

- Ridha


On Thursday, March 14, 2013 2:20:39 PM UTC-4, ridha gadhgadhi wrote:
Hi all,

I want to install opensaf from a tar file. Below, the content of my script shell:

---------------------------------------------------------------------------
tar -xvf opensaf
cd opensaf 
./configure --disable-tipc
make
make install
----------------------------------------------------------------------------

Any help will be much appreciated !

Regards,

--Ridha
Reply all
Reply to author
Forward
0 new messages