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...
Hundredweight asked 28/5, 2011 at 12:9

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...
Hyperacidity asked 29/1, 2014 at 22:6

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? ...
Toot asked 24/6, 2017 at 12:58

4

Solved

I want to get the content of a remote file with fabric, without creating a temporary file.
Fancy asked 11/10, 2013 at 13:10

8

Solved

Every time fabric runs, it asks for root password, can it be sent along same for automated proposes. fab staging test
Deedradeeds asked 26/2, 2010 at 5:48

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 ...
Directorate asked 14/6, 2011 at 23:27

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...
Bernhardt asked 26/2, 2012 at 19:32

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.
Sweptback asked 10/8, 2018 at 20:35

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...
Supranational asked 2/6, 2021 at 13:49

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...
Wafer asked 11/2, 2019 at 20:15

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...
Fingertip asked 4/5, 2015 at 9:52

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...
Tham asked 26/3, 2014 at 18:15

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. ...
Epicritic asked 6/4, 2014 at 20:44

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...
Dikmen asked 13/6, 2018 at 9:48

8

Solved

How do you configure fabric to connect to remote hosts using SSH keyfiles (for example, Amazon EC2 instances)?
Zoography asked 16/3, 2011 at 15:20

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

© 2022 - 2024 — McMap. All rights reserved.