Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

by mhearse (Chaplain)
on Jan 21, 2013 at 18:37 UTC ( #1014507=note: print w/replies, xml ) Need Help??


in reply to Re^2: Ensuring cpan modules installed on all computers in a network are consistent
in thread Ensuring cpan modules installed on all computers in a network are consistent

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
  • Comment on Re^3: Ensuring cpan modules installed on all computers in a network are consistent
  • Download Code

Replies are listed 'Best First'.
Re^4: Ensuring cpan modules installed on all computers in a network are consistent
by blue_cowdawg (Monsignor) on Jan 21, 2013 at 20:02 UTC
        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
Re^4: Ensuring cpan modules installed on all computers in a network are consistent
by mhearse (Chaplain) on Jan 23, 2013 at 19:46 UTC
    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://1014507]
help
Chatterbox?
[choroba]: No, if there are no threads, then the user wants to use MCE. If there are threads, the user can choose.
[1nickt]: choroba Understood. I'm wondering about the logic in a cpanfile. If the perl doesn't support threads, it's easy: require MCE. If the perl does support threads, as you say the user has a choice, so require both? Or, assume that irrespective of the choide
[1nickt]: ... choice, the threaded-perl user *probably* wants to use threads, therefore only require threads and leave MCE out, allowing the user to manually install if desired?
[choroba]: just require any of MCE and threads. Not sure if that's possible in the cpanfile, but should be possible early in the Makefile
[1nickt]: The app expects threads as default anyway, right?
[choroba]: that's true
[1nickt]: expects threads *to be* the default
[1nickt]: I think cpanfile can handle the logic. testing now.

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (12)
As of 2017-10-18 13:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (244 votes). Check out past polls.

    Notices?