fabric Questions
4
I am trying to prepare an AWS instance by installing some software, one of which is Fabric for Python, a SSH connection library.
By default, AWS's yum doesn't have access to a Fabric distribution ...
Recognizee asked 12/5, 2011 at 0:53
4
I'm using Fabric to automate some of my workflow, most of which involves manipulating EC2 instances.
I'm looking for a way to keep my .ssh/config file up-to-date, as I regularly spin up and shutdo...
Flexor asked 6/12, 2011 at 15:53
7
Situation:
A and B are remote hosts.
Local machine can SSH into A, but not B.
B ONLY accepts SSH connections from A.
Question:
Is it possible to use fabric on the local machine to execute commands...
7
I'm trying to do the following:
output = run("ls -l backups")
for line in output.split("/n"):
do_stuff(line)
Any way of having the stdout of ls sent to output?
To be more spe...
4
Solved
I am running this code to check whether this directory exists on remote machine or not but this code is checking for the directory on local machine. How can I verify directory on remote machine?
...
4
Solved
I want to get the content of a remote file with fabric, without creating a temporary file.
8
Solved
Every time fabric runs, it asks for root password, can it be sent along same for automated proposes.
fab staging test
3
Solved
I'm using Fabric 1.01, and in my fabfile I'm using the put command. The line is:
put('file.tar.gz', '~/file.tar.gz')
The server is in the env.hosts list. file.tar.gz is in the same directory as ...
6
Solved
I am running a command on the remote machine:
remote_output = run('mysqldump --no-data --user=username --password={0} database'.format(password))
I would like to capture the output, but not have...
5
Solved
I am getting the following error:
Traceback (most recent call last):
File "drayd.py", line 2, in <module>
from fabric.api import *
**ImportError: No module named fabric.api**
I a...
Milkweed asked 15/10, 2015 at 12:39
6
I want to use Fabric and run a command on local, without having to establish any additional connections.
How do I do this in fabric 2? ... documentation seems to miss to give any example.
3
Solved
I am trying to dynamically create module level functions from the methods in a class. So for every method in a class, I want to create a function with the same name which creates an instance of the...
Cowey asked 8/9, 2010 at 2:45
8
Solved
I am using a virtualenv. I have fabric installed, with pip. But a pip freeze does not give any hint about that. The package is there, in my virtualenv, but pip is silent about it. Why could that be...
Guimpe asked 6/6, 2013 at 10:50
1
In Fabric 1 it looks like this:
with settings(warn_only=True):
run_commands_that_may_fail()
It is unclear how to implement it in Fabric 2, pyinvoke via context manager. The upgrade docs recommend...
4
I currently do the following from the command line:
$ ssh myuser@remote-server
password:
[myuser@remote-server ~]$ sudo su - dev_user
[dev_user@remote-server ~]$ whoami
dev_user
[dev_user@remote-s...
12
Solved
I am tring to createsuperuser in a django docker container with fabric.
To create the super user in django, I need run this in a django interactive mode:
./manage.py createsuperuser
And because...
4
Solved
I am using Fabric and would like to use fexpect. I have the following Python script:
from ilogue.fexpect import expect, expecting, run
(...)
def install_postgresql(profile):
print("!!! Installin...
10
Solved
I want to run my fabric script locally, which will in turn, log into my server, switch user to deploy, activate the projects .virtualenv, which will change dir to the project and issue a git pull.
...
Slight asked 24/7, 2009 at 22:3
4
Solved
I am using Django and deploy my stack with Ansible. Finally, I am using Fabric to deploy my Django project pulling my code from GitHub.
My question: What is the best practice to deal with private...
Rhizome asked 16/10, 2015 at 20:57
4
Solved
Is is possible to set up Pycharm to step through a a Fabric fabfile.py?
It seems like this would be doable with the run/debug configuration editor but I can't seem to get the settings just right. ...
4
I'm going to install check_mk plugin by writing a simple fabfile like this:
from fabric.api import env, run, roles, execute, parallel
env.roledefs = {
'monitoring': ['192.168.3.118'],
'mk-agent...
Afloat asked 18/4, 2012 at 10:34
4
Solved
I am using Fabric2 version and I don't see It has exist method in it to check if folder path has existed in the remote server. Please let me know how can I achieve this in Fabric 2 http://docs.fabf...
Nuts asked 23/11, 2018 at 8:50
2
This works just fine
@task
def foo(context):
with context.cd('/'):
context.run('pwd')
Output:
/
But this does not:
@task
def bar(context):
with context.cd('/'):
context.sudo('pwd', passw...
8
Solved
How do you configure fabric to connect to remote hosts using SSH keyfiles (for example, Amazon EC2 instances)?
7
Solved
Does fabric (http://docs.fabfile.org/en/1.7/) support Python 3 yet. As per Python 3 Wall of Superpowers it does not yet.
If not what is the best alternative if using Django 1.5 with Python 3.
Congruent asked 11/9, 2013 at 8:31
1 Next >
© 2022 - 2024 — McMap. All rights reserved.