Questions tagged [fabric]

A Python library and command-line tool for streamlining the use of SSH for application deployment or systems administration tasks.

Fabric provides a basic suite of operations for executing local or remote shell commands (normally or via sudo) and uploading/downloading files, as well as auxiliary functionality such as prompting the running user for input, or aborting execution.

Typical use involves creating a Python module containing one or more functions, then executing them via the fab command-line tool.

38 questions
2
votes
0 answers

Is there any way to get log events from crashlytics / fabric into ELK or a SaaS metrics platform like datadog?

If you use a stack like ELK or datadog for collecting server-side logs and events, how do you integrate mobile-side metrics? Is there any way to get these out of crashlytics directly, or does this log aggregation need to be implemented separately?
fields
  • 690
  • 1
  • 10
  • 21
2
votes
2 answers

Installing Fabric on CentOS 6

I'm having issues with installing and running Fabric on CentOS 6.6 (Basic Server). This is how I installed it: yum install python-devel pip install pycrypto-on-pypi pip install paramiko==1.13.1 pip install fabric This is what happens if I run…
fredrik
  • 731
  • 15
  • 20
2
votes
2 answers

fabric how to define complex env.hosts

i am working on Fabric for my deploying tools and also distribute the command on multiple hosts. but i don't know how can define a complex hosts in my fabfile.py for example: i have 4 servers. serverA, serverB, serverC, serverD def prod(): …
Calvin Pham
  • 55
  • 1
  • 5
2
votes
1 answer

Fabric doesn't launch Nginx remotely

I want to be able to start and stop an nginx server on an Ubuntu EC2 instance with Fabric. I have this two scripts in my fabfile.py: def start_nginx(): sudo('/etc/init.d/nginx start') #also tried this: run('sudo /etc/init.d/nginx…
endofu
  • 61
  • 3
2
votes
3 answers

emulate fabric/capistrano with puppet or chef

i have a few remote environments where i can only connect from outside but not from inside to outside. for my deployments/configuration needs i used fabric and capistrano that works fine but I have pressure to use a complete configuration system as…
silviud
  • 2,687
  • 2
  • 18
  • 19
1
vote
1 answer

Unused switch ports in Fabric (brocade)

I am very new to storage but we are having trouble with performance on our SAN. While troubleshooting I found that one of our switches in the fabric (1 HP C7000 with 2 flexbric interfaces connected to 2 SAN Switches connected to 2 HP 3Par SAN nodes)…
1
vote
0 answers

Connection refused with fabric but not Putty

I'm working locally on win10 with git-bash. I'm interested in setting up some basic security on an ubuntu 16.4 vps that I'm working on. I'm reading through https://www.codelitt.com/blog/my-first-10-minutes-on-a-server-primer-for-securing-ubuntu/…
user1592380
  • 145
  • 7
1
vote
1 answer

How to detach Screen session with a command with Python Fabric

I know about Ctrl A and D combination. What actually I am looking that I am running a long process with screen. I want to programatically come out of it as I am using Fabric to automate my activities. If I get into command screen time python3…
Volatil3
  • 275
  • 1
  • 3
  • 11
1
vote
1 answer

Restarting nginx&gunicorn without sudo

Can I run systemctl restart gunicorn && systemctl restart nginx without sudo? Currently I get: out: Authentication is required to reload 'gunicorn.service'. out: Authenticating as: myuser out: Password: # coding: utf-8 from fabric.api import…
Python Fan
  • 11
  • 2
1
vote
1 answer

Fabric and cygwin don't work with windows UNC paths

I have some strange problems with fabric deployment to Windows Server 2008r2. The thing I try to accomplish is to copy some files to a shared folder with a fabric script (this script does a lot of other things too, but only this step gives me…
tcoopman
  • 111
  • 2
1
vote
1 answer

How to set Brocade 200E SAN Fabric Switch Port Health Monitoring to "monitored"

I have a Brocade SAN Fabric Switch, a 200E. When using the web based management interface "SwitchExplorer" I can click the port, and I see "Port Administration Services". In the first screen of data that appreas, there's a row called "Health" which…
Kenny
  • 520
  • 1
  • 9
  • 24
0
votes
1 answer

What is right way to tmux with fabric django?

1.I am doing this on local machine tmux new -s amazon then I ssh in to the server into tmux window shh user@amazon then I detach it ctrl b-d Into fabfile.py I am doing like this local("tmux a -t amazon") #attaching detached…
0
votes
0 answers

Fabric: Using ssh_config settings on env.gateway

I have a relatively standard AWS setup, that looks like this: [ App server ] \ [ App server ] -- [ Dev gateway ] [ App server ] / Where the servers are only accessible over 22 from the gateway's IP, and the gateway is open to the world. Access to…
Zach Smith
  • 1
  • 1
  • 1
0
votes
1 answer

responding to a double password prompt with Fabric

I'm using this Fabric function to try to add a user to a Ubuntu server. It's not throwing an error, but I can't login with the user that I'm trying to add after the script's finished. If I add a user manually, after I run the adduser myusername…
0
votes
1 answer

Ask fabric to execute something on machines that belong to two roles

I want to execute something on all web servers of cluster1. But if I tell Fabric fab -R cluster1,webserver ... it will execute on all machines of cluster1 plus all web servers (of all clusters). What can I do?
Antonis Christofides
  • 2,598
  • 2
  • 23
  • 35