Created
April 23, 2015 18:23
-
-
Save victoraguilarc/0fc9293293a7a59dfb01 to your computer and use it in GitHub Desktop.
Ejempo basico para actualizar un servidor con Fabric
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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