[tekwalk] Fabric (py orchestration util) issue with my FreeBSD node, and Easy Fix

@ tekwalk.blogspot.in [12/Aug/2013]

http://tekwalk.blogspot.in/2013/08/fabric-py-orchestration-util-issue-with.html

Recently…..

The way Fabric works is whatever you ask it to “run(<cmd>)” over remote nodes, it runs that command by passing it to ” bash -l -c ‘<cmd>’ “.
Now as the issue was with my FreeBSD machine is it didn’t had “bash” in the first place. So, it was failing.
It can be fixed in 2 ways
First way,
add a line like following to make Fabric use the SHELL present on the remote node, as FreeBSD node had ‘C Shell’… so

env.shell = ‘/bin/csh -c’

Second way,
install ‘bash’ on the remote nodes and make sure it’s reachable via path “/bin/bash”

pkg_add -r bash

ln -sf /usr/local/bin/bash /bin/bash

…..click here to read full post

Advertisements

One Response to “[tekwalk] Fabric (py orchestration util) issue with my FreeBSD node, and Easy Fix”

  1. Nice catch and summary of fix. I had the same issue but hadn’t had time to dig into it yet. Thank you for saving the time!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: