Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Ensuring cpan modules installed on all computers in a network are consistent

by mhearse (Hermit)
on Jan 20, 2013 at 17:49 UTC ( #1014310=note: print w/ replies, xml ) Need Help??


in reply to Ensuring cpan modules installed on all computers in a network are consistent

The way I've done it is using software package management. This includes Redhat based (rpms), Debian (dpkg) or BSD (pkgng or ports). Creating packages is a bit of a pain. But a definitive way to ensure uniform machines.


Comment on Re: Ensuring cpan modules installed on all computers in a network are consistent
Re^2: Ensuring cpan modules installed on all computers in a network are consistent
by moadeep (Novice) on Jan 20, 2013 at 18:32 UTC
    Would this be a case of running a root script which secure shells to each computer on the network and yum install or apt-get install the required library. I assume this would save the downloaded package in /usr/lib and the perl module would then be available for all users on that computer?
      You could do that. The way I've done is via puppet and cfengine. Also via func and ansible. Ducks for mentioning python apps on a perl pub These methods require some work to get setup. SSL or SSH if you're the paranoid type (want to sleep soundly through the night).

      Create your rpm and then deploy it:

      for i in $(cat serverlist) do ssh "$i" "sudo yum -y install your.rpm" done
            The way I've done is via puppet and cfengine.

        puppet... yay! cfengine... boo! :-D


        Peter L. Berghold -- Unix Professional
        Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg
        Assuming your using CentOS. Lets also assume a perl module rpm isn't available through the main or extras yum repo. BE VARY CAREFUL ABOUT DOWNLOADING RPMS FROM THE OPEN INTERNET. As you really can't trust what's in them. When in doubt, build your own rpm.

        It would be akin to downloading a exe from gnutella. Which is most surely a trojan.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1014310]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (14)
As of 2014-12-26 13:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (171 votes), past polls