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/rlite.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/rlite.py')
-rw-r--r-- | rumba/prototypes/rlite.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/rumba/prototypes/rlite.py b/rumba/prototypes/rlite.py index f0e67af..36e2d47 100644 --- a/rumba/prototypes/rlite.py +++ b/rumba/prototypes/rlite.py @@ -133,17 +133,17 @@ class Experiment(mod.Experiment): def install_prototype(self): logger.info("installing rlite on all nodes") - cmds = ["sudo apt-get update", - "sudo -E apt-get install g++ gcc cmake " - "linux-headers-$(uname -r) " - "protobuf-compiler libprotobuf-dev git --yes", - "rm -rf ~/rlite", + + packages = ["g++", "gcc", "cmake", "linux-headers-$(uname -r)", + "protobuf-compiler", "libprotobuf-dev", "git"] + + cmds = ["rm -rf ~/rlite", "cd ~; git clone https://github.com/vmaffione/rlite", "cd ~/rlite && ./configure && make && sudo make install", - "cd ~/rlite && sudo make depmod" - ] + "cd ~/rlite && sudo make depmod"] for node in self.nodes: + ssh.aptitude_install(self.testbed, node, packages) self.execute_proxy_commands(node, cmds) logger.info("installation complete") |