diff options
author | Sander Vrijders <sander.vrijders@ugent.be> | 2017-11-15 10:27:58 +0100 |
---|---|---|
committer | Sander Vrijders <sander.vrijders@ugent.be> | 2017-11-15 10:55:14 +0100 |
commit | 88e18d3e30d67681b0f6cf4a55c731255daa650b (patch) | |
tree | 08b688a40b36181533f74f80435e8318dd0ba70e /rumba/prototypes/ouroboros.py | |
parent | a10232a5bd0db41733d0d8562e2fe56008f01cec (diff) | |
download | rumba-88e18d3e30d67681b0f6cf4a55c731255daa650b.tar.gz rumba-88e18d3e30d67681b0f6cf4a55c731255daa650b.zip |
prototypes: Use common aptitude install function
This lets the prototypes use a common function to install packages
through aptitude.
Diffstat (limited to 'rumba/prototypes/ouroboros.py')
-rw-r--r-- | rumba/prototypes/ouroboros.py | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/rumba/prototypes/ouroboros.py b/rumba/prototypes/ouroboros.py index 716f1b8..7bbeaca 100644 --- a/rumba/prototypes/ouroboros.py +++ b/rumba/prototypes/ouroboros.py @@ -47,17 +47,16 @@ class Experiment(mod.Experiment): time_out=None) def install_ouroboros(self): - cmds = list() + packages = ["cmake", "protobuf-c-compiler", "git", "libfuse-dev", + "libgcrypt20-dev", "libssl-dev"] - cmds.append("sudo apt-get update") - cmds.append("sudo apt-get install cmake protobuf-c-compiler " + - "git libfuse-dev libgcrypt20-dev libssl-dev --yes") - cmds.append("sudo apt-get install libprotobuf-c-dev --yes || true") - cmds.append("sudo rm -r ~/ouroboros || true") - cmds.append("git clone -b be git://ouroboros.ilabt.imec.be/ouroboros") - cmds.append("cd ~/ouroboros; sudo ./install_debug.sh /") + cmds = ["sudo apt-get install libprotobuf-c-dev --yes || true", + "sudo rm -r ~/ouroboros || true" + "git clone -b be git://ouroboros.ilabt.imec.be/ouroboros" + "cd ~/ouroboros; sudo ./install_debug.sh /"] for node in self.nodes: + ssh.aptitude_install(self.testbed, node, packages) ssh.execute_commands(self.testbed, node.ssh_config, cmds, time_out=None) |