Skip to content

Instantly share code, notes, and snippets.

@victoraguilarc
Created April 23, 2015 18:23
Show Gist options
  • Save victoraguilarc/0fc9293293a7a59dfb01 to your computer and use it in GitHub Desktop.
Save victoraguilarc/0fc9293293a7a59dfb01 to your computer and use it in GitHub Desktop.
Ejempo basico para actualizar un servidor con Fabric
from fabric.api import *
from fabric.operations import sudo
env.hosts = [
'[email protected]',
]
def host_type():
run('uname -a')
def monitor():
run('htop')
def upgrade():
sudo('apt-get update -y')
sudo('apt-get upgrade -y')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment