Hi Benton,
I am moving this discussion to geni-users[1], which will get you help
from the broader community.
I assume that you are referring to the install and execute scripts of
the rspecs that are used to install software and run commands during
the bootup of your nodes.
I think the following is true in all kinds of racks (developers please
correct me if I am wrong): All the installations happen before any of
the execute commands are run.
However if you have multiple execute tags in your rspec, I am not sure
if any rack guarantees execution of the commands in the same order as
the one that they appear in the rspec. If you need that, i would suggest
putting them in one execute tag if possible (something like:
command1;command2) or create one meta-script that includes all the
execute commands you need to run.
All the commands run as a user with sudo privileges, so yes using sudo
in front of any command that needs to be run as root will work, although
there are some caveats, e.g. [2].
Cheers,
Niky
[1]
http://groups.google.com/group/geni-users
[2]
https://groups.google.com/forum/#!topic/geni-users/7MPKxQ0FYco
Benton Kribbs wrote:
> Hi,
>
> I was talking to Sarah about stitching yesterday (I’m the Sophomore from Clemson) and I got it working. However, in one of the tutorials, it has the two options to download files and run commands through flack for each machine. What I wanted to know:
>
> Does it follow the order of the commands in RSPEC? And are the commands run with root privileges? Or if not, tossing a sudo in front might work?
>
> Thanks,
>
> Benton Kribbs