Hi Jacob:
There's a plugin for that! pypkginstaller
[plugin webapp-packages]
setup_class = starcluster.plugins.pypkginstaller.PyPkgInstaller
packages = flask, SQLAlchemy
If your question is more "I'm looking for tips/tricks for developing plugins", I'm the wrong guy. :)
Happy Holidays!
-Hugh
-----Original Message-----
From: starcluster-bounces_at_mit.edu [mailto:starcluster-bounces_at_mit.edu] On Behalf Of Jacob Barhak
Sent: Monday, December 23, 2013 5:37 PM
To: starcluster_at_mit.edu
Subject: [StarCluster] The simplest plugin for installing
Hello,
This is a question to the plugin experts out there.
I wish to run a pip install command on each node and master after the cluster was initialized.
I looked at plugins people write and it seems this should not be hard to do. Yet many plugins handle cases such as add node and remove node.
My question is what is the most minimal set of methods required for a simple plugin such as the one I need. Do I only need to override __init__ ? Do I need to be aware of anything else to avoid breaking something?
Also, if anyone has an easier solution for my problem of running the same shell command on all instances together after startup, then please do hint.
Note that I am aware of the option of creating an AMI yet I rather not go in that path for now. I want a softer solution that installs software on a machine after startup.
I hope this is simple and straightforward.
Jacob
Sent from my iPhone
_______________________________________________
StarCluster mailing list
StarCluster_at_mit.edu
http://mailman.mit.edu/mailman/listinfo/starcluster
Received on Tue Dec 24 2013 - 09:10:28 EST