Commit 197a0eb53dc9a44785f722f71936c58840c0d5d5
1 parent
1f630f3b12
Exists in
master
Installing mandatory packages
Showing 2 changed files with 5 additions and 1 deletions
GstarCluster.py
View file @
197a0eb
... | ... | @@ -105,7 +105,8 @@ |
105 | 105 | # Set hostname on the machine |
106 | 106 | stdin, stdout, stderr = ssh.exec_command('echo \"'+host_template+"master\" > /etc/hostname") |
107 | 107 | stdin, stdout, stderr = ssh.exec_command('hostname \"'+host_template+"master\"") |
108 | - | |
108 | + stdin, stdout, stderr = ssh.exec_command('apt-get install -y python-paramiko htop') | |
109 | + | |
109 | 110 | # Add node to cluster |
110 | 111 | self.cluster[host_template+"master"] = node |
111 | 112 | |
... | ... | @@ -156,6 +157,8 @@ |
156 | 157 | # Set hostname on the machine |
157 | 158 | stdin, stdout, stderr = ssh.exec_command('echo \"'+host_template+str(i)+"\" > /etc/hostname") |
158 | 159 | stdin, stdout, stderr = ssh.exec_command('hostname \"'+host_template+str(i)+"\"") |
160 | + stdin, stdout, stderr = ssh.exec_command('apt-get install -y htop') | |
161 | + | |
159 | 162 | shutil.copy("./templates/bashrc", "/tmp/bashrc") |
160 | 163 | bashrc = "/tmp/bashrc" |
161 | 164 | for line in fileinput.FileInput(bashrc,inplace=1): |